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

◆ WritePkcs8()

unsafe AsnWriter System.Security.Cryptography.DSA.WritePkcs8 ( )
inlineprivateinherited

Definition at line 565 of file DSA.cs.

566 {
567 DSAParameters dsaParameters = ExportParameters(includePrivateParameters: true);
568 fixed (byte* ptr = dsaParameters.X)
569 {
570 try
571 {
572 return DSAKeyFormatHelper.WritePkcs8(in dsaParameters);
573 }
574 finally
575 {
576 CryptographicOperations.ZeroMemory(dsaParameters.X);
577 }
578 }
579 }
DSAParameters ExportParameters(bool includePrivateParameters)

References System.Security.Cryptography.DSA.ExportParameters(), System.Security.Cryptography.DSAKeyFormatHelper.WritePkcs8(), System.Security.Cryptography.DSAParameters.X, and System.Security.Cryptography.CryptographicOperations.ZeroMemory().

Referenced by System.Security.Cryptography.DSA.TryExportEncryptedPkcs8PrivateKey(), System.Security.Cryptography.DSA.TryExportEncryptedPkcs8PrivateKey(), and System.Security.Cryptography.DSA.TryExportPkcs8PrivateKey().