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

◆ ImportEncryptedPkcs8PrivateKey() [1/2]

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Reimplemented in System.Security.Cryptography.RSAImplementation.RSACng, System.Security.Cryptography.RSACng, and System.Security.Cryptography.RSACryptoServiceProvider.

Definition at line 568 of file RSA.cs.

569 {
570 RSAKeyFormatHelper.ReadEncryptedPkcs8(source, passwordBytes, out var bytesRead2, out var key);
571 fixed (byte* ptr6 = key.D)
572 {
573 fixed (byte* ptr5 = key.P)
574 {
575 fixed (byte* ptr4 = key.Q)
576 {
577 fixed (byte* ptr3 = key.DP)
578 {
579 fixed (byte* ptr2 = key.DQ)
580 {
581 fixed (byte* ptr = key.InverseQ)
582 {
583 try
584 {
586 }
587 finally
588 {
590 }
591 }
592 }
593 }
594 }
595 }
596 }
597 bytesRead = bytesRead2;
598 }
static void ClearPrivateParameters(in RSAParameters rsaParameters)
Definition RSA.cs:662
void ImportParameters(RSAParameters parameters)

References System.Security.Cryptography.RSA.ClearPrivateParameters(), System.Security.Cryptography.RSA.ImportParameters(), System.key, System.Security.Cryptography.RSAKeyFormatHelper.ReadEncryptedPkcs8(), and System.source.

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