5 types derived from RSA
System.Security.Cryptography (5)
288 references to RSA
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
dotnet-dev-certs (7)
dotnet-svcutil-lib (2)
HttpStress (2)
IIS.FunctionalTests (4)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IIS.ShadowCopy.Tests (4)
IISExpress.FunctionalTests (4)
InMemory.FunctionalTests (14)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.HttpOverrides.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
Microsoft.AspNetCore.Testing (3)
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),
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.StrongName (4)
mscorlib (1)
netstandard (1)
PresentationUI (1)
System.Security.Cryptography (75)
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,
1334static bool Export(RSA alg, Span<byte> destination, out int bytesWritten)
1380static bool Export(RSA alg, Span<byte> destination, out int bytesWritten)
1403private delegate bool TryFunc<TState>(RSA rsa, ReadOnlySpan<byte> input, byte[] destination, TState state, out int bytesWritten);
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Cose (12)
System\Security\Cryptography\Cose\CoseHelpers.cs (4)
120return SignHashWithRSA((RSA)key, hasher, signer.HashAlgorithm, signer.RSASignaturePadding, destination);
145private static int SignHashWithRSA(RSA key, IncrementalHash hasher, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Span<byte> destination)
280_ => throw new CryptographicException(SR.Format(SR.Sign1AlgDoesNotMatchWithTheOnesSupportedByTypeOfKey, algorithm, typeof(RSA)))
303RSA => KeyType.RSA,
System.Security.Cryptography.Pkcs (15)
System.Security.Cryptography.Xml (14)
Templates.Blazor.Tests (6)
Templates.Blazor.WebAssembly.Auth.Tests (6)
Templates.Blazor.WebAssembly.Tests (6)
Templates.Mvc.Tests (6)
Templates.Tests (6)