1
.\" Copyright (C) 2004 International Business Machines Corporation
2
.\" Written by Megan Schneider based on the Trusted Computing Group Software Stack Specification Version 1.1 Golden
12
.de Sp \" Vertical space (when we can't use .PP)
18
.ie \\n(.$>=3 .ne \\$3
22
.TH "Tspi_Hash_UpdateHashValue" 3 "2004-05-25" "TSS 1.1"
24
TCG Software Stack Developer's Reference
26
Tspi_Hash_UpdateHashValue \- update the hash value of a hash object
31
.B #include <tss/platform.h>
32
.B #include <tss/tcpa_defines.h>
33
.B #include <tss/tcpa_typedef.h>
34
.B #include <tss/tcpa_struct.h>
35
.B #include <tss/tss_typedef.h>
36
.B #include <tss/tss_structs.h>
37
.B #include <tss/tspi.h>
39
.BI "TSS_RESULT Tspi_Hash_UpdateHashValue(TSS_HHASH " hHash ", UINT32 " ulDataLength ", BYTE* " rgbData ");"
47
\fBTspi_Hash_UpdateHashValue\fR updates the hash value
48
of a hash object with new information. If the object was created with
49
the flag TSS_HASH_OTHER, then this method will return an error. \fBThe
50
object can't be modified after Tspi_Hash_SetHashValue,
51
Tspi_Hash_GetHashValue, Tspi_Hash_Sign, or Tspi_Hash_VerifySignature
52
have been called on it.\fR
57
The handle to the hash object instance whose hash value should be signed.
59
Indicates the length of the data provided at the parameter \fIrgbData\fR.
61
A pointer to the data.
65
\fBTspi_Hash_UpdateHashValue\fR returns TSS_SUCCESS on success,
66
otherwise one of the following values is returned:
68
.SM TSS_E_INVALID_HANDLE
69
\fIhHash\fR is not a valid handle.
72
.SM TSS_E_INTERNAL_ERROR
73
An internal SW error has been detected.
76
.SM TSS_E_BAD_PARAMETER
77
One or more parameters is bad.
80
.SM TSS_E_HASH_INVALID_LENGTH
81
Hash length is inconsistent with hash algorithm.
84
.SM TSS_E_HASH_NO_DATA
85
Hash object has no internal hash value.
91
\fBTspi_Hash_UpdateHashValue\fR conforms to the Trusted Computing Group
92
Software Specification version 1.1 Golden
97
\fBTspi_Hash_GetHashValue\fR(3), \fBTspi_Hash_Sign\fR(3),
98
\fBTspi_Hash_SetHashValue\fR(3), \fBTspi_Hash_VerifySignature\fR(3).