Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 366 of file ECDiffieHellmanImplementation.cs.

367 {
368 if (pbeParameters == null)
369 {
370 throw new ArgumentNullException("pbeParameters");
371 }
372 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
373 if (CngPkcs8.IsPlatformScheme(pbeParameters))
374 {
375 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
376 }
377 return CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
378 }

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