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