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

◆ TryExportEncryptedPkcs8PrivateKey() [4/4]

static bool System.Security.Cryptography.CngPkcs8.TryExportEncryptedPkcs8PrivateKey ( AsymmetricAlgorithm key,
ReadOnlySpan< char > password,
PbeParameters pbeParameters,
Span< byte > destination,
out int bytesWritten )
inlinestaticpackage

Definition at line 85 of file CngPkcs8.cs.

86 {
87 AsnWriter asnWriter = RewriteEncryptedPkcs8PrivateKey(key, password, pbeParameters);
88 return asnWriter.TryEncode(destination, out bytesWritten);
89 }
bool TryEncode(Span< byte > destination, out int bytesWritten)
Definition AsnWriter.cs:173
static AsnWriter RewriteEncryptedPkcs8PrivateKey(AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
Definition CngPkcs8.cs:233

References System.destination, System.key, System.Security.Cryptography.CngPkcs8.RewriteEncryptedPkcs8PrivateKey(), and System.Formats.Asn1.AsnWriter.TryEncode().