8 types derived from SymmetricAlgorithm
Microsoft.AspNetCore.DataProtection.Tests (3)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (2)
131public class CustomAlgorithm : SymmetricAlgorithm 139public class CustomAlgorithmNoConstructor : SymmetricAlgorithm
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (1)
71private sealed class MySymmetricAlgorithm : SymmetricAlgorithm
System.Security.Cryptography (5)
System\Security\Cryptography\Aes.cs (1)
10public abstract class Aes : SymmetricAlgorithm
System\Security\Cryptography\DES.cs (1)
13public abstract class DES : SymmetricAlgorithm
System\Security\Cryptography\RC2.cs (1)
11public abstract class RC2 : SymmetricAlgorithm
System\Security\Cryptography\Rijndael.cs (1)
13public abstract class Rijndael : SymmetricAlgorithm
System\Security\Cryptography\TripleDES.cs (1)
12public abstract class TripleDES : SymmetricAlgorithm
76 references to SymmetricAlgorithm
dotnet-svcutil-lib (6)
FrameworkFork\System.ServiceModel\System\IdentityModel\CryptoHelper.cs (1)
65internal static SymmetricAlgorithm GetSymmetricAlgorithm(byte[] key, string algorithm)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
88public override SymmetricAlgorithm GetSymmetricAlgorithm(string algorithm)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricSecurityKey.cs (1)
22public abstract SymmetricAlgorithm GetSymmetricAlgorithm(string algorithm);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\EncryptedData.cs (3)
16private SymmetricAlgorithm _algorithm; 64public void SetUpDecryption(SymmetricAlgorithm algorithm) 78public void SetUpEncryption(SymmetricAlgorithm algorithm, ArraySegment<byte> buffer)
Microsoft.AspNetCore.DataProtection (14)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (2)
13/// managed <see cref="System.Security.Cryptography.SymmetricAlgorithm"/> and 20/// The type must subclass <see cref="SymmetricAlgorithm"/>.
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (3)
82private Func<SymmetricAlgorithm> GetSymmetricBlockCipherAlgorithmFactory(ManagedAuthenticatedEncryptorConfiguration configuration) 89typeof(SymmetricAlgorithm).AssertIsAssignableFrom(configuration.EncryptionAlgorithmType); 103return AlgorithmActivator.CreateFactory<SymmetricAlgorithm>(configuration.EncryptionAlgorithmType);
Managed\ManagedAuthenticatedEncryptor.cs (8)
34private readonly Func<SymmetricAlgorithm> _symmetricAlgorithmFactory; 41public ManagedAuthenticatedEncryptor(Secret keyDerivationKey, Func<SymmetricAlgorithm> symmetricAlgorithmFactory, int symmetricAlgorithmKeySizeInBytes, Func<KeyedHashAlgorithm> validationAlgorithmFactory, IManagedGenRandom? genRandom = null) 47using (var symmetricAlgorithm = symmetricAlgorithmFactory()) 111using (var symmetricAlg = CreateSymmetricAlgorithm()) 140private SymmetricAlgorithm CreateSymmetricAlgorithm() 142var retVal = _symmetricAlgorithmFactory(); 244using (var symmetricAlgorithm = CreateSymmetricAlgorithm()) 331using (var symmetricAlgorithm = CreateSymmetricAlgorithm())
Managed\SymmetricAlgorithmExtensions.cs (1)
11public static int GetBlockSizeInBytes(this SymmetricAlgorithm symmetricAlgorithm)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
931[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SymmetricAlgorithm))]
netstandard (1)
netstandard.cs (1)
1938[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SymmetricAlgorithm))]
System.Security.Cryptography (14)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
188out SymmetricAlgorithm cipher,
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (8)
89SymmetricAlgorithm? cipher = null; 233out SymmetricAlgorithm cipher, 312SymmetricAlgorithm cipher, 538SymmetricAlgorithm cipher = OpenCipher( 564private static SymmetricAlgorithm OpenCipher( 807SymmetricAlgorithm cipher, 859SymmetricAlgorithm cipher, 915SymmetricAlgorithm cipher,
System\Security\Cryptography\Helpers.cs (1)
323public static int GetPaddingSize(this SymmetricAlgorithm algorithm, CipherMode mode, int feedbackSizeInBits)
System\Security\Cryptography\SymmetricAlgorithm.cs (3)
19public static SymmetricAlgorithm Create() => 24public static SymmetricAlgorithm? Create(string algName) => 25CryptoConfigForwarder.CreateFromName<SymmetricAlgorithm>(algName);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
333out SymmetricAlgorithm cipher,
System.Security.Cryptography.Pkcs (19)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (6)
92private static SymmetricAlgorithm OpenAlgorithm(AlgorithmIdentifierAsn contentEncryptionAlgorithm) 94SymmetricAlgorithm alg = OpenAlgorithm(contentEncryptionAlgorithm.Algorithm); 138private static SymmetricAlgorithm OpenAlgorithm(AlgorithmIdentifier algorithmIdentifier) 140SymmetricAlgorithm alg = OpenAlgorithm(algorithmIdentifier.Oid.Value!); 157private static SymmetricAlgorithm OpenAlgorithm(string algorithmIdentifier) 161SymmetricAlgorithm alg;
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
160using (SymmetricAlgorithm alg = OpenAlgorithm(contentEncryptionAlgorithm))
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
155using (SymmetricAlgorithm alg = OpenAlgorithm(contentEncryptionAlgorithm)) 199static byte[] EncryptOneShot(SymmetricAlgorithm alg, ReadOnlySpan<byte> plaintext)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
188out SymmetricAlgorithm cipher,
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (8)
89SymmetricAlgorithm? cipher = null; 233out SymmetricAlgorithm cipher, 312SymmetricAlgorithm cipher, 538SymmetricAlgorithm cipher = OpenCipher( 564private static SymmetricAlgorithm OpenCipher( 807SymmetricAlgorithm cipher, 859SymmetricAlgorithm cipher, 915SymmetricAlgorithm cipher,
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
381out SymmetricAlgorithm cipher,
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
23[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SymmetricAlgorithm))]
System.Security.Cryptography.Xml (19)
System\Security\Cryptography\Xml\EncryptedXml.cs (18)
310public virtual SymmetricAlgorithm? GetDecryptionKey(EncryptedData encryptedData, string? symmetricAlgorithmUri) 332if ((SymmetricAlgorithm?)_keyNameMapping[keyName] != null) 333return (SymmetricAlgorithm)_keyNameMapping[keyName]!; 385SymmetricAlgorithm? symAlg = CryptoHelpers.CreateNonTransformFromName<SymmetricAlgorithm>(symmetricAlgorithmUri); 432if (kek is SymmetricAlgorithm) 433return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (SymmetricAlgorithm)kek); 497SymmetricAlgorithm? symAlg = CryptoHelpers.CreateNonTransformFromName<SymmetricAlgorithm>(encryptedKey.EncryptionMethod!.KeyAlgorithm); 532if (!(keyObject is SymmetricAlgorithm) && !(keyObject is RSA)) 611SymmetricAlgorithm symKey = (encryptionKey as SymmetricAlgorithm)!; 689SymmetricAlgorithm? symAlg = GetDecryptionKey(ed, null); 699public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) 746public byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) 762public byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) 917public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) 971public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm)
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
211SymmetricAlgorithm? symAlg = EncryptedXml.GetDecryptionKey(ed, null);
System.ServiceModel.Primitives.Tests (1)
IdentityModel\SymmetricSecurityKeyTest.cs (1)
71public override SymmetricAlgorithm GetSymmetricAlgorithm(string algorithm)