5 types derived from RSA
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
16public sealed partial class RSAOpenSsl : RSA, IRuntimeAlgorithm
System\Security\Cryptography\Cng.NotSupported.cs (1)
339public sealed partial class RSACng : RSA
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
10public sealed partial class RSACryptoServiceProvider : RSA, ICspAsymmetricAlgorithm, IRuntimeAlgorithm
System\Security\Cryptography\RSAOpenSsl.cs (1)
10public sealed partial class RSAOpenSsl : RSA
System\Security\Cryptography\RSAWrapper.cs (1)
10internal sealed class RSAWrapper : RSA
339 references to RSA
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
331using var rsa = RSA.Create(2048);
Aspire.Dashboard.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
331using var rsa = RSA.Create(2048);
dotnet-dev-certs (7)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
36using var key = c.GetRSAPrivateKey();
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TrustDriver.cs (1)
141public abstract GenericXmlSecurityToken GetIssuedToken(RequestSecurityTokenResponse rstr, string expectedTokenType, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, RSA clientKey);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
493ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, RSA clientKey)
dotnet-watch (4)
CertGenerator.cs (2)
17var rsa = RSA.Create(rsaKeySize); // Create asymmetric RSA key pair.
SharedSecretProvider.cs (2)
13private readonly RSA _rsa = RSA.Create(2048);
HttpStress (2)
Program.cs (2)
396using (RSA rsa = RSA.Create())
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (4)
26var parentKey = CreateKeyMaterial(2048); 93private RSA CreateKeyMaterial(int minimumKeySize) 95var rsa = RSA.Create(minimumKeySize);
InMemory.FunctionalTests (14)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (14)
151RSA publicKey, 167internal X509Certificate2 CreateEndEntity(string subject, RSA publicKey, X509ExtensionCollection extensions) 176internal X509Certificate2 CreateOcspSigner(string subject, RSA publicKey) 225using (RSA rsa = _cert.GetRSAPrivateKey()) 239RSA publicKey, 340using (RSA key = _cert.GetRSAPrivateKey()) 478using (RSA key = _cert.GetRSAPrivateKey()) 630using (RSA rsa = responder.GetRSAPrivateKey()) 817using (RSA rootKey = RSA.Create(keySize)) 818using (RSA eeKey = RSA.Create(keySize)) 856using RSA intermediateKey = RSA.Create(keySize);
Microsoft.AspNetCore.Authentication.Test (2)
src\Shared\test\Certificates\Certificates.cs (2)
80using (var key = RSA.Create(2048))
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
156using (var privateKey = keyDecryptionCert.GetRSAPrivateKey())
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
303using var privateKey = httpsCertificate.GetRSAPrivateKey();
Microsoft.AspNetCore.HttpOverrides.Tests (2)
src\Shared\test\Certificates\Certificates.cs (2)
80using (var key = RSA.Create(2048))
Microsoft.AspNetCore.Identity (3)
Passkeys\CredentialPublicKey.cs (3)
14private readonly RSA? _rsa; 131private static RSA ParseRSA(Ctap2CborReader reader) 146return RSA.Create(rsaParams);
Microsoft.AspNetCore.Identity.Test (5)
Passkeys\CredentialKeyPair.cs (5)
13private readonly RSA? _rsa; 19private CredentialKeyPair(RSA rsa, COSEAlgorithmIdentifier alg) 92var rsa = RSA.Create(KeySize); 110private static byte[] EncodeCoseRsaPublicKey(RSA rsa, COSEAlgorithmIdentifier alg)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Certificates\CertificateConfigLoader.cs (2)
142using var rsa = RSA.Create();
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
36using var key = c.GetRSAPrivateKey();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (14)
151RSA publicKey, 167internal X509Certificate2 CreateEndEntity(string subject, RSA publicKey, X509ExtensionCollection extensions) 176internal X509Certificate2 CreateOcspSigner(string subject, RSA publicKey) 225using (RSA rsa = _cert.GetRSAPrivateKey()) 239RSA publicKey, 340using (RSA key = _cert.GetRSAPrivateKey()) 478using (RSA key = _cert.GetRSAPrivateKey()) 630using (RSA rsa = responder.GetRSAPrivateKey()) 817using (RSA rootKey = RSA.Create(keySize)) 818using (RSA eeKey = RSA.Create(keySize)) 856using RSA intermediateKey = RSA.Create(keySize);
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (2)
866using (var rsa = RSA.Create(2048))
Microsoft.AspNetCore.Testing (3)
FakeSslCertificateFactory.cs (3)
16private static readonly RSA _rsa = GenerateRsa(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 46internal static RSA GenerateRsa(bool runsOnWindows) 53: RSA.Create();
Microsoft.Build.Tasks.Core (37)
ManifestUtil\CngLightup.cs (28)
59private static volatile Func<X509Certificate2, RSA> s_getRsaPublicKey; 60private static volatile Func<X509Certificate2, RSA> s_getRsaPrivateKey; 61private static volatile Func<RSA, byte[], string, byte[]> s_rsaPkcs1SignMethod; 62private static volatile Func<RSA, byte[], byte[], string, bool> s_rsaPkcs1VerifyMethod; 63private static volatile Func<RSA, byte[], byte[]> s_rsaPkcs1EncryptMethod; 64private static volatile Func<RSA, byte[], byte[]> s_rsaPkcs1DecryptMethod; 65private static volatile Func<RSA, byte[], byte[]> s_rsaOaepSha1EncryptMethod; 66private static volatile Func<RSA, byte[], byte[]> s_rsaOaepSha1DecryptMethod; 73internal static RSA GetRSAPublicKey(X509Certificate2 cert) 80BindCoreDelegate<RSA>("RSA", isPublic: true) ?? 81BindGetCapiPublicKey<RSA, RSACryptoServiceProvider>(RsaOid); 85s_getRsaPublicKey = BindGetCapiPublicKey<RSA, RSACryptoServiceProvider>(RsaOid); 92internal static RSA GetRSAPrivateKey(X509Certificate2 cert) 99BindCoreDelegate<RSA>("RSA", isPublic: false) ?? 100BindGetCapiPrivateKey<RSA>(RsaOid, csp => new RSACryptoServiceProvider(csp)); 104s_getRsaPrivateKey = BindGetCapiPrivateKey<RSA>(RsaOid, csp => new RSACryptoServiceProvider(csp)); 141internal static byte[] Pkcs1SignData(RSA rsa, byte[] data, string hashAlgorithmName) 161MethodInfo signDataMethod = typeof(RSA).GetMethod( 174typeof(RSA), 196internal static bool Pkcs1VerifyData(RSA rsa, byte[] data, byte[] signature, string hashAlgorithmName) 216MethodInfo verifyDataMethod = typeof(RSA).GetMethod( 231typeof(RSA), 262internal static byte[] Pkcs1Encrypt(RSA rsa, byte[] data) 285internal static byte[] Pkcs1Decrypt(RSA rsa, byte[] data) 308internal static byte[] OaepSha1Encrypt(RSA rsa, byte[] data) 332internal static byte[] OaepSha1Decrypt(RSA rsa, byte[] data) 360MethodInfo cryptMethod = typeof(RSA).GetMethod( 373typeof(RSA),
ManifestUtil\mansign2.cs (8)
525rsaCsp.ImportParameters(((RSA)snKey).ExportParameters(false)); 668RSA rsaPrivateKey = CngLightup.GetRSAPrivateKey(signer.Certificate); 678var rsaCsp = rsaPrivateKey is RSACryptoServiceProvider ? 908RSA snKey = signer.StrongNameKey as RSA; 927if (!(signer.StrongNameKey is RSA)) 1069RSA rsa = strongNameKey as RSA;
ManifestUtil\SecurityUtil.cs (1)
686using (RSA rsa = CngLightup.GetRSAPrivateKey(cert))
Microsoft.CodeAnalysis (2)
PEWriter\SigningUtilities.cs (2)
24using (var rsa = RSA.Create())
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\ILValidation.cs (2)
102using (var rsa = RSA.Create())
Microsoft.DotNet.HotReload.Client.Package (2)
Web\SharedSecretProvider.cs (2)
13private readonly RSA _rsa = RSA.Create(2048);
Microsoft.DotNet.HotReload.Client.Tests (4)
SharedSecretProvider.cs (2)
13private readonly RSA _rsa = RSA.Create(2048);
SharedSecretProviderTests.cs (2)
50using var rsa = RSA.Create();
Microsoft.DotNet.SignTool.Tests (2)
StrongNameSupportHelper.cs (2)
13using (RSA rsa = RSA.Create(2048))
Microsoft.DotNet.StrongName (4)
Signing.cs (2)
208using (RSA snkRSA = RSA.Create())
Verification.cs (2)
116using (RSA rsa = RSA.Create())
Microsoft.Extensions.DotNetDeltaApplier.Tests (2)
SharedSecretProvider.cs (2)
13private readonly RSA _rsa = RSA.Create(2048);
Microsoft.NET.Build.Containers.UnitTests (2)
RegistryTests.cs (2)
416var key = RSA.Create(2048);
Microsoft.WebTools.AspireService.Package (2)
Helpers\CertGenerator.cs (2)
17var rsa = RSA.Create(rsaKeySize); // Create asymmetric RSA key pair.
Microsoft.WebTools.AspireService.Tests (2)
CertGenerator.cs (2)
17var rsa = RSA.Create(rsaKeySize); // Create asymmetric RSA key pair.
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
908[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSA))]
netstandard (1)
netstandard.cs (1)
1912[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSA))]
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
474using (RSA rsa = x509Certificate2.GetRSAPrivateKey())
System.Security.Cryptography (84)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.RSA.cs (9)
21private RSA _rsa; 23private RsaComponent(RSA rsa, HashAlgorithmName hashAlgorithmName, RSASignaturePadding padding) 58private static RSA CreateRSA() => RSA.Create(); 59private static RSA CreateRSA(int keySizeInBits) => RSA.Create(keySizeInBits); 105RSA? rsa = null; 127RSA? rsa = null; 182RSA? rsa = null;
System\Security\Cryptography\RSA.Create.OpenSsl.cs (1)
8public static new partial RSA Create()
System\Security\Cryptography\RSA.cs (14)
19public static new partial RSA Create(); 23public static new RSA? Create(string algName) 25return (RSA?)CryptoConfig.CreateFromName(algName); 29public static RSA Create(int keySizeInBits) 31RSA rsa = Create(); 46public static RSA Create(RSAParameters parameters) 48RSA rsa = Create(); 166RSA rsa, 253RSA rsa, 462RSA rsa, 568RSA rsa, 1313static bool Export(RSA alg, Span<byte> destination, out int bytesWritten) 1359static bool Export(RSA alg, Span<byte> destination, out int bytesWritten) 1382private delegate bool TryFunc<TState>(RSA rsa, ReadOnlySpan<byte> input, byte[] destination, TState state, out int bytesWritten);
System\Security\Cryptography\RSA.Xml.cs (1)
20SR.Format(SR.Cryptography_InvalidFromXmlString, nameof(RSA), name));
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (2)
14private readonly RSA _impl; 27_impl = RSA.Create(dwKeySize);
System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs (3)
8private RSA? _rsaKey; 15_rsaKey = (RSA)key; 36_rsaKey = (RSA)key;
System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs (3)
9private RSA? _rsaKey; 17_rsaKey = (RSA)key; 59_rsaKey = (RSA)key;
System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs (3)
10private RSA? _rsaKey; 19_rsaKey = (RSA)key; 46_rsaKey = (RSA)key;
System\Security\Cryptography\RSAPKCS1KeyExchangeFormatter.cs (3)
10private RSA? _rsaKey; 19_rsaKey = (RSA)key; 40_rsaKey = (RSA)key;
System\Security\Cryptography\RSAPKCS1SignatureDeformatter.cs (3)
12private RSA? _rsaKey; 20_rsaKey = (RSA)key; 27_rsaKey = (RSA)key;
System\Security\Cryptography\RSAPKCS1SignatureFormatter.cs (3)
12private RSA? _rsaKey; 21_rsaKey = (RSA)key; 28_rsaKey = (RSA)key;
System\Security\Cryptography\RSAWrapper.cs (2)
12private readonly RSA _wrapped; 14internal RSAWrapper(RSA wrapped)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
27if (typeof(T) == typeof(RSA) || typeof(T) == typeof(DSA)) 60if (typeof(T) == typeof(RSA)) 78if (typeof(T) == typeof(RSA))
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (4)
130public CertificateRequest(string subjectName, RSA key, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 164RSA key, 700case RSA rsa: 905RSA? rsa = issuerCertificate.GetRSAPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
300RSA? rsa = publicKey.GetRSAPublicKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
192RSA? rsa = issuerCertificate.GetRSAPrivateKey();
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (2)
30RSA? GetRSAPrivateKey(); 41ICertificatePal CopyWithPrivateKey(RSA privateKey);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
551public RSA? GetRSAPrivateKey() 762public ICertificatePal CopyWithPrivateKey(RSA privateKey)
System\Security\Cryptography\X509Certificates\PublicKey.cs (4)
230/// Gets the <see cref="RSA" /> public key, or <see langword="null" /> if the key is not an RSA key. 239public RSA? GetRSAPublicKey() 244RSA rsa = RSA.Create();
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (9)
9/// Provides extension methods for retrieving <see cref="RSA" /> implementations for the 15/// Gets the <see cref="RSA" /> public key from the certificate or null if the certificate does not have an RSA public key. 17public static RSA? GetRSAPublicKey(this X509Certificate2 certificate) 19return certificate.GetPublicKey<RSA>(); 23/// Gets the <see cref="RSA" /> private key from the certificate or null if the certificate does not have an RSA private key. 25public static RSA? GetRSAPrivateKey(this X509Certificate2 certificate) 27return certificate.GetPrivateKey<RSA>(); 30public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, RSA privateKey) 38using (RSA? publicKey = GetRSAPublicKey(certificate))
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (3)
11private readonly RSA _key; 13internal RSAPkcs1X509SignatureGenerator(RSA key) 30internal static PublicKey BuildPublicKey(RSA rsa)
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (2)
12private readonly RSA _key; 15internal RSAPssX509SignatureGenerator(RSA key, RSASignaturePadding padding)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
580using (RSA? pubRsa = this.GetRSAPublicKey()) 1371Oids.Rsa => ExtractKeyFromPem<RSA>( 1374static keyPem => CreateAndImport(keyPem, RSA.Create), 1469ExtractKeyFromEncryptedPem<RSA>( 1472static (keyPem, password) => CreateAndImportEncrypted(keyPem, password, RSA.Create),
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
25public static X509SignatureGenerator CreateForRSA(RSA key, RSASignaturePadding signaturePadding)
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
38[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.RSA))]
System.Security.Cryptography.Cose (8)
System\Security\Cryptography\Cose\CoseKey.cs (4)
24private RSA? _rsaKey; 30public CoseKey(RSA key, RSASignaturePadding signaturePadding, HashAlgorithmName hashAlgorithm) 81else if (key is RSA rsaKey) 226private static int SignHashWithRSA(RSA key, ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Span<byte> destination)
System\Security\Cryptography\Cose\CoseSigner.cs (4)
52/// <paramref name="key"/> is <see cref="RSA"/>, use <see cref="CoseSigner(RSA, RSASignaturePadding, HashAlgorithmName, CoseHeaderMap?, CoseHeaderMap?)"/> to specify a signature padding. 75if (key is RSA) 110public CoseSigner(RSA key, RSASignaturePadding signaturePadding, HashAlgorithmName hashAlgorithm, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null)
System.Security.Cryptography.Pkcs (14)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
79if (typeof(T) == typeof(RSA))
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (2)
47RSA? key = privateKey as RSA;
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (5)
36internal byte[]? DecryptCek(X509Certificate2? cert, RSA? privateKey, out Exception? exception) 66RSA? privateKey, 100using (RSA? rsa = cert.GetRSAPrivateKey()) 172using (RSA rsa = recipient.Certificate.GetRSAPublicKey()!) 182RSA? privateKey,
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (5)
42protected override bool VerifyKeyType(object key) => key is RSA; 74RSA? publicKey = certificate.GetRSAPublicKey(); 114using (GetSigningKey(key, certificate, silent, RSACertificateExtensions.GetRSAPublicKey, out RSA? privateKey)) 138using (RSA certKey = certificate.GetRSAPublicKey()!) 163using (RSA certKey = certificate.GetRSAPublicKey()!)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
173RSA? privateKey,
System.Security.Cryptography.Xml (14)
System\Security\Cryptography\Xml\EncryptedXml.cs (8)
424return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (RSA)kek, fOAEP); 434using (RSA? privateKey = certificate.GetRSAPrivateKey()) 513if (!(keyObject is SymmetricAlgorithm) && !(keyObject is RSA)) 532using (RSA? rsaPublicKey = certificate.GetRSAPublicKey()) 581RSA rsa = (encryptionKey as RSA)!; 880public static byte[] EncryptKey(byte[] keyData, RSA rsa, bool useOAEP) 921public static byte[] DecryptKey(byte[] keyData, RSA rsa, bool useOAEP)
System\Security\Cryptography\Xml\RSAKeyValue.cs (4)
10private RSA _key; 18_key = RSA.Create(); 21public RSAKeyValue(RSA key) 32public RSA Key
System\Security\Cryptography\Xml\RSAPKCS1SignatureDescription.cs (1)
12KeyAlgorithm = typeof(RSA).AssemblyQualifiedName;
System\Security\Cryptography\Xml\SignedXml.cs (1)
400else if (key is RSA)
System.ServiceModel.Primitives (17)
System\IdentityModel\Claims\Claim.cs (1)
151public static Claim CreateRsaClaim(RSA rsa)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (11)
146if ((PrivateKey as RSA) != null) 148return (PrivateKey as RSA); 176if ((PublicKey as RSA) != null) 178return (PublicKey as RSA); 281RSA rsa = (PublicKey as RSA); 356RSA rsa = (PrivateKey as RSA); 366RSA rsaSha256 = (privateKey as RSA); 437return (PublicKey is RSA);
System\ServiceModel\RsaEndpointIdentity.cs (5)
26RSA rsa = certificate.GetRSAPublicKey(); 65RSA rsa = (RSA)this.IdentityClaim.Resource; 73private static RSA ToRsa(string keyString) 78RSA rsa = new RSACryptoServiceProvider();
System.ServiceModel.Primitives.Tests (2)
ServiceModel\X509CertificateEndpointIdentityTest.cs (2)
94using (RSA rsa = RSA.Create(2048))
Templates.Blazor.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
Templates.Blazor.WebAssembly.Auth.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
Templates.Blazor.WebAssembly.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
Templates.Mvc.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);
Templates.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
565RSA? key = null; 594key = RSA.Create(); 823using var key = CreateKeyMaterial(RSAMinimumKeySizeInBits); 834static RSA CreateKeyMaterial(int minimumKeySize) 836var rsa = RSA.Create(minimumKeySize);