Tspi_Hash_Sign signs the hash data of an
object with a given signing key. The data must be set at the hash
instance associated with hHash by calling
Tspi_Hash_SetHashValue or Tspi_Hash_UpdateHash. The
Tspi_Hash_Sign method allocates a memory block for the
prgbSignature data. This memory must be released using
The handle to the hash object instance whose hash value should be signed.
Handle to the key object which should be used for the signature.
Receives the length of the signature data returned at the parameter
prgbSignature on successful completion.
Receives a pointer to the signature data on successful completion.
Tspi_Hash_Sign returns TSS_SUCCESS on success, otherwise one
of the following values is returned:
hKey is not a valid handle.
An internal SW error has been detected.
One or more parameters is bad.
Hash length is inconsistent with hash algorithm.
Hash object has no internal hash value.
The hash algorithm identifier is not set.
Tspi_Hash_Sign conforms to the Trusted Computing Group Software
Specification version 1.1 Golden