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
)
inline
static
package
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
}
Interop.NCrypt.ErrorCode
ErrorCode
Definition
Interop.cs:587
Interop.NCrypt.NCryptSecretAgreement
static ErrorCode NCryptSecretAgreement(SafeNCryptKeyHandle hPrivKey, SafeNCryptKeyHandle hPubKey, out SafeNCryptSecretHandle phSecret, int dwFlags)
Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Definition
SafeNCryptSecretHandle.cs:4
References
Interop.NCrypt.NCryptSecretAgreement()
.
Interop
NCrypt
Generated by
1.10.0