~ubuntu-branches/ubuntu/gutsy/trousers/gutsy

« back to all changes in this revision

Viewing changes to man/man3/Tspi_Hash_UpdateHashValue.3

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-04-18 16:39:38 UTC
  • Revision ID: james.westby@ubuntu.com-20070418163938-opscl2mvvi76jiec
Tags: upstream-0.2.9.1
ImportĀ upstreamĀ versionĀ 0.2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
3
.\"
 
4
.de Sh \" Subsection
 
5
.br
 
6
.if t .Sp
 
7
.ne 5
 
8
.PP
 
9
\fB\\$1\fR
 
10
.PP
 
11
..
 
12
.de Sp \" Vertical space (when we can't use .PP)
 
13
.if t .sp .5v
 
14
.if n .sp
 
15
..
 
16
.de Ip \" List item
 
17
.br
 
18
.ie \\n(.$>=3 .ne \\$3
 
19
.el .ne 3
 
20
.IP "\\$1" \\$2
 
21
..
 
22
.TH "Tspi_Hash_UpdateHashValue" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developer's Reference
 
25
.SH NAME
 
26
Tspi_Hash_UpdateHashValue \- update the hash value of a hash object
 
27
.SH "SYNOPSIS"
 
28
.ad l
 
29
.hy 0
 
30
.nf
 
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>
 
38
.sp
 
39
.BI "TSS_RESULT Tspi_Hash_UpdateHashValue(TSS_HHASH " hHash ", UINT32 " ulDataLength ", BYTE* " rgbData ");"
 
40
.fi
 
41
.sp
 
42
.ad
 
43
.hy
 
44
 
 
45
.SH "DESCRIPTION"
 
46
.PP
 
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
 
53
 
 
54
.SH "PARAMETERS"
 
55
.PP
 
56
.SS hHash
 
57
The handle to the hash object instance whose hash value should be signed.
 
58
.SS ulDataLength
 
59
Indicates the length of the data provided at the parameter \fIrgbData\fR.
 
60
.SS rgbData
 
61
A pointer to the data.
 
62
 
 
63
.SH "RETURN CODES"
 
64
.PP
 
65
\fBTspi_Hash_UpdateHashValue\fR returns TSS_SUCCESS on success,
 
66
otherwise one of the following values is returned:
 
67
.TP
 
68
.SM TSS_E_INVALID_HANDLE
 
69
\fIhHash\fR is not a valid handle.
 
70
 
 
71
.TP
 
72
.SM TSS_E_INTERNAL_ERROR
 
73
An internal SW error has been detected.
 
74
 
 
75
.TP
 
76
.SM TSS_E_BAD_PARAMETER
 
77
One or more parameters is bad.
 
78
 
 
79
.TP
 
80
.SM TSS_E_HASH_INVALID_LENGTH
 
81
Hash length is inconsistent with hash algorithm.
 
82
 
 
83
.TP
 
84
.SM TSS_E_HASH_NO_DATA
 
85
Hash object has no internal hash value.
 
86
 
 
87
 
 
88
.SH "CONFORMING TO"
 
89
 
 
90
.PP
 
91
\fBTspi_Hash_UpdateHashValue\fR conforms to the Trusted Computing Group
 
92
Software Specification version 1.1 Golden
 
93
 
 
94
.SH "SEE ALSO"
 
95
 
 
96
.PP
 
97
\fBTspi_Hash_GetHashValue\fR(3), \fBTspi_Hash_Sign\fR(3),
 
98
\fBTspi_Hash_SetHashValue\fR(3), \fBTspi_Hash_VerifySignature\fR(3).
 
99