CryptSignHash (advapi32)
Last changed: flyhippo@flyhippo.org-194.186.67.226

.
Summary
The CryptSignHash function signs data. Because all signature algorithms are asymmetric and thus slow, the CryptoAPI does not allow data to be signed directly. Instead, data is first hashed and CryptSignHash is used to sign the hash.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
public static extern bool CryptSignHash(
    IntPtr hHash,
    uint keySpec,
    IntPtr description,
    uint flags,
    [Out] byte[] signature,
    [In, Out] ref uint signatureLen);

VB Signature:

Declare Function CryptSignHash Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation