3 types derived from RSA
mscorlib (1)
system\security\cryptography\rsacryptoserviceprovider.cs (1)
40public sealed class RSACryptoServiceProvider : RSA
System.Core (1)
System\Security\Cryptography\RsaCng.cs (1)
11public sealed class RSACng : RSA
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (1)
28internal class InfoCardRSACryptoProvider : RSA
173 references to RSA
mscorlib (32)
system\security\cryptography\rsa.cs (9)
53new static public RSA Create() { 57new static public RSA Create(String algName) { 58return (RSA) CryptoConfig.CreateFromName(algName); 61static public RSA Create(int keySizeInBits) { 62RSA rsa = (RSA)CryptoConfig.CreateFromName("RSAPSS"); 72static public RSA Create(RSAParameters parameters) { 73RSA rsa = (RSA)CryptoConfig.CreateFromName("RSAPSS");
system\security\cryptography\rsaoaepkeyexchangedeformatter.cs (3)
13private RSA _rsaKey; // RSA Key value to do decrypt operation 25_rsaKey = (RSA) key; 57_rsaKey = (RSA) key;
system\security\cryptography\rsaoaepkeyexchangeformatter.cs (3)
14private RSA _rsaKey; 27_rsaKey = (RSA) key; 67_rsaKey = (RSA) key;
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (3)
13RSA _rsaKey; 25_rsaKey = (RSA) key; 86_rsaKey = (RSA) key;
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (3)
16RSA _rsaKey; 29_rsaKey = (RSA) key; 53_rsaKey = (RSA) key;
system\security\cryptography\rsapkcs1signaturedeformatter.cs (3)
28private RSA _rsaKey; // RSA Key value to do decrypt operation 41_rsaKey = (RSA) key; 52_rsaKey = (RSA) key;
system\security\cryptography\rsapkcs1signatureformatter.cs (3)
20private RSA _rsaKey; 34_rsaKey = (RSA) key; 45_rsaKey = (RSA) key;
system\security\cryptography\utils.cs (5)
806internal static byte[] RsaOaepEncrypt (RSA rsa, HashAlgorithm hash, PKCS1MaskGenerationMethod mgf, RandomNumberGenerator rng, byte[] data) { 855internal static byte[] RsaOaepDecrypt (RSA rsa, HashAlgorithm hash, PKCS1MaskGenerationMethod mgf, byte[] encryptedData) { 934internal static byte[] RsaPkcs1Padding (RSA rsa, byte[] oid, byte[] hash) { 1032internal static bool DoesRsaKeyOverride(RSA rsaKey, string methodName, Type[] parameterTypes) 1064if (declaringType == typeof(RSA))
System.Core (8)
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (8)
11/// Provides extension methods for retrieving <see cref="RSA" /> implementations for the 17/// Gets the <see cref="RSA" /> public key from the certificate or null if the certificate does not have an RSA public key. 20public static RSA GetRSAPublicKey(this X509Certificate2 certificate) 56/// Gets the <see cref="RSA" /> private key from the certificate or null if the certificate does not have an RSA private key. 59public static RSA GetRSAPrivateKey(this X509Certificate2 certificate) 79return (RSA)certificate.PrivateKey; 94public static X509Certificate2 CopyWithPrivateKey(this X509Certificate2 certificate, RSA privateKey) 104using (RSA publicKey = GetRSAPublicKey(certificate))
System.IdentityModel (72)
System\IdentityModel\Claims\Claim.cs (1)
146public static Claim CreateRsaClaim(RSA rsa)
System\IdentityModel\Claims\ClaimComparer.cs (6)
224RSA rsa1 = obj1 as RSA; 225RSA rsa2 = obj2 as RSA; 251RSA rsa = obj as RSA;
System\IdentityModel\Claims\ClaimsConversionHelper.cs (2)
194else if (StringComparer.Ordinal.Equals(claim.ClaimType, ClaimTypes.Rsa) && claim.Resource is RSA) 197_value = ((RSA)claim.Resource).ToXmlString(false);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
195RSA rsa; 198rsa = this.certificate.PublicKey.Key as RSA;
System\IdentityModel\RsaEncryptionCookieTransform.cs (13)
14/// Encrypts a cookie using <see cref="RSA"/>. 40RSA _encryptionKey; 41List<RSA> _decryptionKeys = new List<RSA>(); 49public RsaEncryptionCookieTransform(RSA key) 87public virtual RSA EncryptionKey 93_decryptionKeys = new List<RSA>(new RSA[] { _encryptionKey }); 101protected virtual ReadOnlyCollection<RSA> DecryptionKeys 153ReadOnlyCollection<RSA> decryptionKeys = DecryptionKeys; 163RSA rsaDecryptionKey = null; 205foreach (RSA key in decryptionKeys) 273RSA encryptionKey = EncryptionKey;
System\IdentityModel\RsaSignatureCookieTransform.cs (14)
13/// Provides cookie integrity using <see cref="RSA"/> signature. 29RSA _signingKey; 30List<RSA> _verificationKeys = new List<RSA>(); 38public RsaSignatureCookieTransform(RSA key) 99public virtual RSA SigningKey 105_verificationKeys = new List<RSA>(new RSA[] { _signingKey }); 113protected virtual ReadOnlyCollection<RSA> VerificationKeys 149ReadOnlyCollection<RSA> verificationKeys = VerificationKeys; 194foreach (RSA rsa in verificationKeys) 244RSA signingKey = SigningKey; 310AsymmetricSignatureFormatter GetSignatureFormatter(RSA rsa) 326AsymmetricSignatureDeformatter GetSignatureDeformatter(RSA rsa)
System\IdentityModel\Tokens\AsymmetricProofDescriptor.cs (1)
28public AsymmetricProofDescriptor( RSA rsaAlgorithm )
System\IdentityModel\Tokens\RsaKeyIdentifierClause.cs (4)
14readonly RSA rsa; 18public RsaKeyIdentifierClause(RSA rsa) 33public RSA Rsa 66public bool Matches(RSA rsa)
System\IdentityModel\Tokens\RsaSecurityKey.cs (2)
14readonly RSA rsa; 16public RsaSecurityKey(RSA rsa)
System\IdentityModel\Tokens\RsaSecurityToken.cs (4)
20RSA rsa; 24public RsaSecurityToken(RSA rsa) 29public RsaSecurityToken(RSA rsa, string id) 180public RSA Rsa
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
121RSA rsa = new RSACryptoServiceProvider();
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
1573writer.WriteString(((RSA)claim.Resource).ToXmlString(false));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (15)
127RSA rsa = this.PrivateKey as RSA; 158RSA rsa = this.PublicKey as RSA; 207if ((this.PrivateKey as RSA) != null) 209return (this.PrivateKey as RSA); 233if ((this.PublicKey as RSA) != null) 235return (this.PublicKey as RSA); 330RSA rsa = (this.PublicKey as RSA); 396RSA rsa = (this.PrivateKey as RSA); 403RSA rsaSha256 = (privateKey as RSA); 505return (this.PublicKey is RSA);
System\IdentityModel\Tokens\XmlDsigSep2000.cs (1)
189RSA rsa = new RSACryptoServiceProvider();
System\IdentityModel\X509Util.cs (5)
23internal static RSA EnsureAndGetPrivateRSAKey(X509Certificate2 certificate) 35RSA rsa; 40rsa = certificate.PrivateKey as RSA; 231RSA rsa; 234rsa = certificate.PublicKey.Key as RSA;
System.IdentityModel.Selectors (18)
infocard\client\System\IdentityModel\Selectors\InfoCardRSAOAEPKeyExchangeDeformatter.cs (3)
12private RSA m_rsaKey; // RSA Key value to do decrypt operation 22m_rsaKey = (RSA)key; 44m_rsaKey = (RSA)key;
infocard\client\System\IdentityModel\Selectors\InfoCardRSAOAEPKeyExchangeFormatter.cs (3)
12private RSA m_rsaKey; 22m_rsaKey = (RSA)key; 32m_rsaKey = (RSA)key;
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1KeyExchangeDeformatter.cs (3)
12RSA m_rsaKey; 21m_rsaKey = (RSA)key; 43m_rsaKey = (RSA)key;
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1KeyExchangeFormatter.cs (3)
12RSA m_rsaKey; 23m_rsaKey = (RSA)key; 33m_rsaKey = (RSA)key;
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1SignatureDeformatter.cs (3)
12private RSA m_rsaKey; // RSA Key value to do decrypt operation 23m_rsaKey = (RSA)key; 33m_rsaKey = (RSA)key;
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1SignatureFormatter.cs (3)
12private RSA m_rsaKey; 24m_rsaKey = (RSA)key; 34m_rsaKey = (RSA)key;
System.Security (13)
system\security\cryptography\xml\encryptedxml.cs (8)
439return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (RSA) kek, fOAEP); 447using (RSA privateKey = certificate.GetRSAPrivateKey()) { 514if (!(keyObject is SymmetricAlgorithm) && !(keyObject is RSA)) 531using (RSA rsaPublicKey = certificate.GetRSAPublicKey()) { 577RSA rsa = encryptionKey as RSA; 846public static byte[] EncryptKey (byte[] keyData, RSA rsa, bool useOAEP) { 881public static byte[] DecryptKey (byte[] keyData, RSA rsa, bool useOAEP) {
system\security\cryptography\xml\keyinfo.cs (4)
304private RSA m_key; 311m_key = RSA.Create(); 314public RSAKeyValue (RSA key) { 322public RSA Key {
system\security\cryptography\xml\signedxml.cs (1)
368} else if (key is RSA) {
System.ServiceModel (13)
System\ServiceModel\Configuration\IdentityElement.cs (1)
109this.Rsa.Value = ((RSA)claim.Resource).ToXmlString(false);
System\ServiceModel\RsaEndpointIdentity.cs (6)
32RSA rsa = certificate.PublicKey.Key as RSA; 73RSA rsa = (RSA)this.IdentityClaim.Resource; 81static RSA ToRsa(string keyString) 86RSA rsa = new RSACryptoServiceProvider();
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
672public virtual GenericXmlSecurityToken GetIssuedToken(string expectedTokenType, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, RSA clientKey)
System\ServiceModel\Security\SctClaimSerializer.cs (1)
119writer.WriteString(((RSA)claim.Resource).ToXmlString(false));
System\ServiceModel\Security\SecurityUtils.cs (1)
1914using (RSA rsa = CngLightup.GetRSAPrivateKey(certificate))
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
1115public RSA Rsa
System\ServiceModel\Security\TrustDriver.cs (1)
149public abstract GenericXmlSecurityToken GetIssuedToken(RequestSecurityTokenResponse rstr, string expectedTokenType, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, RSA clientKey);
System\ServiceModel\Security\WSTrust.cs (1)
772ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, RSA clientKey)
System.Windows.Forms (14)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (5)
968RSA rsaPublicKey = CngLightup.GetRSAPublicKey(signer.Certificate); 1059RSA snKey = signer.StrongNameKey as RSA; 1193RSA rsa = strongNameKey as RSA;
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (9)
529RSA rsaProvider = keyValue.Key; 568RSA publicKey = CngLightup.GetRSAPublicKey(certificate); 1521rsaCsp.ImportParameters(((RSA)snKey).ExportParameters(false)); 1705using (RSA rsaPrivateKey = CngLightup.GetRSAPrivateKey(signer.Certificate)) 1893RSA snKey = signer.StrongNameKey as RSA; 1912if (!(signer.StrongNameKey is RSA)) 2058RSA rsa = strongNameKey as RSA;
WindowsBase (3)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (3)
903if (key is RSA) 1156if (key is RSA) 1157keyInfo.AddClause(new RSAKeyValue((RSA)key)); // RSA key parameters