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