10 instantiations of CachedAlgorithmInfo
Microsoft.AspNetCore.Cryptography.Internal (10)
Cng\CachedAlgorithmHandles.cs (10)
15
private static CachedAlgorithmInfo _aesCbc = new
CachedAlgorithmInfo
(() => GetAesAlgorithm(chainingMode: Constants.BCRYPT_CHAIN_MODE_CBC));
16
private static CachedAlgorithmInfo _aesGcm = new
CachedAlgorithmInfo
(() => GetAesAlgorithm(chainingMode: Constants.BCRYPT_CHAIN_MODE_GCM));
17
private static CachedAlgorithmInfo _hmacSha1 = new
CachedAlgorithmInfo
(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA1_ALGORITHM));
18
private static CachedAlgorithmInfo _hmacSha256 = new
CachedAlgorithmInfo
(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA256_ALGORITHM));
19
private static CachedAlgorithmInfo _hmacSha512 = new
CachedAlgorithmInfo
(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA512_ALGORITHM));
20
private static CachedAlgorithmInfo _pbkdf2 = new
CachedAlgorithmInfo
(GetPbkdf2Algorithm);
21
private static CachedAlgorithmInfo _sha1 = new
CachedAlgorithmInfo
(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA1_ALGORITHM));
22
private static CachedAlgorithmInfo _sha256 = new
CachedAlgorithmInfo
(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA256_ALGORITHM));
23
private static CachedAlgorithmInfo _sha512 = new
CachedAlgorithmInfo
(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA512_ALGORITHM));
24
private static CachedAlgorithmInfo _sp800_108_ctr_hmac = new
CachedAlgorithmInfo
(GetSP800_108_CTR_HMACAlgorithm);
21 references to CachedAlgorithmInfo
Microsoft.AspNetCore.Cryptography.Internal (21)
Cng\CachedAlgorithmHandles.cs (21)
15
private static
CachedAlgorithmInfo
_aesCbc = new CachedAlgorithmInfo(() => GetAesAlgorithm(chainingMode: Constants.BCRYPT_CHAIN_MODE_CBC));
16
private static
CachedAlgorithmInfo
_aesGcm = new CachedAlgorithmInfo(() => GetAesAlgorithm(chainingMode: Constants.BCRYPT_CHAIN_MODE_GCM));
17
private static
CachedAlgorithmInfo
_hmacSha1 = new CachedAlgorithmInfo(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA1_ALGORITHM));
18
private static
CachedAlgorithmInfo
_hmacSha256 = new CachedAlgorithmInfo(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA256_ALGORITHM));
19
private static
CachedAlgorithmInfo
_hmacSha512 = new CachedAlgorithmInfo(() => GetHmacAlgorithm(algorithm: Constants.BCRYPT_SHA512_ALGORITHM));
20
private static
CachedAlgorithmInfo
_pbkdf2 = new CachedAlgorithmInfo(GetPbkdf2Algorithm);
21
private static
CachedAlgorithmInfo
_sha1 = new CachedAlgorithmInfo(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA1_ALGORITHM));
22
private static
CachedAlgorithmInfo
_sha256 = new CachedAlgorithmInfo(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA256_ALGORITHM));
23
private static
CachedAlgorithmInfo
_sha512 = new CachedAlgorithmInfo(() => GetHashAlgorithm(algorithm: Constants.BCRYPT_SHA512_ALGORITHM));
24
private static
CachedAlgorithmInfo
_sp800_108_ctr_hmac = new CachedAlgorithmInfo(GetSP800_108_CTR_HMACAlgorithm);
26
public static BCryptAlgorithmHandle AES_CBC =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _aesCbc);
28
public static BCryptAlgorithmHandle AES_GCM =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _aesGcm);
30
public static BCryptAlgorithmHandle HMAC_SHA1 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _hmacSha1);
32
public static BCryptAlgorithmHandle HMAC_SHA256 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _hmacSha256);
34
public static BCryptAlgorithmHandle HMAC_SHA512 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _hmacSha512);
37
public static BCryptAlgorithmHandle PBKDF2 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _pbkdf2);
39
public static BCryptAlgorithmHandle SHA1 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _sha1);
41
public static BCryptAlgorithmHandle SHA256 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _sha256);
43
public static BCryptAlgorithmHandle SHA512 =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _sha512);
46
public static BCryptAlgorithmHandle SP800_108_CTR_HMAC =>
CachedAlgorithmInfo
.GetAlgorithmHandle(ref _sp800_108_ctr_hmac);
87
public static BCryptAlgorithmHandle GetAlgorithmHandle(ref
CachedAlgorithmInfo
cachedAlgorithmInfo)