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

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 192 of file DSAImplementation.cs.

193 {
194 if (pbeParameters == null)
195 {
196 throw new ArgumentNullException("pbeParameters");
197 }
198 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
199 if (CngPkcs8.IsPlatformScheme(pbeParameters))
200 {
201 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
202 }
203 return CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
204 }
byte[] ExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount)

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