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

◆ ImportEncryptedPkcs8PrivateKey() [2/2]

unsafe override void System.Security.Cryptography.DSA.ImportEncryptedPkcs8PrivateKey ( ReadOnlySpan< char > password,
ReadOnlySpan< byte > source,
out int bytesRead )
inlinevirtualinherited

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Reimplemented in System.Security.Cryptography.DSAImplementation.DSACng, System.Security.Cryptography.DSACng, and System.Security.Cryptography.DSACryptoServiceProvider.

Definition at line 604 of file DSA.cs.

605 {
606 DSAKeyFormatHelper.ReadEncryptedPkcs8(source, password, out var bytesRead2, out var key);
607 fixed (byte* ptr = key.X)
608 {
609 try
610 {
612 }
613 finally
614 {
615 CryptographicOperations.ZeroMemory(key.X);
616 }
617 }
618 bytesRead = bytesRead2;
619 }
void ImportParameters(DSAParameters parameters)

References System.Security.Cryptography.DSA.ImportParameters(), System.key, System.Security.Cryptography.DSAKeyFormatHelper.ReadEncryptedPkcs8(), System.source, and System.Security.Cryptography.CryptographicOperations.ZeroMemory().