8 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();
System.Security.Cryptography (3)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (2)
51RSAParameters parameters = new RSAParameters 111RSAParameters 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();
112 references to RSAParameters
dotnet-watch (2)
SharedSecretProvider.cs (2)
41internal RSAParameters ExportPublicKeyParameters() 44private static void ExportPublicKey(RSAParameters parameters, TextWriter outputStream)
Microsoft.AspNetCore.Identity (1)
Passkeys\CredentialPublicKey.cs (1)
133var rsaParams = new RSAParameters();
Microsoft.AspNetCore.Identity.Test (1)
Passkeys\CredentialKeyPair.cs (1)
112var parameters = rsa.ExportParameters(false);
Microsoft.CodeAnalysis (18)
CommandLine\CommonCompiler.cs (1)
1428RSAParameters? privateKeyOpt = null;
Compilation\Compilation.cs (3)
3002RSAParameters? privateKeyOpt = null; 3234RSAParameters? privateKeyOpt, 3391RSAParameters? 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.CodeAnalysis.Test.Utilities (3)
Compilation\TestDesktopStrongNameProvider.cs (2)
23internal Action<ExtendedPEBuilder, BlobBuilder, RSAParameters> SignBuilderFunc { get; set; } 40internal override void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey) => SignBuilderFunc(peBuilder, peBlob, privateKey);
Metadata\ILValidation.cs (1)
100var snKey = CryptoBlobParser.ToRSAParameters(publicKeyParams.AsSpan(), includePrivateParameters: false);
Microsoft.CodeAnalysis.UnitTests (4)
CryptoBlobParserTests.cs (4)
29RSAParameters? privateKeyOpt; 32var privKey = privateKeyOpt.Value; 72RSAParameters? privateKeyOpt; 75var privKey = privateKeyOpt.Value;
Microsoft.DotNet.HotReload.Client.Package (2)
Web\SharedSecretProvider.cs (2)
41internal RSAParameters ExportPublicKeyParameters() 44private static void ExportPublicKey(RSAParameters parameters, TextWriter outputStream)
Microsoft.DotNet.HotReload.Client.Tests (4)
SharedSecretProvider.cs (2)
41internal RSAParameters ExportPublicKeyParameters() 44private static void ExportPublicKey(RSAParameters parameters, TextWriter outputStream)
SharedSecretProviderTests.cs (2)
25var publicKeyParameters = provider.ExportPublicKeyParameters(); 47public static string GetEncryptedSecret(string key, RSAParameters publicKeyParameters, byte[] secret)
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();
Microsoft.Extensions.DotNetDeltaApplier.Tests (2)
SharedSecretProvider.cs (2)
41internal RSAParameters ExportPublicKeyParameters() 44private static void ExportPublicKey(RSAParameters parameters, TextWriter outputStream)
mscorlib (1)
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\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (6)
21out RSAParameters ret) 34out RSAParameters ret) 62out RSAParameters key) 64KeyFormatHelper.ReadSubjectPublicKeyInfo<RSAParameters>( 142internal static AsnWriter WriteSubjectPublicKeyInfo(in RSAParameters rsaParameters) 190internal static AsnWriter WritePkcs8PrivateKey(in RSAParameters rsaParameters)
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs (4)
12out RSAParameters key) 14KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>( 27out RSAParameters key) 29KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>(
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (6)
13internal delegate TRet RSAParametersCallback<TRet>(RSAParameters parameters); 51RSAParameters parameters = new RSAParameters 81static TRet ExtractParametersWithCallback(RSAParametersCallback<TRet> parametersReader, ref RSAPrivateKeyAsn key, ref RSAParameters parameters) 111RSAParameters parameters = new RSAParameters 120internal static AsnWriter WritePkcs1PublicKey(in RSAParameters rsaParameters) 136internal static AsnWriter WritePkcs1PrivateKey(in RSAParameters rsaParameters)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (6)
420public override RSAParameters ExportParameters(bool includePrivateParameters) 428RSAParameters ret; 437RSAParameters ret; 448public override void ImportParameters(RSAParameters parameters) 665private static void ValidateParameters(ref RSAParameters parameters) 674private static bool HasConsistentPrivateKey(ref RSAParameters parameters)
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\Cng.NotSupported.cs (2)
360public override RSAParameters ExportParameters(bool includePrivateParameters) => default; 361public 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); 907RSAKeyFormatHelper.ReadRsaPublicKey(manager.Memory, ignored, out RSAParameters rsaParameters); 973out RSAParameters ret); 1004out RSAParameters ret); 1372private 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\RSACryptoServiceProvider.Unix.cs (4)
115RSAParameters parameters = ExportParameters(includePrivateParameters); 119public override RSAParameters ExportParameters(bool includePrivateParameters) => 126RSAParameters parameters = CapiHelper.ToRSAParameters(keyBlob, !IsPublic(keyBlob)); 130public override void ImportParameters(RSAParameters parameters)
System\Security\Cryptography\RSAOpenSsl.cs (1)
17public RSAOpenSsl(RSAParameters parameters)
System\Security\Cryptography\RSAWrapper.cs (2)
47public override RSAParameters ExportParameters(bool includePrivateParameters) => 50public override void ImportParameters(RSAParameters parameters) => _wrapped.ImportParameters(parameters);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
771RSAParameters rsaParameters = privateKey.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);