Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FromKey()

static ECDiffieHellmanCngPublicKey System.Security.Cryptography.ECDiffieHellmanCngPublicKey.FromKey ( CngKey key)
inlinestaticpackage

Definition at line 57 of file ECDiffieHellmanCngPublicKey.cs.

58 {
59 CngKeyBlobFormat format;
60 string curveName;
61 byte[] keyBlob = System.Security.Cryptography.ECCng.ExportKeyBlob(key, includePrivateParameters: false, out format, out curveName);
62 return new ECDiffieHellmanCngPublicKey(keyBlob, curveName, format);
63 }
static byte[] ExportKeyBlob(CngKey key, bool includePrivateParameters)
Definition ECCng.cs:25
ECDiffieHellmanCngPublicKey(byte[] keyBlob, string curveName, CngKeyBlobFormat format)

References System.Security.Cryptography.ECDiffieHellmanCngPublicKey.ECDiffieHellmanCngPublicKey(), System.Security.Cryptography.ECCng.ExportKeyBlob(), System.format, and System.key.