1Tspi_Key_LoadKey(3) Library Functions Manual Tspi_Key_LoadKey(3)
2
3
4
5 TCG Software Stack Developer's Reference
6
8 Tspi_Key_LoadKey - load a key into the TPM
9
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_Key_LoadKey(TSS_HKEY hKey, TSS_HKEY hUnwrappingKey);
20
21
22
24 Tspi_Key_LoadKey loads the key referenced by hKey into the TPM.
25
26
28 hKey
29 The hKey parameter is the handle of the key object to load.
30
31 hUnwrappingKey
32 The hUnwrappingKey parameter is the handle of the key which should be
33 used to unwrap the key addressed by hKey.
34
35
37 Tspi_Key_LoadKey returns TSS_SUCCESS on success, otherwise one of the
38 following values is returned:
39
40 TSS_E_INVALID_HANDLE
41 Either hKey or hUnwrappingKey is not a valid handle.
42
43
44 TSS_E_INTERNAL_ERROR
45 An internal SW error has been detected.
46
47
48 TSS_E_BAD_PARAMETER
49 One or more parameters is bad.
50
51
53 Tspi_Key_LoadKey conforms to the Trusted Computing Group Software Spec‐
54 ification version 1.1 Golden
55
56
58 Tspi_Key_UnloadKey(3), Tspi_Key_GetPubKey(3).
59
60
61
62
63TSS 1.1 2005-02-01 Tspi_Key_LoadKey(3)