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