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

◆ DeriveKeyTls()

override byte[] System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveKeyTls ( ECDiffieHellmanPublicKey otherPartyPublicKey,
byte[] prfLabel,
byte[] prfSeed )
inlinevirtual

Reimplemented from System.Security.Cryptography.ECDiffieHellman.

Definition at line 207 of file ECDiffieHellmanImplementation.cs.

208 {
209 if (otherPartyPublicKey == null)
210 {
211 throw new ArgumentNullException("otherPartyPublicKey");
212 }
213 if (prfLabel == null)
214 {
215 throw new ArgumentNullException("prfLabel");
216 }
217 if (prfSeed == null)
218 {
219 throw new ArgumentNullException("prfSeed");
220 }
221 using SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey);
222 return global::Interop.NCrypt.DeriveKeyMaterialTls(secretAgreement, prfLabel, prfSeed, global::Interop.NCrypt.SecretAgreementFlags.None);
223 }
SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)

References System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.DeriveSecretAgreementHandle().