1Tspi_Hash_UpdateHashValue(3)Library Functions ManualTspi_Hash_UpdateHashValue(3)
2
3
4
5                   TCG Software Stack Developer's Reference
6

NAME

8       Tspi_Hash_UpdateHashValue - update the hash value of a hash object
9

SYNOPSIS

11       #include <tss/platform.h>
12       #include <tss/tcpa_defines.h>
13       #include <tss/tcpa_typedef.h>
14       #include <tss/tcpa_struct.h>
15       #include <tss/tss_typedef.h>
16       #include <tss/tss_structs.h>
17       #include <tss/tspi.h>
18
19       TSS_RESULT Tspi_Hash_UpdateHashValue(TSS_HHASH hHash, UINT32 ulDataLength, BYTE* rgbData);
20
21
22

DESCRIPTION

24       Tspi_Hash_UpdateHashValue  updates the hash value of a hash object with
25       new information. If the object was created with the flag  TSS_HASH_OTH‐
26       ER, then this method will return an error. The object can't be modified
27       after Tspi_Hash_SetHashValue,  Tspi_Hash_GetHashValue,  Tspi_Hash_Sign,
28       or Tspi_Hash_VerifySignature have been called on it.
29
30

PARAMETERS

32   hHash
33       The  handle  to  the  hash  object  instance whose hash value should be
34       signed.
35
36   ulDataLength
37       Indicates the length of the data provided at the parameter rgbData.
38
39   rgbData
40       A pointer to the data.
41
42

RETURN CODES

44       Tspi_Hash_UpdateHashValue returns TSS_SUCCESS on success, otherwise one
45       of the following values is returned:
46
47       TSS_E_INVALID_HANDLE
48              hHash is not a valid handle.
49
50
51       TSS_E_INTERNAL_ERROR
52              An internal SW error has been detected.
53
54
55       TSS_E_BAD_PARAMETER
56              One or more parameters is bad.
57
58
59       TSS_E_HASH_INVALID_LENGTH
60              Hash length is inconsistent with hash algorithm.
61
62
63       TSS_E_HASH_NO_DATA
64              Hash object has no internal hash value.
65
66
67

CONFORMING TO

69       Tspi_Hash_UpdateHashValue conforms to the Trusted Computing Group Soft‐
70       ware Specification version 1.1 Golden
71
72

SEE ALSO

74       Tspi_Hash_GetHashValue(3),   Tspi_Hash_Sign(3),   Tspi_Hash_SetHashVal‐
75       ue(3), Tspi_Hash_VerifySignature(3).
76
77
78
79
80TSS 1.1                           2004-05-25      Tspi_Hash_UpdateHashValue(3)
Impressum