![]() ![]() We have an legacy mobile app which has not been worked on by developers for a year or so.Ĭurrently, we have a requirement to make code changes to add logging to this mobile app. You can find a Playground of my code, and when you google for ECDiffieHellmanCng Class, you will find an example on what. Net documentation is not particularly precise on that How can I find out what format the server key is in? The. My assumption is the keys should be the same. Net like this:īob.KeyDerivationFunction = ECDiffieHellmanKeyDerivationFunction.Hash īobPublicKey = () īobKey = bob.DeriveKeyMaterial(CngKey.Import(Alice.alicePublicKey, CngKeyBlobFormat.EccPublicBlob)) ![]() Let symetricKey = sharedSecret.x963DerivedSymmetricKey( Let sharedInfo = serverPublicKey.rawRepresentation However, if I seal the box with my client key, I can not open it with the server shared key. I can import the server secret key as a SymetricKey, and if I use it to seal and open a box, it works. ![]() However, the secretKey I am creating on the client side does not match with the secretKey on the server side, which I have for testing purposes. I am attempting to perform a Diffie Hellman Keyexchange with a server running on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |