1Tspi_Data_Seal(3)  TCG Software Stack Developer's Reference  Tspi_Data_Seal(3)
2
3
4

NAME

6       Tspi_Data_Seal  - encrypt a data blob in a mannar that is only decrypt‐
7       able by Tspi_Data_Unseal on the same system.
8

SYNOPSIS

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

DESCRIPTION

25       Tspi_Data_Seal encrypts a data blob in a mannar that is  only  decrypt‐
26       able by Tspi_Data_Unseal on the same system. The data blob is encrypted
27       using a public key operation with the nonmigratable  key  addressed  by
28       the given encryption key object.
29

PARAMETERS

31   hEncData
32       Handle  of the data object which contains the sealed data on successful
33       completion of the command.
34
35   hEncKey
36       Handle to the key object addressing the nonmigratable key which is used
37       to encrypt the data.
38
39   ulDataLength
40       The Length (in bytes) of the rgbDataToSeal parameter.
41
42   rgbDataToSeal
43       Pointer to memory containing the data to be encrypted.
44
45   hPcrComposite
46       Handle  of  the PCR Composite object specifying the PCRs which are part
47       of the sealed data blob. Set to NULL, if the encrypted data should only
48       be bound to the system and PCRs are not of interest.
49

RETURN CODES

51       Tspi_Data_Seal  returns  TSS_SUCCESS  on  success, otherwise one of the
52       following values are returned:
53
54       TSS_E_INVALID_HANDLE - One of the following parameters hEncData, hEncK‐
55       ey, rgbDataToSeal is invalid.
56
57       TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
58
59

CONFORMING TO

61       Tspi_Data_Seal  conforms to the Trusted Computing Group Software Speci‐
62       fication version 1.1 Golden
63
64

SEE ALSO

66       Tspi_Data_Unseal(3).
67
68
69
70
71
72
73TSS 1.1                           2004-05-26                 Tspi_Data_Seal(3)
Impressum