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

◆ ImportEncryptedPkcs8PrivateKey() [1/2]

unsafe override void System.Security.Cryptography.DSA.ImportEncryptedPkcs8PrivateKey ( ReadOnlySpan< byte > passwordBytes,
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 587 of file DSA.cs.

588 {
589 DSAKeyFormatHelper.ReadEncryptedPkcs8(source, passwordBytes, out var bytesRead2, out var key);
590 fixed (byte* ptr = key.X)
591 {
592 try
593 {
595 }
596 finally
597 {
598 CryptographicOperations.ZeroMemory(key.X);
599 }
600 }
601 bytesRead = bytesRead2;
602 }
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().

Referenced by System.Security.Cryptography.DSA.ImportFromEncryptedPem(), and System.Security.Cryptography.DSA.ImportFromEncryptedPem().