29 references to SafeBCryptAlgorithmHandle
System.Core (29)
System\Security\Cryptography\BCryptHashAlgorithm.cs (4)
33
public
SafeBCryptAlgorithmHandle
GetCachedAlgorithmHandle(string algorithm, string implementation) {
35
SafeBCryptAlgorithmHandle
algorithmHandle = null;
39
algorithmHandle = m_algorithmHandles[handleKey].Target as
SafeBCryptAlgorithmHandle
;
61
private
SafeBCryptAlgorithmHandle
m_algorithmHandle;
System\Security\Cryptography\BCryptNative.cs (25)
226
internal static extern ErrorCode BCryptCreateHash(
SafeBCryptAlgorithmHandle
hAlgorithm,
238
internal static extern ErrorCode BCryptGetProperty(
SafeBCryptAlgorithmHandle
hObject,
260
internal static extern ErrorCode BCryptGetAlgorithmProperty(
SafeBCryptAlgorithmHandle
hObject,
300
internal static extern ErrorCode BCryptOpenAlgorithmProvider([Out] out
SafeBCryptAlgorithmHandle
phAlgorithm,
323
SafeBCryptAlgorithmHandle
hAlgorithm,
361
SafeBCryptAlgorithmHandle
hObject,
372
private static readonly
SafeBCryptAlgorithmHandle
s_hAlgCbc = OpenAesAlgorithm(Interop.BCrypt.BCRYPT_CHAIN_MODE_CBC);
375
private static readonly
SafeBCryptAlgorithmHandle
s_hAlgEcb = OpenAesAlgorithm(Interop.BCrypt.BCRYPT_CHAIN_MODE_ECB);
377
internal static
SafeBCryptAlgorithmHandle
GetSharedHandle(CipherMode cipherMode)
392
private static
SafeBCryptAlgorithmHandle
OpenAesAlgorithm(string cipherMode)
395
SafeBCryptAlgorithmHandle
hAlg = OpenAlgorithm(BCRYPT_AES_ALGORITHM, null);
406
private static readonly
SafeBCryptAlgorithmHandle
s_hAlgCbc = OpenAesAlgorithm(Interop.BCrypt.BCRYPT_CHAIN_MODE_CBC);
409
private static readonly
SafeBCryptAlgorithmHandle
s_hAlgEcb = OpenAesAlgorithm(Interop.BCrypt.BCRYPT_CHAIN_MODE_ECB);
411
internal static
SafeBCryptAlgorithmHandle
GetSharedHandle(CipherMode cipherMode)
426
private static
SafeBCryptAlgorithmHandle
OpenAesAlgorithm(string cipherMode)
429
SafeBCryptAlgorithmHandle
hAlg = OpenAlgorithm(BCRYPT_3DES_ALGORITHM, null);
498
if (typeof(T) == typeof(
SafeBCryptAlgorithmHandle
)) {
499
getter = new BCryptPropertyGetter<
SafeBCryptAlgorithmHandle
>(UnsafeNativeMethods.BCryptGetAlgorithmProperty)
578
internal static
SafeBCryptAlgorithmHandle
OpenAlgorithm(string algorithm, string implementation) {
581
Contract.Ensures(Contract.Result<
SafeBCryptAlgorithmHandle
>() != null &&
582
!Contract.Result<
SafeBCryptAlgorithmHandle
>().IsInvalid &&
583
!Contract.Result<
SafeBCryptAlgorithmHandle
>().IsClosed);
585
SafeBCryptAlgorithmHandle
algorithmHandle = null;
634
internal static SafeBCryptKeyHandle BCryptImportKey(
SafeBCryptAlgorithmHandle
hAlg, byte[] key)
771
public static void SetCipherMode(
SafeBCryptAlgorithmHandle
hAlg, string cipherMode)