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

◆ ImportPkcs8() [6/6]

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

Definition at line 36 of file CngPkcs8.cs.

37 {
38 CngKey cngKey = CngKey.ImportEncryptedPkcs8(keyBlob, password);
39 cngKey.ExportPolicy = CngExportPolicies.AllowExport | CngExportPolicies.AllowPlaintextExport;
40 Pkcs8Response result = default(Pkcs8Response);
41 result.Key = cngKey;
42 return result;
43 }

References System.Security.Cryptography.CngKey.ImportEncryptedPkcs8().