6 types derived from SymmetricAlgorithm
mscorlib (5)
system\security\cryptography\aes.cs (1)
19
public abstract class Aes :
SymmetricAlgorithm
{
system\security\cryptography\des.cs (1)
18
public abstract class DES :
SymmetricAlgorithm
system\security\cryptography\rc2.cs (1)
15
public abstract class RC2 :
SymmetricAlgorithm
system\security\cryptography\rijndael.cs (1)
17
public abstract class Rijndael :
SymmetricAlgorithm
system\security\cryptography\tripledes.cs (1)
16
public abstract class TripleDES :
SymmetricAlgorithm
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (1)
36
internal class InfoCardSymmetricAlgorithm :
SymmetricAlgorithm
, IDisposable
98 references to SymmetricAlgorithm
mscorlib (3)
system\security\cryptography\symmetricalgorithm.cs (3)
217
static public
SymmetricAlgorithm
Create() {
223
static public
SymmetricAlgorithm
Create(String algName) {
224
return (
SymmetricAlgorithm
) CryptoConfig.CreateFromName(algName);
System.Configuration (4)
System\Configuration\FipsAwareEncryptedXml.cs (1)
24
public override
SymmetricAlgorithm
GetDecryptionKey(EncryptedData encryptedData, string symmetricAlgorithmUri) {
System\Configuration\RSAProtectedConfigurationProvider.cs (3)
62
using (
SymmetricAlgorithm
symAlg = GetSymAlgorithmProvider()) {
236
private
SymmetricAlgorithm
GetSymAlgorithmProvider() {
237
SymmetricAlgorithm
symAlg;
System.Core (1)
System\Security\Cryptography\AesManaged.cs (1)
19
private
SymmetricAlgorithm
m_impl;
System.IdentityModel (31)
System\IdentityModel\CryptoHelper.cs (18)
406
internal static
SymmetricAlgorithm
NewDefaultEncryption()
455
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
486
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
595
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
654
internal static
SymmetricAlgorithm
GetSymmetricAlgorithm(byte[] key, string algorithm)
656
SymmetricAlgorithm
symmetricAlgorithm;
662
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
909
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
960
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
1012
SymmetricAlgorithm
symmetricAlgorithm;
1016
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
1050
SymmetricAlgorithm
symmetricAlgorithm;
1054
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
System\IdentityModel\EncryptedDataElement.cs (4)
43
public byte[] Decrypt(
SymmetricAlgorithm
algorithm )
60
public void Encrypt(
SymmetricAlgorithm
algorithm, byte[] buffer, int offset, int length )
68
static byte[] ExtractIVAndDecrypt(
SymmetricAlgorithm
algorithm, byte[] cipherText, int offset, int count )
104
static void GenerateIVAndEncrypt(
SymmetricAlgorithm
algorithm, byte[] plainText, int offset, int length, out byte[] iv, out byte[] cipherText )
System\IdentityModel\RsaEncryptionCookieTransform.cs (2)
223
using (
SymmetricAlgorithm
symmetricAlgorithm = CryptoHelper.NewDefaultEncryption())
289
using (
SymmetricAlgorithm
encryptionAlgorithm = CryptoHelper.NewDefaultEncryption())
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (2)
202
using (
SymmetricAlgorithm
decrypter = symmetricKey.GetSymmetricAlgorithm(encryptedData.Algorithm))
349
using (
SymmetricAlgorithm
symmetricAlgorithm = encryptingKey.GetSymmetricAlgorithm(encryptingCredentials.Algorithm))
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
823
SymmetricAlgorithm
decryptor = symmetricKey.GetSymmetricAlgorithm(encryptedData.Algorithm);
2937
SymmetricAlgorithm
symmetricAlgorithm = encryptingKey.GetSymmetricAlgorithm(data.EncryptingCredentials.Algorithm);
4550
SymmetricAlgorithm
symmetricAlgorithm = encryptingKey.GetSymmetricAlgorithm(encryptingCredentials.Algorithm);
System\IdentityModel\Tokens\SymmetricKey.cs (1)
84
public override
SymmetricAlgorithm
GetSymmetricAlgorithm(string algorithm)
System\IdentityModel\Tokens\SymmetricSecurityKey.cs (1)
16
public abstract
SymmetricAlgorithm
GetSymmetricAlgorithm(string algorithm);
System.IdentityModel.Selectors (2)
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (2)
253
public override
SymmetricAlgorithm
GetSymmetricAlgorithm(string algorithmUri)
255
SymmetricAlgorithm
algorithm;
System.Security (19)
system\security\cryptography\xml\encryptedxml.cs (18)
335
public virtual
SymmetricAlgorithm
GetDecryptionKey (EncryptedData encryptedData, string symmetricAlgorithmUri) {
352
if ((
SymmetricAlgorithm
) m_keyNameMapping[keyName] != null)
353
return (
SymmetricAlgorithm
) m_keyNameMapping[keyName];
398
SymmetricAlgorithm
symAlg = Utils.CreateFromName<
SymmetricAlgorithm
>(symmetricAlgorithmUri);
434
if (kek is
SymmetricAlgorithm
)
435
return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (
SymmetricAlgorithm
) kek);
487
SymmetricAlgorithm
symAlg = Utils.CreateFromName<
SymmetricAlgorithm
>(encryptedKey.EncryptionMethod.KeyAlgorithm);
514
if (!(keyObject is
SymmetricAlgorithm
) && !(keyObject is RSA))
576
SymmetricAlgorithm
symKey = encryptionKey as
SymmetricAlgorithm
;
640
SymmetricAlgorithm
symAlg = GetDecryptionKey(ed, null);
650
public byte[] EncryptData (byte[] plaintext,
SymmetricAlgorithm
symmetricAlgorithm) {
686
public byte[] EncryptData (XmlElement inputElement,
SymmetricAlgorithm
symmetricAlgorithm, bool content) {
697
public byte[] DecryptData (EncryptedData encryptedData,
SymmetricAlgorithm
symmetricAlgorithm) {
826
public static byte[] EncryptKey (byte[] keyData,
SymmetricAlgorithm
symmetricAlgorithm) {
862
public static byte[] DecryptKey (byte[] keyData,
SymmetricAlgorithm
symmetricAlgorithm) {
system\security\cryptography\xml\transform.cs (1)
1267
SymmetricAlgorithm
symAlg = this.EncryptedXml.GetDecryptionKey(ed, null);
System.ServiceModel (25)
System\ServiceModel\Security\CryptoHelper.cs (7)
134
internal static byte[] ExtractIVAndDecrypt(
SymmetricAlgorithm
algorithm, byte[] cipherText, int offset, int count)
188
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
229
internal static byte[] GenerateIVAndEncrypt(
SymmetricAlgorithm
algorithm, byte[] plainText, int offset, int count)
240
internal static void GenerateIVAndEncrypt(
SymmetricAlgorithm
algorithm, ArraySegment<byte> plainText, out byte[] iv, out byte[] cipherText)
291
SymmetricAlgorithm
symmetricAlgorithm = algorithmObject as
SymmetricAlgorithm
;
System\ServiceModel\Security\EncryptedData.cs (3)
16
SymmetricAlgorithm
algorithm;
68
public void SetUpDecryption(
SymmetricAlgorithm
algorithm)
82
public void SetUpEncryption(
SymmetricAlgorithm
algorithm, ArraySegment<byte> buffer)
System\ServiceModel\Security\EncryptedHeaderXml.cs (2)
161
public void SetUpDecryption(
SymmetricAlgorithm
algorithm)
166
public void SetUpEncryption(
SymmetricAlgorithm
algorithm, MemoryStream source)
System\ServiceModel\Security\SecurityAppliedMessage.cs (4)
251
public void WriteBodyToEncrypt(EncryptedData encryptedData,
SymmetricAlgorithm
algorithm)
264
public void WriteBodyToEncryptThenSign(Stream canonicalStream, EncryptedData encryptedData,
SymmetricAlgorithm
algorithm)
316
public void WriteBodyToSignThenEncrypt(Stream canonicalStream, EncryptedData encryptedData,
SymmetricAlgorithm
algorithm)
341
EncryptedData encryptedData,
SymmetricAlgorithm
algorithm, XmlDictionaryWriter writer)
System\ServiceModel\Security\SecurityUtils.cs (1)
599
internal static
SymmetricAlgorithm
GetSymmetricAlgorithm(string algorithm, SecurityToken token)
System\ServiceModel\Security\WSSecurityOneDotOneReceiveSecurityHeader.cs (1)
53
using (
SymmetricAlgorithm
algorithm = CreateDecryptionAlgorithm(token, headerXml.EncryptionMethod, this.AlgorithmSuite))
System\ServiceModel\Security\WSSecurityOneDotOneSendSecurityHeader.cs (1)
48
protected override EncryptedHeader EncryptHeader(MessageHeader plainTextHeader,
SymmetricAlgorithm
algorithm,
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (4)
43
protected static
SymmetricAlgorithm
CreateDecryptionAlgorithm(SecurityToken token, string encryptionMethod, SecurityAlgorithmSuite suite)
58
SymmetricAlgorithm
algorithm = symmetricSecurityKey.GetSymmetricAlgorithm(encryptionMethod);
83
using (
SymmetricAlgorithm
algorithm = CreateDecryptionAlgorithm(token, bodyXml.EncryptionMethod, this.AlgorithmSuite))
116
using (
SymmetricAlgorithm
algorithm = CreateDecryptionAlgorithm(encryptionToken, encryptedData.EncryptionMethod, this.AlgorithmSuite))
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (2)
36
SymmetricAlgorithm
encryptingSymmetricAlgorithm;
595
protected virtual EncryptedHeader EncryptHeader(MessageHeader plainTextHeader,
SymmetricAlgorithm
algorithm,
System.Web (13)
Configuration\MachineKeySection.cs (6)
73
private static
SymmetricAlgorithm
s_oSymAlgoDecryption;
74
private static
SymmetricAlgorithm
s_oSymAlgoValidation;
93
private static
SymmetricAlgorithm
s_oSymAlgoLegacy;
934
private void SetKeyOnSymAlgorithm(
SymmetricAlgorithm
symAlgo, byte[] dKey)
954
SymmetricAlgorithm
algo = (legacyMode ? s_oSymAlgoLegacy : (useValidationSymAlgo ? s_oSymAlgoValidation : s_oSymAlgoDecryption));
1185
s_oSymAlgoDecryption =
SymmetricAlgorithm
.Create(Decryption.Substring(ALGO_PREFIX.Length));
Security\Cryptography\ICryptoAlgorithmFactory.cs (1)
16
SymmetricAlgorithm
GetEncryptionAlgorithm();
Security\Cryptography\MachineKeyCryptoAlgorithmFactory.cs (4)
16
private Func<
SymmetricAlgorithm
> _encryptionAlgorithmFactory;
24
public
SymmetricAlgorithm
GetEncryptionAlgorithm() {
31
private Func<
SymmetricAlgorithm
> GetEncryptionAlgorithmFactory() {
32
return GetGenericAlgorithmFactory<
SymmetricAlgorithm
>(
Security\Cryptography\NetFXCryptoService.cs (2)
54
using (
SymmetricAlgorithm
encryptionAlgorithm = _cryptoAlgorithmFactory.GetEncryptionAlgorithm()) {
125
using (
SymmetricAlgorithm
decryptionAlgorithm = _cryptoAlgorithmFactory.GetEncryptionAlgorithm()) {