31 references to BCryptHashHandle
Microsoft.AspNetCore.Cryptography.Internal (21)
LibraryImports.g.cs (10)
246
internal static partial int BCryptCreateHash(global::Microsoft.AspNetCore.Cryptography.SafeHandles.BCryptAlgorithmHandle hAlgorithm, out global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
phHash, nint pbHashObject, uint cbHashObject, byte* pbSecret, uint cbSecret, uint dwFlags)
254
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
>.ManagedToUnmanagedOut __phHash_native__marshaller = new();
386
internal static partial int BCryptDuplicateHash(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
hHash, out global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
phNewHash, nint pbHashObject, uint cbHashObject, uint dwFlags)
394
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
>.ManagedToUnmanagedOut __phNewHash_native__marshaller = new();
395
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
>.ManagedToUnmanagedIn __hHash_native__marshaller = new();
475
internal static partial int BCryptFinishHash(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
hHash, byte* pbOutput, uint cbOutput, uint dwFlags)
480
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
>.ManagedToUnmanagedIn __hHash_native__marshaller = new();
608
internal static partial int BCryptHashData(global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
hHash, byte* pbInput, uint cbInput, uint dwFlags)
613
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.AspNetCore.Cryptography.SafeHandles.
BCryptHashHandle
>.ManagedToUnmanagedIn __hHash_native__marshaller = new();
SafeHandles\BCryptAlgorithmHandle.cs (4)
24
public
BCryptHashHandle
CreateHash()
29
private
BCryptHashHandle
CreateHashCore(byte* pbKey, uint cbKey)
31
BCryptHashHandle
retVal;
43
public
BCryptHashHandle
CreateHmac(byte* pbKey, uint cbKey)
SafeHandles\BCryptHashHandle.cs (2)
18
public
BCryptHashHandle
DuplicateHash()
20
BCryptHashHandle
duplicateHandle;
UnsafeNativeMethods.cs (5)
52
out
BCryptHashHandle
phHash,
130
BCryptHashHandle
hHash,
131
out
BCryptHashHandle
phNewHash,
163
BCryptHashHandle
hHash,
220
BCryptHashHandle
hHash,
Microsoft.AspNetCore.Cryptography.Internal.Tests (2)
Cng\CachedAlgorithmHandlesTests.cs (2)
143
var
hashHandle = algorithmHandle.CreateHash();
176
var
hashHandle = algorithmHandle.CreateHmac(pKey, (uint)_hmacKey.Length);
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
PBKDF2\Win8Pbkdf2Provider.cs (1)
141
using (
var
hashHandle = prfAlgorithmHandle.CreateHash())
Microsoft.AspNetCore.DataProtection (7)
Cng\CbcAuthenticatedEncryptor.cs (4)
126
using (
var
hashHandle = _hmacAlgorithmHandle.CreateHmac(pbHmacSubkey, _hmacAlgorithmSubkeyLengthInBytes))
184
using (
var
hashHandle = _hmacAlgorithmHandle.CreateHmac(pbHmacSubkey, _hmacAlgorithmSubkeyLengthInBytes))
368
using (
var
hashHandle = _hmacAlgorithmHandle.CreateHmac(pbHmacSubkey, _hmacAlgorithmSubkeyLengthInBytes))
415
private bool ValidateHash(
BCryptHashHandle
hashHandle, byte* pbInput, uint cbInput, byte* pbExpectedDigest)
SP800_108\Win7SP800_108_CTR_HMACSHA512Provider.cs (2)
13
private readonly
BCryptHashHandle
_hashHandle;
61
using (
var
hashHandle = _hashHandle.DuplicateHash())
SP800_108\Win8SP800_108_CTR_HMACSHA512Provider.cs (1)
90
using (
var
hashHandle = CachedAlgorithmHandles.SHA512.CreateHash())