13 references to RSAKeyFormatHelper
System.Security.Cryptography (13)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
189
RSAKeyFormatHelper
.ReadEncryptedPkcs8(
System\Security\Cryptography\RSA.cs (10)
748
AsnWriter writer =
RSAKeyFormatHelper
.WriteSubjectPublicKeyInfo(rented.AsSpan(0, pkcs1Size));
791
return
RSAKeyFormatHelper
.WritePkcs8PrivateKey(new ReadOnlySpan<byte>(rented, 0, pkcs1Size));
850
return
RSAKeyFormatHelper
.WritePkcs1PublicKey(rsaParameters);
866
return
RSAKeyFormatHelper
.WritePkcs1PrivateKey(rsaParameters);
877
ReadOnlySpan<byte> pkcs1 =
RSAKeyFormatHelper
.ReadSubjectPublicKeyInfo(
897
RSAKeyFormatHelper
.ReadRsaPublicKey(source.Slice(0, localRead), ignored, out RSAParameters rsaParameters);
920
RSAKeyFormatHelper
.FromPkcs1PrivateKey(
938
ReadOnlySpan<byte> pkcs1 =
RSAKeyFormatHelper
.ReadPkcs8(source, out int localRead);
949
RSAKeyFormatHelper
.ReadEncryptedPkcs8(
980
RSAKeyFormatHelper
.ReadEncryptedPkcs8(
System\Security\Cryptography\RSACng.ImportExport.cs (2)
61
RSAKeyFormatHelper
.ReadEncryptedPkcs8(
66
return
RSAKeyFormatHelper
.WritePkcs8PrivateKey(rsaParameters).TryEncode(destination, out bytesWritten);