1Tspi_Data_Unseal(3)TCG Software Stack Developer's ReferenceTspi_Data_Unseal(3)
2
3
4

NAME

6       Tspi_Data_Unseal  - dencrypt data encrypted by Tspi_Data_Seal() only if
7       it was encrypted on the same platform and under the current  configura‐
8       tion.
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_Unseal(TSS_HENCDATA hEncData,              TSS_HKEY hKey,
20                                   UINT32       pulUnsealedDataLength, BYTE**   prgbUnsealedData);
21
22
23

DESCRIPTION

25       Tspi_Data_Unseal  reveals  data encrypted by the Tspi_Data_Seal only if
26       it was encrypted on the same platform and  the  current  configuration.
27       This is internally proofed and guaranteed by the TPM.
28

PARAMETERS

30   hEncData
31       Handle of the data object which contains the sealed data.
32
33   hKey
34       Handle to the key object addressing the nonmigratable key which is used
35       to decrypt the data.
36
37   pulUnsealedDataLength
38       The length (in bytes) of the prgbUnsealedData parameter.
39
40   prgbUnsealedData
41       On successful completion of the command, this  parameter  points  to  a
42       buffer containing the plaintext data.
43
44   hPcrComposite
45       Handle  of  the PCR Composite object specifying the PCRs which are part
46       of the sealed data blob. Set to NULL, if the encrypted data should only
47       be bound to the system and PCRs are not of interest.
48

RETURN CODES

50       Tspi_Data_Unseal  returns  TSS_SUCCESS on success, otherwise one of the
51       following values are returned:
52
53       TSS_E_INVALID_HANDLE - Either hEncData or hKey is not a valid handle.
54
55       TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
56
57

CONFORMING TO

59       Tspi_Data_Unseal conforms to the Trusted Computing Group Software Spec‐
60       ification version 1.1 Golden
61

SEE ALSO

63       Tspi_Data_Seal(3).
64
65
66
67
68
69
70TSS 1.1                           2004-05-26               Tspi_Data_Unseal(3)
Impressum