I have following code:
ECDiffieHellman ecdh = ECDiffieHellman.Create(ECCurve.NamedCurves.nistP256);
ECDiffieHellmanPublicKey ecdhPublic = ecdh.PublicKey;
How can I export the ECDiffieHellmanPublicKey instance (ecdhPublic) into DER encoded file?
I have following code:
ECDiffieHellman ecdh = ECDiffieHellman.Create(ECCurve.NamedCurves.nistP256);
ECDiffieHellmanPublicKey ecdhPublic = ecdh.PublicKey;
How can I export the ECDiffieHellmanPublicKey instance (ecdhPublic) into DER encoded file?
Using BouncyCastle (http://www.bouncycastle.org/) you can export your ECDH public key to a DER encoded ANS.1 Object