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

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

override byte[] System.Security.Cryptography.RSAImplementation.RSACng.ExportEncryptedPkcs8PrivateKey ( ReadOnlySpan< char > password,
PbeParameters pbeParameters )
inlinevirtual

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 478 of file RSAImplementation.cs.

479 {
480 if (pbeParameters == null)
481 {
482 throw new ArgumentNullException("pbeParameters");
483 }
484 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
485 if (CngPkcs8.IsPlatformScheme(pbeParameters))
486 {
487 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
488 }
489 return CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
490 }
byte[] ExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount)

References System.Security.Cryptography.RSAImplementation.RSACng.ExportEncryptedPkcs8(), System.Security.Cryptography.CngPkcs8.ExportEncryptedPkcs8PrivateKey(), System.Security.Cryptography.CngPkcs8.IsPlatformScheme(), and System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters().