10 instantiations of RSAParameters
Microsoft.AspNetCore.Identity (1)
Passkeys\CredentialPublicKey.cs (1)
133var rsaParams = new RSAParameters();
Microsoft.CodeAnalysis (1)
StrongName\CryptoBlobParser.cs (1)
274RSAParameters rsaParameters = new RSAParameters();
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
195RSAParameters rsaParameters = new RSAParameters();
Mono.Cecil (2)
Mono.Security.Cryptography\CryptoConvert.cs (2)
71 RSAParameters rsap = new RSAParameters (); 190 RSAParameters rsap = new RSAParameters ();
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (2)
37RSAParameters parameters = new RSAParameters 86RSAParameters parameters = new RSAParameters
System\Security\Cryptography\RSA.Xml.cs (1)
45RSAParameters keyParameters = new RSAParameters
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
125Key.ImportParameters(new RSAParameters
System.ServiceModel.Primitives (1)
System\ServiceModel\RsaEndpointIdentity.cs (1)
51RSAParameters parameters = new RSAParameters();
99 references to RSAParameters
Microsoft.AspNetCore.Identity (1)
Passkeys\CredentialPublicKey.cs (1)
133var rsaParams = new RSAParameters();
Microsoft.CodeAnalysis (18)
CommandLine\CommonCompiler.cs (1)
1461RSAParameters? privateKeyOpt = null;
Compilation\Compilation.cs (3)
3022RSAParameters? privateKeyOpt = null; 3254RSAParameters? privateKeyOpt, 3411RSAParameters? privateKeyOpt,
PEWriter\PeWriter.cs (1)
90RSAParameters? privateKeyOpt,
PEWriter\SigningUtilities.cs (2)
20internal static byte[] CalculateRsaSignature(IEnumerable<Blob> content, RSAParameters privateKey) 44internal static int CalculateStrongNameSignatureSize(CommonPEModuleBuilder module, RSAParameters? privateKey)
StrongName\CryptoBlobParser.cs (3)
195public static bool TryParseKey(ImmutableArray<byte> blob, out ImmutableArray<byte> snKey, out RSAParameters? privateKey) 257internal static RSAParameters ToRSAParameters(this ReadOnlySpan<byte> cspBlob, bool includePrivateParameters) 274RSAParameters rsaParameters = new RSAParameters();
StrongName\DesktopStrongNameProvider.cs (1)
176internal override void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey)
StrongName\StrongNameKeys.cs (6)
31internal readonly RSAParameters? PrivateKey; 75internal StrongNameKeys(ImmutableArray<byte> keyPair, ImmutableArray<byte> publicKey, RSAParameters? privateKey, string? keyContainerName, string? keyFilePath, bool hasCounterSignature) 88internal static StrongNameKeys Create(ImmutableArray<byte> publicKey, RSAParameters? privateKey, bool hasCounterSignature, CommonMessageProvider messageProvider) 125private static Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>? s_lastSeenKeyPair; 132RSAParameters? privateKey = null; 159cachedKeyPair = new Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>(keyPair, publicKey, privateKey);
StrongName\StrongNameProvider.cs (1)
33internal abstract void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey);
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\SharedSecretProvider.cs (2)
42internal RSAParameters ExportPublicKeyParameters() 45private static void ExportPublicKey(RSAParameters parameters, TextWriter outputStream)
Microsoft.DotNet.StrongName (4)
Signing.cs (2)
168if (!TryParseKey(File.ReadAllBytes(keyFile).ToImmutableArray(), out ImmutableArray<byte> snkPublicKey, out RSAParameters? privateKey) || 296private static bool TryParseKey(ImmutableArray<byte> blob, out ImmutableArray<byte> snKey, out RSAParameters? privateKey)
Utils.cs (2)
177internal static RSAParameters ToRSAParameters(this ImmutableArray<byte> cspBlob, bool includePrivateParameters) 195RSAParameters rsaParameters = new RSAParameters();
Mono.Cecil (3)
Mono.Security.Cryptography\CryptoConvert.cs (3)
71 RSAParameters rsap = new RSAParameters (); 190 RSAParameters rsap = new RSAParameters (); 256 RSAParameters p = rsa.ExportParameters (false);
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
914[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSAParameters))]
netstandard (1)
netstandard.cs (1)
1918[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSAParameters))]
System.Configuration.ConfigurationManager (1)
System\Configuration\RsaProtectedConfigurationProvider.cs (1)
53public RSAParameters RsaPublicKey { get { throw new PlatformNotSupportedException(); } }
System.Security.Cryptography (64)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (4)
25public override void ImportParameters(RSAParameters parameters) 181public override RSAParameters ExportParameters(bool includePrivateParameters) 193out RSAParameters rsaParameters); 198RSAParameters rsaParams = default;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (6)
21out RSAParameters ret) 34out RSAParameters ret) 60out RSAParameters key) 62KeyFormatHelper.ReadSubjectPublicKeyInfo<RSAParameters>( 105internal static AsnWriter WriteSubjectPublicKeyInfo(in RSAParameters rsaParameters) 153internal static AsnWriter WritePkcs8PrivateKey(in RSAParameters rsaParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs (4)
12out RSAParameters key) 14KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>( 27out RSAParameters key) 29KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (6)
13internal delegate TRet RSAParametersCallback<TRet>(RSAParameters parameters); 37RSAParameters parameters = new RSAParameters 67static TRet ExtractParametersWithCallback(RSAParametersCallback<TRet> parametersReader, in ValueRSAPrivateKeyAsn key, ref RSAParameters parameters) 86RSAParameters parameters = new RSAParameters 95internal static AsnWriter WritePkcs1PublicKey(in RSAParameters rsaParameters) 111internal static AsnWriter WritePkcs1PrivateKey(in RSAParameters rsaParameters)
System\Security\Cryptography\CapiHelper.Shared.cs (3)
69internal static byte[] ToKeyBlob(this RSAParameters rsaParameters) 157internal static RSAParameters ToRSAParameters(this byte[] cspBlob, bool includePrivateParameters) 178RSAParameters rsaParameters = default;
System\Security\Cryptography\CngHelpers.cs (2)
112internal static unsafe ArraySegment<byte> ToBCryptBlob(this in RSAParameters parameters) 225this ref RSAParameters rsaParams,
System\Security\Cryptography\OpenSsl.NotSupported.cs (3)
217public RSAOpenSsl(RSAParameters parameters) 233public override RSAParameters ExportParameters(bool includePrivateParameters) => default; 234public override void ImportParameters(RSAParameters parameters) { }
System\Security\Cryptography\RSA.cs (9)
46public static RSA Create(RSAParameters parameters) 89public abstract RSAParameters ExportParameters(bool includePrivateParameters); 90public abstract void ImportParameters(RSAParameters parameters); 849RSAParameters rsaParameters = ExportParameters(false); 855RSAParameters rsaParameters = ExportParameters(true); 897RSAKeyFormatHelper.ReadRsaPublicKey(source.Slice(0, localRead), ignored, out RSAParameters rsaParameters); 953out RSAParameters ret); 984out RSAParameters ret); 1352private static void ClearPrivateParameters(in RSAParameters rsaParameters)
System\Security\Cryptography\RSA.Xml.cs (18)
31byte[] n = ReadRequiredElement(ref state, nameof(RSAParameters.Modulus)); 32byte[] e = ReadRequiredElement(ref state, nameof(RSAParameters.Exponent)); 38byte[]? p = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.P), halfN); 39byte[]? q = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.Q), halfN); 40byte[]? dp = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.DP), halfN); 41byte[]? dq = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.DQ), halfN); 42byte[]? qInv = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.InverseQ), halfN); 43byte[]? d = XmlKeyHelper.ReadCryptoBinary(ref state, nameof(RSAParameters.D), n.Length); 45RSAParameters keyParameters = new RSAParameters 109RSAParameters keyParameters = ExportParameters(includePrivateParameters); 112XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.Modulus), keyParameters.Modulus, builder); 113XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.Exponent), keyParameters.Exponent, builder); 118XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.P), keyParameters.P, builder); 119XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.Q), keyParameters.Q, builder); 120XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.DP), keyParameters.DP, builder); 121XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.DQ), keyParameters.DQ, builder); 122XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.InverseQ), keyParameters.InverseQ, builder); 123XmlKeyHelper.WriteCryptoBinary(nameof(RSAParameters.D), keyParameters.D, builder);
System\Security\Cryptography\RSABCrypt.cs (3)
73public override RSAParameters ExportParameters(bool includePrivateParameters) 83RSAParameters ret = default; 94public override void ImportParameters(RSAParameters parameters)
System\Security\Cryptography\RSACng.ImportExport.cs (1)
65out RSAParameters rsaParameters);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (2)
333public override RSAParameters ExportParameters(bool includePrivateParameters) 379public override void ImportParameters(RSAParameters parameters)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
234RSAParameters privateParameters = rsa.ExportParameters(true);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
43RSAParameters currentParameters = publicKey.ExportParameters(false); 44RSAParameters newParameters = privateKey.ExportParameters(false);
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
47[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSAParameters))]
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
70RSAParameters rsaParams = _key.ExportParameters(false);
System.ServiceModel.Primitives (2)
System\ServiceModel\RsaEndpointIdentity.cs (2)
51RSAParameters parameters = new RSAParameters(); 66RSAParameters parameters = rsa.ExportParameters(false);