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

◆ SetExportable()

static unsafe void System.Security.Cryptography.CngKeyLite.SetExportable ( SafeNCryptKeyHandle keyHandle)
inlinestaticprivate

Definition at line 222 of file CngKeyLite.cs.

223 {
224 CngExportPolicies cngExportPolicies = CngExportPolicies.AllowPlaintextExport;
225 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptSetProperty(keyHandle, "Export Policy", &cngExportPolicies, 4, CngPropertyOptions.Persist);
226 if (errorCode != 0)
227 {
228 throw errorCode.ToCryptographicException();
229 }
230 }

Referenced by System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(), System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(), System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(), System.Security.Cryptography.CngKeyLite.ImportKeyBlob(), and System.Security.Cryptography.CngKeyLite.ImportKeyBlob().