Connectivity Software User's Guide and Reference
CryptSignHash Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class : CryptSignHash Method

The value of this parameter can be null (Nothing in Visual Basic).

The value of this parameter can be null (Nothing in Visual Basic).

Syntax
'Declaration
 
Public Shared Function CryptSignHash( _
   ByVal hHash As IntPtr, _
   ByVal dwKeySpec As Integer, _
   ByVal sDescription As String, _
   ByVal dwFlags As Integer, _
   ByVal pbSignature() As Byte, _
   ByRef pdwSigLen As Integer _
) As Boolean
'Usage
 
Dim hHash As IntPtr
Dim dwKeySpec As Integer
Dim sDescription As String
Dim dwFlags As Integer
Dim pbSignature() As Byte
Dim pdwSigLen As Integer
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptSignHash(hHash, dwKeySpec, sDescription, dwFlags, pbSignature, pdwSigLen)
public static bool CryptSignHash( 
   IntPtr hHash,
   int dwKeySpec,
   string sDescription,
   int dwFlags,
   byte[] pbSignature,
   ref int pdwSigLen
)

Parameters

hHash
dwKeySpec
sDescription

The value of this parameter can be null (Nothing in Visual Basic).

dwFlags
pbSignature

The value of this parameter can be null (Nothing in Visual Basic).

pdwSigLen
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