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

◆ CopyWithPrivateKey() [2/4]

ICertificatePal Internal.Cryptography.Pal.CertificatePal.CopyWithPrivateKey ( ECDiffieHellman ecdh)
inline

Implements Internal.Cryptography.ICertificatePal.

Definition at line 700 of file CertificatePal.cs.

701 {
703 {
705 if (certificatePal != null)
706 {
707 return certificatePal;
708 }
709 }
710 ECParameters parameters = ecdh.ExportParameters(includePrivateParameters: true);
711 using (PinAndClear.Track(parameters.D))
712 {
714 eCDiffieHellmanCng2.ImportParameters(parameters);
716 }
717 }
ICertificatePal CopyWithEphemeralKey(CngKey cngKey)
unsafe ICertificatePal CopyWithPersistedCngKey(CngKey cngKey)

References Internal.Cryptography.Pal.CertificatePal.CopyWithEphemeralKey(), Internal.Cryptography.Pal.CertificatePal.CopyWithPersistedCngKey(), System.Security.Cryptography.ECParameters.D, and Internal.Cryptography.PinAndClear.Track().