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

◆ ImportPkcs8PrivateKey()

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 621 of file DSA.cs.

622 {
623 DSAKeyFormatHelper.ReadPkcs8(source, out var bytesRead2, out var key);
624 fixed (byte* ptr = key.X)
625 {
626 try
627 {
629 }
630 finally
631 {
632 CryptographicOperations.ZeroMemory(key.X);
633 }
634 }
635 bytesRead = bytesRead2;
636 }
void ImportParameters(DSAParameters parameters)

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