~ubuntu-branches/ubuntu/precise/trousers/precise-proposed

« back to all changes in this revision

Viewing changes to man/man3/Tspi_Hash_GetHashValue.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_GetHashValue" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developer's Reference
 
25
.SH NAME
 
26
Tspi_Hash_GetHashValue \- get the current 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_GetHashValue(TSS_HHASH " hHash ", UINT32* " pulHashValueLength ", BYTE** " prgbHashValue ");"
 
40
.fi
 
41
.sp
 
42
.ad
 
43
.hy
 
44
 
 
45
.SH "DESCRIPTION"
 
46
.PP
 
47
\fBTspi_Hash_GetHashValue\fR gets the hash value of
 
48
a hash object. \fBTspi_Context_FreeMemory\fR must be used to clean
 
49
up after this function, as memory is allocated for the
 
50
\fIprgbHashValue\fR data.
 
51
 
 
52
.SH "PARAMETERS"
 
53
.PP
 
54
.SS hHash
 
55
The handle to the hash object instance whose hash value should be signed.
 
56
.SS pulHashValueLength
 
57
Receives the length of the hash value data returned at the parameter
 
58
\fIprgbHashValue\fR.
 
59
.SS prgbHashValue
 
60
Receives a pointer to the hash value data.
 
61
 
 
62
.SH "RETURN CODES"
 
63
.PP
 
64
\fBTspi_Hash_GetHashValue\fR returns TSS_SUCCESS on success, otherwise
 
65
one of the following values is returned:
 
66
.TP
 
67
.SM TSS_E_INVALID_HANDLE
 
68
\fIhHash\fR is not a valid handle.
 
69
 
 
70
.TP
 
71
.SM TSS_E_INTERNAL_ERROR
 
72
An internal SW error has been detected.
 
73
 
 
74
.TP
 
75
.SM TSS_E_BAD_PARAMETER
 
76
One or more parameters is bad.
 
77
 
 
78
.TP
 
79
.SM TSS_E_HASH_INVALID_LENGTH
 
80
Hash length is inconsistent with hash algorithm.
 
81
 
 
82
.TP
 
83
.SM TSS_E_HASH_NO_DATA
 
84
Hash object has no internal hash value.
 
85
 
 
86
 
 
87
.SH "CONFORMING TO"
 
88
 
 
89
.PP
 
90
\fBTspi_Hash_GetHashValue\fR conforms to the Trusted Computing Group
 
91
Software Specification version 1.1 Golden
 
92
 
 
93
.SH "SEE ALSO"
 
94
 
 
95
.PP
 
96
\fBTspi_Hash_UpdateHash\fR(3), \fBTspi_Hash_Sign\fR(3),
 
97
\fBTspi_Hash_VerifySignature\fR(3), \fBTspi_Hash_SetHashValue\fR(3).
 
98