NAME

CryptSignHashW  (ADVAPI32.@)

SYNOPSIS

 BOOL CryptSignHashW
 (
  HCRYPTHASH hHash,
  DWORD      dwKeySpec,
  LPCWSTR    sDescription,
  DWORD      dwFlags,
  BYTE*      pbSignature,
  DWORD*     pdwSigLen
 )

DESCRIPTION

Signs data.

PARAMS

hHash [In] Handle of the hash object to be signed.
dwKeySpec [In] Private key to use.
sDescription [In] Should be NULL.
dwFlags [In] CRYPT_NOHASHOID/X931_FORMAT.
pbSignature [Out] Buffer of the signature data.
pdwSigLen [In/Out] Size of the pbSignature buffer.

RETURNS

Success: TRUE

Failure: FALSE.

NOTES

Because of security flaws sDescription should not be used and should thus be NULL. It is supported only for compatibility with Microsoft's Cryptographic Providers.

IMPLEMENTATION

Declared in "wincrypt.h". https://source.winehq.org/source/include/wincrypt.h

Implemented in "dlls/advapi32/crypt.c". https://source.winehq.org/source/dlls/advapi32/crypt.c

Debug channel "crypt".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.