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

◆ DeriveKeyTls()

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

Reimplemented from System.Security.Cryptography.ECDiffieHellman.

Definition at line 458 of file ECDiffieHellmanCng.cs.

459 {
460 if (otherPartyPublicKey == null)
461 {
462 throw new ArgumentNullException("otherPartyPublicKey");
463 }
464 if (prfLabel == null)
465 {
466 throw new ArgumentNullException("prfLabel");
467 }
468 if (prfSeed == null)
469 {
470 throw new ArgumentNullException("prfSeed");
471 }
472 using SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey);
473 return global::Interop.NCrypt.DeriveKeyMaterialTls(secretAgreement, prfLabel, prfSeed, global::Interop.NCrypt.SecretAgreementFlags.None);
474 }
SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)

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