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

◆ ImportPkcs8() [4/6]

static Pkcs8Response System.Security.Cryptography.CngPkcs8.ImportPkcs8 ( ReadOnlySpan< byte > keyBlob)
inlinestaticprivate

Definition at line 27 of file CngPkcs8.cs.

28 {
29 CngKey cngKey = CngKey.Import(keyBlob, CngKeyBlobFormat.Pkcs8PrivateBlob);
30 cngKey.ExportPolicy = CngExportPolicies.AllowExport | CngExportPolicies.AllowPlaintextExport;
31 Pkcs8Response result = default(Pkcs8Response);
32 result.Key = cngKey;
33 return result;
34 }

References System.Security.Cryptography.CngKey.Import(), and System.Security.Cryptography.CngKeyBlobFormat.Pkcs8PrivateBlob.