Connectivity Software User's Guide and Reference
CryptCreateHash Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class : CryptCreateHash Method
Syntax
'Declaration
 
Public Shared Function CryptCreateHash( _
   ByVal hProv As IntPtr, _
   ByVal Algid As Integer, _
   ByVal hKey As IntPtr, _
   ByVal dwFlags As Integer, _
   ByRef phHash As IntPtr _
) As Boolean
'Usage
 
Dim hProv As IntPtr
Dim Algid As Integer
Dim hKey As IntPtr
Dim dwFlags As Integer
Dim phHash As IntPtr
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptCreateHash(hProv, Algid, hKey, dwFlags, phHash)
public static bool CryptCreateHash( 
   IntPtr hProv,
   int Algid,
   IntPtr hKey,
   int dwFlags,
   ref IntPtr phHash
)
public:
static bool CryptCreateHash( 
   IntPtr hProv,
   int Algid,
   IntPtr hKey,
   int dwFlags,
   IntPtr% phHash
) 

Parameters

hProv
Algid
hKey
dwFlags
phHash
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also