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

◆ TryExportEncryptedPkcs8PrivateKey() [1/2]

override bool System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng.TryExportEncryptedPkcs8PrivateKey ( ReadOnlySpan< byte > passwordBytes,
PbeParameters pbeParameters,
Span< byte > destination,
out int bytesWritten )
inlinevirtual

Reimplemented from System.Security.Cryptography.ECDiffieHellman.

Definition at line 380 of file ECDiffieHellmanImplementation.cs.

381 {
382 if (pbeParameters == null)
383 {
384 throw new ArgumentNullException("pbeParameters");
385 }
386 PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
387 return CngPkcs8.TryExportEncryptedPkcs8PrivateKey(this, passwordBytes, pbeParameters, destination, out bytesWritten);
388 }

References System.destination, System.Security.Cryptography.CngPkcs8.TryExportEncryptedPkcs8PrivateKey(), and System.Security.Cryptography.PasswordBasedEncryption.ValidatePbeParameters().