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

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 279 of file ECDsaImplementation.cs.

280 {
281 if (pbeParameters == null)
282 {
283 throw new ArgumentNullException("pbeParameters");
284 }
285 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
286 if (CngPkcs8.IsPlatformScheme(pbeParameters))
287 {
288 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
289 }
290 return CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
291 }
byte[] ExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount)

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