1Tspi_Hash_SetHashValue(3) Library Functions Manual Tspi_Hash_SetHashValue(3)
2
3
4
5 TCG Software Stack Developer's Reference
6
8 Tspi_Hash_SetHashValue - Sets the hash value of a hash object for non-
9 SHA1 hash objects.
10
12 #include <tss/platform.h>
13 #include <tss/tcpa_defines.h>
14 #include <tss/tcpa_typedef.h>
15 #include <tss/tcpa_struct.h>
16 #include <tss/tss_typedef.h>
17 #include <tss/tss_structs.h>
18 #include <tss/tspi.h>
19
20 TSS_RESULT Tspi_Hash_SetHashValue(TSS_HHASH hHash, UINT32 ulHashValueLength, BYTE* rgbHashValue);
21
22
23
25 Tspi_Hash_SetHashValue sets the hash value of a hash object. If the ob‐
26 ject was created with the flag TSS_HASH_OTHER, then the hash identifier
27 has to be set by calling Tspi_SetAttribData to perform the sign opera‐
28 tion.
29
30
32 hHash
33 The handle to the hash object instance whose hash value should be
34 signed.
35
36 ulHashValueLength
37 Indicates the length of the hash value data provided at the parameter
38 rgbHashValue.
39
40 rgbHashValue
41 A pointer to the hash value data.
42
43
45 Tspi_Hash_SetHashValue returns TSS_SUCCESS on success, otherwise one of
46 the following values is returned:
47
48 TSS_E_INVALID_HANDLE
49 hHash is not a valid handle.
50
51
52 TSS_E_INTERNAL_ERROR
53 An internal SW error has been detected.
54
55
56 TSS_E_BAD_PARAMETER
57 One or more parameters is bad.
58
59
60 TSS_E_HASH_INVALID_LENGTH
61 Hash length is inconsistent with hash algorithm.
62
63
64 TSS_E_HASH_NO_DATA
65 Hash object has no internal hash value.
66
67
68
70 Tspi_Hash_SetHashValue conforms to the Trusted Computing Group Software
71 Specification version 1.1 Golden
72
73
75 Tspi_Hash_UpdateHashValue(3), Tspi_Hash_Sign(3), Tspi_Hash_GetHashVal‐
76 ue(3).
77
78
79
80
81TSS 1.1 2004-05-25 Tspi_Hash_SetHashValue(3)