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

◆ DeriveSecretAgreement() [2/2]

static SafeNCryptSecretHandle Interop.NCrypt.DeriveSecretAgreement ( SafeNCryptKeyHandle privateKey,
SafeNCryptKeyHandle otherPartyPublicKey )
inlinestaticpackage

Definition at line 814 of file Interop.cs.

815 {
816 SafeNCryptSecretHandle phSecret;
817 ErrorCode errorCode = NCryptSecretAgreement(privateKey, otherPartyPublicKey, out phSecret, 0);
818 if (errorCode != 0)
819 {
820 throw errorCode.ToCryptographicException();
821 }
822 return phSecret;
823 }
static ErrorCode NCryptSecretAgreement(SafeNCryptKeyHandle hPrivKey, SafeNCryptKeyHandle hPubKey, out SafeNCryptSecretHandle phSecret, int dwFlags)

References Interop.NCrypt.NCryptSecretAgreement().