28 references to Algorithm
System.Security.Cryptography (28)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (2)
353CngKey.EcdsaCurveNameToAlgorithm(name).Algorithm switch 378CngKey.EcdhCurveNameToAlgorithm(name).Algorithm switch
System\Security\Cryptography\CngAlgorithm.cs (1)
69return _algorithm.Equals(other.Algorithm);
System\Security\Cryptography\CngKey.Create.cs (1)
45ErrorCode errorCode = Interop.NCrypt.NCryptCreatePersistedKey(providerHandle, out keyHandle, algorithm.Algorithm, keyName, 0, creationParameters.KeyCreationOptions);
System\Security\Cryptography\CngKey.EC.cs (10)
16return IsECNamedCurve(Algorithm.Algorithm); 21return (algorithm == CngAlgorithm.ECDiffieHellman.Algorithm || 22algorithm == CngAlgorithm.ECDsa.Algorithm); 40string algorithm = Algorithm.Algorithm; 42if (algorithm == CngAlgorithm.ECDiffieHellmanP256.Algorithm || 43algorithm == CngAlgorithm.ECDsaP256.Algorithm) 49if (algorithm == CngAlgorithm.ECDiffieHellmanP384.Algorithm || 50algorithm == CngAlgorithm.ECDsaP384.Algorithm) 56if (algorithm == CngAlgorithm.ECDiffieHellmanP521.Algorithm || 57algorithm == CngAlgorithm.ECDsaP521.Algorithm)
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (4)
46if (algorithm != actualAlgorithm.Algorithm) 47throw new CryptographicException(SR.Format(SR.Cryptography_CngKeyWrongAlgorithm, actualAlgorithm.Algorithm, algorithm)); 60if (algorithm != actualAlgorithm.Algorithm) 65actualAlgorithm.Algorithm,
System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs (2)
64HashAlgorithm.Algorithm, 71HashAlgorithm.Algorithm,
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (1)
63if (CngKey.IsECNamedCurve(alg.Algorithm))
System\Security\Cryptography\ECDsaCng.cs (6)
197=> SignData(data, new HashAlgorithmName(HashAlgorithm.Algorithm)); 200SignData(data, offset, count, new HashAlgorithmName(HashAlgorithm.Algorithm)); 203=> SignData(data, new HashAlgorithmName(HashAlgorithm.Algorithm)); 210=> VerifyData(data, signature, new HashAlgorithmName(HashAlgorithm.Algorithm)); 213=> VerifyData(data, offset, count, signature, new HashAlgorithmName(HashAlgorithm.Algorithm)); 216=> VerifyData(data, signature, new HashAlgorithmName(HashAlgorithm.Algorithm));
System\Security\Cryptography\ECDsaCng.Key.cs (1)
52if (CngKey.IsECNamedCurve(alg.Algorithm))