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

◆ TryExportEncryptedPkcs8PrivateKey() [2/2]

override bool System.Security.Cryptography.ECDsaImplementation.ECDsaCng.TryExportEncryptedPkcs8PrivateKey ( ReadOnlySpan< char > password,
PbeParameters pbeParameters,
Span< byte > destination,
out int bytesWritten )
inlinevirtual

Reimplemented from System.Security.Cryptography.ECDsa.

Definition at line 303 of file ECDsaImplementation.cs.

304 {
305 if (pbeParameters == null)
306 {
307 throw new ArgumentNullException("pbeParameters");
308 }
309 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
310 if (CngPkcs8.IsPlatformScheme(pbeParameters))
311 {
312 return TryExportEncryptedPkcs8(password, pbeParameters.IterationCount, destination, out bytesWritten);
313 }
314 return CngPkcs8.TryExportEncryptedPkcs8PrivateKey(this, password, pbeParameters, destination, out bytesWritten);
315 }
bool TryExportEncryptedPkcs8(ReadOnlySpan< char > pkcs8Password, int kdfCount, Span< byte > destination, out int bytesWritten)

References System.destination, System.Security.Cryptography.CngPkcs8.IsPlatformScheme(), System.Security.Cryptography.PbeParameters.IterationCount, System.Security.Cryptography.ECDsaImplementation.ECDsaCng.TryExportEncryptedPkcs8(), System.Security.Cryptography.CngPkcs8.TryExportEncryptedPkcs8PrivateKey(), and System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters().