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

◆ DeriveKeyMaterial()

override byte[] System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveKeyMaterial ( ECDiffieHellmanPublicKey otherPartyPublicKey)
inlinevirtual

Reimplemented from System.Security.Cryptography.ECDiffieHellman.

Definition at line 106 of file ECDiffieHellmanImplementation.cs.

107 {
108 if (otherPartyPublicKey == null)
109 {
110 throw new ArgumentNullException("otherPartyPublicKey");
111 }
112 return DeriveKeyFromHash(otherPartyPublicKey, HashAlgorithmName.SHA256);
113 }
override byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend)

References System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveKeyFromHash(), and System.Security.Cryptography.HashAlgorithmName.SHA256.