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

« back to all changes in this revision

Viewing changes to man/man3/Tspi_Data_Unbind.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_Data_Unbind" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developer's Reference
 
25
.SH NAME
 
26
Tspi_Data_Unbind \- Decrypts data that has been bound to a key
 
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_Data_Unbind(TSS_HENCDATA " hEncData ",             TSS_HKEY " hEncKey ","
 
40
.BI "                            UINT32*      " pulUnboundDataLength ", BYTE**   " prgbUnboundData ");"
 
41
.fi
 
42
.sp
 
43
.ad
 
44
.hy
 
45
 
 
46
.SH "DESCRIPTION"
 
47
.PP
 
48
\fBTspi_Data_Unbind\fR decrypts the encrypted data
 
49
blob exportedfrom the data object used in \fBTspi_Data_Bind\fR. The
 
50
encrypted data blob must be imported to the object addressed by
 
51
\fBTspi_SetAttribData\fR before calling this method.
 
52
 
 
53
.SH "PARAMETERS"
 
54
.PP
 
55
.SS hEncData
 
56
The handle of the data object which contains the encrypted data.
 
57
.SS hEncKey
 
58
Handle to the key object addressing the private key which is used
 
59
to decrypt the data.
 
60
.SS pulDataLength
 
61
Receives the length of the data at the parameter \fIprgbUnboundData\fR.
 
62
.SS prgbUnboundData
 
63
Receives a pointer to a buffer containing the plaintext data.
 
64
 
 
65
.SH "RETURN CODES"
 
66
.PP
 
67
\fBTspi_Data_Unbind\fR returns TSS_SUCCESS on success, otherwise one
 
68
of the following values is returned:
 
69
.TP
 
70
.SM TSS_E_INVALID_HANDLE
 
71
\fIhEncData\fR or \fIhEncKey\fR is not a valid handle.
 
72
 
 
73
.TP
 
74
.SM TSS_E_INTERNAL_ERROR
 
75
An internal SW error has been detected.
 
76
 
 
77
.TP
 
78
.SM TSS_E_BAD_PARAMETER
 
79
One or more parameters is bad.
 
80
 
 
81
.TP
 
82
.SM TSS_E_INVALID_ENCSCHEME
 
83
Invalid encryption scheme.
 
84
 
 
85
.TP
 
86
.SM TSS_E_ENC_INVALID_LENGTH
 
87
Invalid length of data to be encypted.
 
88
 
 
89
.TP
 
90
.SM TSS_E_ENC_NO_DATA
 
91
No data to encrypt.
 
92
 
 
93
.TP
 
94
.SM TSS_E_ENC_INVALID_TYPE
 
95
Invalid encryption type.
 
96
 
 
97
 
 
98
.SH "CONFORMING TO"
 
99
 
 
100
.PP
 
101
\fBTspi_Data_Unbind\fR conforms to the Trusted Computing Group Software
 
102
Specification version 1.1 Golden
 
103
 
 
104
.SH "SEE ALSO"
 
105
 
 
106
.PP
 
107
\fBTspi_Data_Bind\fR(3), \fBTspi_Data_Unseal\fR(3),
 
108
\fBTspi_Data_Seal\fR(3).
 
109