1Tspi_Data_Unbind(3)        Library Functions Manual        Tspi_Data_Unbind(3)
2
3
4
5                   TCG Software Stack Developer's Reference
6

NAME

8       Tspi_Data_Unbind - Decrypts data that has been bound to a key
9

SYNOPSIS

11       #include <tss/platform.h>
12       #include <tss/tcpa_defines.h>
13       #include <tss/tcpa_typedef.h>
14       #include <tss/tcpa_struct.h>
15       #include <tss/tss_typedef.h>
16       #include <tss/tss_structs.h>
17       #include <tss/tspi.h>
18
19       TSS_RESULT Tspi_Data_Unbind(TSS_HENCDATA hEncData,             TSS_HKEY hEncKey,
20                                   UINT32*      pulUnboundDataLength, BYTE**   prgbUnboundData);
21
22
23

DESCRIPTION

25       Tspi_Data_Unbind decrypts the encrypted data blob exportedfrom the data
26       object used in Tspi_Data_Bind. The encrypted data blob must be imported
27       to  the  object  addressed  by  Tspi_SetAttribData  before calling this
28       method.
29
30

PARAMETERS

32   hEncData
33       The handle of the data object which contains the encrypted data.
34
35   hEncKey
36       Handle to the key object addressing the private key which  is  used  to
37       decrypt the data.
38
39   pulDataLength
40       Receives the length of the data at the parameter prgbUnboundData.
41
42   prgbUnboundData
43       Receives a pointer to a buffer containing the plaintext data.
44
45

RETURN CODES

47       Tspi_Data_Unbind  returns  TSS_SUCCESS on success, otherwise one of the
48       following values is returned:
49
50       TSS_E_INVALID_HANDLE
51              hEncData or hEncKey is not a valid handle.
52
53
54       TSS_E_INTERNAL_ERROR
55              An internal SW error has been detected.
56
57
58       TSS_E_BAD_PARAMETER
59              One or more parameters is bad.
60
61
62       TSS_E_INVALID_ENCSCHEME
63              Invalid encryption scheme.
64
65
66       TSS_E_ENC_INVALID_LENGTH
67              Invalid length of data to be encypted.
68
69
70       TSS_E_ENC_NO_DATA
71              No data to encrypt.
72
73
74       TSS_E_ENC_INVALID_TYPE
75              Invalid encryption type.
76
77
78

CONFORMING TO

80       Tspi_Data_Unbind conforms to the Trusted Computing Group Software Spec‐
81       ification version 1.1 Golden
82
83

SEE ALSO

85       Tspi_Data_Bind(3), Tspi_Data_Unseal(3), Tspi_Data_Seal(3).
86
87
88
89
90TSS 1.1                           2004-05-25               Tspi_Data_Unbind(3)
Impressum