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

◆ ExportEncryptedPkcs8PrivateKey() [2/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 192 of file DSACng.cs.

193 {
194 if (pbeParameters == null)
195 {
196 throw new ArgumentNullException("pbeParameters");
197 }
198 System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
200 {
201 return ExportEncryptedPkcs8(password, pbeParameters.IterationCount);
202 }
203 return System.Security.Cryptography.CngPkcs8.ExportEncryptedPkcs8PrivateKey(this, password, pbeParameters);
204 }
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)
Definition DSACng.cs:86
static void ValidatePbeParameters(PbeParameters pbeParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes)

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