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

◆ TryExportEncryptedPkcs8PrivateKey() [2/2]

override bool System.Security.Cryptography.RSAImplementation.RSACng.TryExportEncryptedPkcs8PrivateKey ( ReadOnlySpan< char > password,
PbeParameters pbeParameters,
Span< byte > destination,
out int bytesWritten )
inlinevirtual

Reimplemented from System.Security.Cryptography.RSA.

Definition at line 502 of file RSAImplementation.cs.

503 {
504 if (pbeParameters == null)
505 {
506 throw new ArgumentNullException("pbeParameters");
507 }
508 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
509 if (CngPkcs8.IsPlatformScheme(pbeParameters))
510 {
512 }
513 return CngPkcs8.TryExportEncryptedPkcs8PrivateKey(this, password, pbeParameters, destination, out bytesWritten);
514 }
bool TryExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount, Span< byte > destination, out int bytesWritten)

References System.destination, System.Security.Cryptography.CngPkcs8.IsPlatformScheme(), System.Security.Cryptography.RSAImplementation.RSACng.TryExportEncryptedPkcs8(), System.Security.Cryptography.CngPkcs8.TryExportEncryptedPkcs8PrivateKey(), and System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters().