5 types derived from RSA
System.Security.Cryptography (5)
339 references to RSA
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
dotnet-dev-certs (7)
dotnet-svcutil-lib (2)
dotnet-watch (4)
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.Identity (3)
Microsoft.AspNetCore.Identity.Test (5)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
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.HotReload.Client.Package (2)
Microsoft.DotNet.HotReload.Client.Tests (4)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.StrongName (4)
Microsoft.Extensions.DotNetDeltaApplier.Tests (2)
Microsoft.NET.Build.Containers.UnitTests (2)
Microsoft.WebTools.AspireService.Package (2)
Microsoft.WebTools.AspireService.Tests (2)
mscorlib (1)
netstandard (1)
PresentationUI (1)
System.Security.Cryptography (84)
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.Algorithms (1)
System.Security.Cryptography.Cose (8)
System.Security.Cryptography.Pkcs (14)
System.Security.Cryptography.Xml (14)
System.ServiceModel.Primitives (17)
System.ServiceModel.Primitives.Tests (2)
Templates.Blazor.Tests (6)
Templates.Blazor.WebAssembly.Auth.Tests (6)
Templates.Blazor.WebAssembly.Tests (6)
Templates.Mvc.Tests (6)
Templates.Tests (6)