1Tspi_Context_LoadKeyByBlob(3L)ibrary Functions ManuaTlspi_Context_LoadKeyByBlob(3)
2
3
4
5                   TCG Software Stack Developers Reference
6

NAME

8       Tspi_Context_LoadKeyByBlob  -  load  a key into the TPM using the key's
9       blob.
10

SYNOPSIS

12       #include <tss/platform.h>
13       #include <tss/tcpa_defines.h>
14       #include <tss/tcpa_typedef.h>
15       #include <tss/tcpa_struct.h>
16       #include <tss/tss_typedef.h>
17       #include <tss/tss_structs.h>
18       #include <tss/tspi.h>
19
20       TSS_RESULT Tspi_Context_LoadKeyByBlob(TSS_HCONTEXT hContext,     TSS_HKEY hUnwrappingKey,
21                                             UINT32       ulBlobLength, BYTE*    rgbBlobData,
22                                             TSS_HKEY*    phKey);
23
24
25

DESCRIPTION

27       Tspi_Context_LoadKeyByBlob creates a key based on the information  got‐
28       ten  by the key blob. It then loads the key into the TPM, which unwraps
29       the key blob by using the key associated with hUnwrappingKey.  The  key
30       blob addressed by hUnwrappingKey must have been already loaded into the
31       TPM. This function returns a handle to the created key object.
32
33

PARAMETERS

35   hContext
36       The hContext parameter is the handle of the context object.
37
38   hUnwrappingKey
39       The hUnwrappingKey parameter is the handle  of  the  key  object  which
40       should be used to unwrap the key information associated with rgbBlobDa‐
41       ta.
42
43   rgbBlobData
44       The rgbBlobData parameter is the wrapped key to load.
45
46   phKey
47       The phKey parameter receives the handle of the key object  representing
48       the loaded key.
49
50

RETURN CODES

52       Tspi_Context_LoadKeyByBlob  returns  TSS_SUCCESS  on success, otherwise
53       one of the following values is returned:
54
55       TSS_E_INVALID_HANDLE
56              hContext is not a valid handle.
57
58
59       TSS_E_INTERNAL_ERROR
60              An internal SW error has been detected.
61
62
63       TSS_E_BAD_PARAMETER
64              One or more parameters is bad.
65
66

CONFORMING TO

68       Tspi_Context_LoadKeyByBlob conforms  to  the  Trusted  Computing  Group
69       Software Specification version 1.1 Golden
70
71

SEE ALSO

73       Tspi_Context_LoadKeyByUUID(3),  Tspi_Policy_SetSecret(3), Tspi_GetPoli‐
74       cyObject(3), Tspi_Key_CreateKey(3), Tspi_GetAttribUint32(3).
75
76
77
78
79TSS 1.1                           2004-05-25     Tspi_Context_LoadKeyByBlob(3)
Impressum