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

◆ DeriveKeyFromHash() [2/3]

override byte[] System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveKeyFromHash ( ECDiffieHellmanPublicKey otherPartyPublicKey,
HashAlgorithmName hashAlgorithm,
byte[] secretPrepend,
byte[] secretAppend )
inline

Definition at line 178 of file ECDiffieHellmanImplementation.cs.

179 {
180 if (otherPartyPublicKey == null)
181 {
182 throw new ArgumentNullException("otherPartyPublicKey");
183 }
184 if (string.IsNullOrEmpty(hashAlgorithm.Name))
185 {
187 }
188 using SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey);
189 return global::Interop.NCrypt.DeriveKeyMaterialHash(secretAgreement, hashAlgorithm.Name, secretPrepend, secretAppend, global::Interop.NCrypt.SecretAgreementFlags.None);
190 }
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
Definition SR.cs:7
SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)

References System.SR.Cryptography_HashAlgorithmNameNullOrEmpty, System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveSecretAgreementHandle(), and System.Security.Cryptography.HashAlgorithmName.Name.

Referenced by System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveKeyMaterial().