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

◆ ImportPkcs8PrivateKey()

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

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

Definition at line 558 of file RSA.cs.

559 {
560 fixed (byte* pointer = &MemoryMarshal.GetReference(source))
561 {
562 using MemoryManager<byte> memoryManager = new PointerMemoryManager<byte>(pointer, source.Length);
563 ImportRSAPrivateKey(RSAKeyFormatHelper.ReadPkcs8(memoryManager.Memory, out var bytesRead2).Span, out var _);
564 bytesRead = bytesRead2;
565 }
566 }
virtual unsafe void ImportRSAPrivateKey(ReadOnlySpan< byte > source, out int bytesRead)
Definition RSA.cs:511

References System.Security.Cryptography.RSA.ImportRSAPrivateKey(), System.pointer, System.Security.Cryptography.RSAKeyFormatHelper.ReadPkcs8(), and System.source.