9 references to OpenAlgorithmHandle
Microsoft.AspNetCore.Cryptography.Internal (5)
Cng\CachedAlgorithmHandles.cs (5)
50var algHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_AES_ALGORITHM); 57return BCryptAlgorithmHandle.OpenAlgorithmHandle(algorithm, hmac: false); 62return BCryptAlgorithmHandle.OpenAlgorithmHandle(algorithm, hmac: true); 67return BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_PBKDF2_ALGORITHM, implementation: Constants.MS_PRIMITIVE_PROVIDER); 72return BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_SP800108_CTR_HMAC_ALGORITHM, implementation: Constants.MS_PRIMITIVE_PROVIDER);
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (2)
89algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.HashAlgorithm, configuration.HashAlgorithmProvider, hmac: true); 126algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.EncryptionAlgorithm, configuration.EncryptionAlgorithmProvider);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
92algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.EncryptionAlgorithm, configuration.EncryptionAlgorithmProvider);
Microsoft.AspNetCore.DataProtection.Tests (1)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (1)
41hmacAlgorithmHandle: BCryptAlgorithmHandle.OpenAlgorithmHandle(hashAlgorithm, hmac: true));