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

◆ CopyWithEphemeralKey()

ICertificatePal Internal.Cryptography.Pal.CertificatePal.CopyWithEphemeralKey ( CngKey cngKey)
inlineprivate

Definition at line 1067 of file CertificatePal.cs.

1068 {
1071 if (!global::Interop.crypt32.CertSetCertificateContextProperty(certificatePal._certContext, CertContextPropId.CERT_NCRYPT_KEY_HANDLE_PROP_ID, CertSetPropertyFlags.CERT_SET_PROPERTY_INHIBIT_PERSIST_FLAG, handle))
1072 {
1073 certificatePal.Dispose();
1074 throw Marshal.GetLastWin32Error().ToCryptographicException();
1075 }
1076 handle.SetHandleAsInvalid();
1077 return certificatePal;
1078 }
static ICertificatePal FromBlob(ReadOnlySpan< byte > rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)

References Internal.Cryptography.Pal.CertificatePal.CertificatePal(), Internal.Cryptography.Pal.CertificatePal.FromBlob(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), System.handle, Microsoft.Win32.SafeHandles.SafePasswordHandle.InvalidHandle, and Internal.Cryptography.Pal.CertificatePal.RawData.

Referenced by Internal.Cryptography.Pal.CertificatePal.CopyWithPrivateKey(), Internal.Cryptography.Pal.CertificatePal.CopyWithPrivateKey(), Internal.Cryptography.Pal.CertificatePal.CopyWithPrivateKey(), and Internal.Cryptography.Pal.CertificatePal.CopyWithPrivateKey().