35 references to BCryptAlgorithmHandle
Microsoft.AspNetCore.Cryptography.Internal (35)
Cng\CachedAlgorithmHandles.cs (25)
26public static BCryptAlgorithmHandle AES_CBC => CachedAlgorithmInfo.GetAlgorithmHandle(ref _aesCbc); 28public static BCryptAlgorithmHandle AES_GCM => CachedAlgorithmInfo.GetAlgorithmHandle(ref _aesGcm); 30public static BCryptAlgorithmHandle HMAC_SHA1 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _hmacSha1); 32public static BCryptAlgorithmHandle HMAC_SHA256 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _hmacSha256); 34public static BCryptAlgorithmHandle HMAC_SHA512 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _hmacSha512); 37public static BCryptAlgorithmHandle PBKDF2 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _pbkdf2); 39public static BCryptAlgorithmHandle SHA1 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _sha1); 41public static BCryptAlgorithmHandle SHA256 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _sha256); 43public static BCryptAlgorithmHandle SHA512 => CachedAlgorithmInfo.GetAlgorithmHandle(ref _sha512); 46public static BCryptAlgorithmHandle SP800_108_CTR_HMAC => CachedAlgorithmInfo.GetAlgorithmHandle(ref _sp800_108_ctr_hmac); 48private static BCryptAlgorithmHandle GetAesAlgorithm(string chainingMode) 50var algHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_AES_ALGORITHM); 55private static BCryptAlgorithmHandle GetHashAlgorithm(string algorithm) 57return BCryptAlgorithmHandle.OpenAlgorithmHandle(algorithm, hmac: false); 60private static BCryptAlgorithmHandle GetHmacAlgorithm(string algorithm) 62return BCryptAlgorithmHandle.OpenAlgorithmHandle(algorithm, hmac: true); 65private static BCryptAlgorithmHandle GetPbkdf2Algorithm() 67return BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_PBKDF2_ALGORITHM, implementation: Constants.MS_PRIMITIVE_PROVIDER); 70private static BCryptAlgorithmHandle GetSP800_108_CTR_HMACAlgorithm() 72return BCryptAlgorithmHandle.OpenAlgorithmHandle(Constants.BCRYPT_SP800108_CTR_HMAC_ALGORITHM, implementation: Constants.MS_PRIMITIVE_PROVIDER); 78private WeakReference<BCryptAlgorithmHandle>? _algorithmHandle; 79private readonly Func<BCryptAlgorithmHandle> _factory; 81public CachedAlgorithmInfo(Func<BCryptAlgorithmHandle> factory) 87public static BCryptAlgorithmHandle GetAlgorithmHandle(ref CachedAlgorithmInfo cachedAlgorithmInfo)
SafeHandles\BCryptAlgorithmHandle.cs (2)
130public static BCryptAlgorithmHandle OpenAlgorithmHandle(string algorithmId, string? implementation = null, bool hmac = false) 138BCryptAlgorithmHandle algHandle;
SafeHandles\BCryptHashHandle.cs (2)
10private BCryptAlgorithmHandle? _algProviderHandle; 65internal void SetAlgorithmProviderHandle(BCryptAlgorithmHandle algProviderHandle)
SafeHandles\BCryptKeyHandle.cs (2)
8private BCryptAlgorithmHandle? _algProviderHandle; 26internal void SetAlgorithmProviderHandle(BCryptAlgorithmHandle algProviderHandle)
UnsafeNativeMethods.cs (4)
51BCryptAlgorithmHandle hAlgorithm, 86BCryptAlgorithmHandle hPrf, 176BCryptAlgorithmHandle hAlgorithm, 248out BCryptAlgorithmHandle phAlgorithm,