Connectivity Software User's Guide and Reference
CryptSignMessage Method



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

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

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

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

Syntax
'Declaration
 
Public Shared Function CryptSignMessage( _
   ByRef pSignPara As Crypto.CRYPT_SIGN_MESSAGE_PARA, _
   ByVal fDetachedSignature As Boolean, _
   ByVal cToBeSigned As Integer, _
   ByVal rgpbToBeSigned() As IntPtr, _
   ByVal rgcbToBeSigned() As Integer, _
   ByVal pbSignedBlob() As Byte, _
   ByRef pcbSignedBlob As Integer _
) As Boolean
'Usage
 
Dim pSignPara As Crypto.CRYPT_SIGN_MESSAGE_PARA
Dim fDetachedSignature As Boolean
Dim cToBeSigned As Integer
Dim rgpbToBeSigned() As IntPtr
Dim rgcbToBeSigned() As Integer
Dim pbSignedBlob() As Byte
Dim pcbSignedBlob As Integer
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptSignMessage(pSignPara, fDetachedSignature, cToBeSigned, rgpbToBeSigned, rgcbToBeSigned, pbSignedBlob, pcbSignedBlob)

Parameters

pSignPara
fDetachedSignature
cToBeSigned
rgpbToBeSigned

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

rgcbToBeSigned

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

pbSignedBlob

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

pcbSignedBlob
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