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

◆ ImportSubjectPublicKeyInfo()

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

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Definition at line 481 of file RSA.cs.

482 {
483 fixed (byte* pointer = &MemoryMarshal.GetReference(source))
484 {
485 using MemoryManager<byte> memoryManager = new PointerMemoryManager<byte>(pointer, source.Length);
486 ImportRSAPublicKey(RSAKeyFormatHelper.ReadSubjectPublicKeyInfo(memoryManager.Memory, out var bytesRead2).Span, out var _);
487 bytesRead = bytesRead2;
488 }
489 }
virtual unsafe void ImportRSAPublicKey(ReadOnlySpan< byte > source, out int bytesRead)
Definition RSA.cs:491

References System.Security.Cryptography.RSA.ImportRSAPublicKey(), System.pointer, System.Security.Cryptography.RSAKeyFormatHelper.ReadSubjectPublicKeyInfo(), and System.source.

Referenced by System.Security.Cryptography.X509Certificates.PublicKey.GetRSAPublicKey(), and System.Security.Cryptography.RSA.ImportFromPem().