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