16 references to CachedAlgorithmHandles
Microsoft.AspNetCore.Cryptography.KeyDerivation (7)
PBKDF2\Win7Pbkdf2Provider.cs (3)
89return CachedAlgorithmHandles.HMAC_SHA1; 91return CachedAlgorithmHandles.HMAC_SHA256; 93return CachedAlgorithmHandles.HMAC_SHA512;
PBKDF2\Win8Pbkdf2Provider.cs (4)
32using (BCryptKeyHandle keyHandle = PasswordToPbkdfKeyHandle(password, CachedAlgorithmHandles.PBKDF2, prf)) 116prfAlgorithmHandle = CachedAlgorithmHandles.SHA1; 119prfAlgorithmHandle = CachedAlgorithmHandles.SHA256; 122prfAlgorithmHandle = CachedAlgorithmHandles.SHA512;
Microsoft.AspNetCore.DataProtection (9)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (4)
81if (configuration.HashAlgorithm == Constants.BCRYPT_SHA1_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.HMAC_SHA1; } 82else if (configuration.HashAlgorithm == Constants.BCRYPT_SHA256_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.HMAC_SHA256; } 83else if (configuration.HashAlgorithm == Constants.BCRYPT_SHA512_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.HMAC_SHA512; } 120if (configuration.EncryptionAlgorithm == Constants.BCRYPT_AES_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.AES_CBC; }
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
86if (configuration.EncryptionAlgorithm == Constants.BCRYPT_AES_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.AES_GCM; }
SP800_108\Win7SP800_108_CTR_HMACSHA512Provider.cs (1)
17_hashHandle = CachedAlgorithmHandles.HMAC_SHA512.CreateHmac(pbKdk, cbKdk);
SP800_108\Win8SP800_108_CTR_HMACSHA512Provider.cs (3)
90using (var hashHandle = CachedAlgorithmHandles.SHA512.CreateHash()) 94return CachedAlgorithmHandles.SP800_108_CTR_HMAC.GenerateSymmetricKey(pbHashedKey, SHA512_DIGEST_SIZE_IN_BYTES); 104return CachedAlgorithmHandles.SP800_108_CTR_HMAC.GenerateSymmetricKey(pbKdk, cbKdk);