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

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 617 of file ECDiffieHellmanCng.cs.

618 {
619 if (pbeParameters == null)
620 {
621 throw new ArgumentNullException("pbeParameters");
622 }
623 System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
625 {
626 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
627 }
628 return System.Security.Cryptography.CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
629 }
static bool IsPlatformScheme(PbeParameters pbeParameters)
Definition CngPkcs8.cs:44
static byte[] ExportEncryptedPkcs8PrivateKey(AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
Definition CngPkcs8.cs:53
byte[] ExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount)
static void ValidatePbeParameters(PbeParameters pbeParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes)

References System.Security.Cryptography.ECDiffieHellmanCng.ExportEncryptedPkcs8(), System.Security.Cryptography.CngPkcs8.ExportEncryptedPkcs8PrivateKey(), System.Security.Cryptography.CngPkcs8.IsPlatformScheme(), System.Security.Cryptography.PbeParameters.IterationCount, and System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters().