1Tspi_Context_GetKeyBTyCPGubSloifctIwnafroe(3S)tack DevelopTesrp'is_CRoenfteerxetn_cGeetKeyByPublicInfo(3)
2
3
4
6 Tspi_Context_GetKeyByPublicInfo - search the persistent storage for a
7 registered key using the provided public key information
8
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_Context_GetKeyByPublicInfo(TSS_HCONTEXT hContext, TSS_FLAG persistentStorageType,
19 TSS_ALGORITHM_ID algID, UINT32 ulPublicInfoLength,
20 BYTE* rgbPublicInfo, TSS_HKEY* phKey);
21
22
23
25 TSS_Context_GetKeyByPublicInfo searches the persistent storage for a
26 registered key using the provided public key information and creates a
27 key object initalized according to the found data. On successful com‐
28 pletion of the method a handle to the created new key object is re‐
29 turned.
30
32 hContext
33 The handle of the context object.
34
35 persistentStorageType
36 Flag indicating the persistent storage the key is registered in.
37
38 algId
39 This parameter indicates the algorithm of the requested key.
40
41 ulPublicInfoLength
42 The length of the public key info provided at the parameter rgbPub‐
43 licInfo.
44
45 rgbPublicInfo
46 The public key info is provided to identify the key to be look for at
47 the persistent storage. In case algID equals to TSS_ALG_RSA this prame‐
48 ter contains the modulus of the public RSA key.
49
50 hKey
51 Recieves the handle of the key object representing the key. In case the
52 key hasn't been found, this value will be NULL.
53
55 Tspi_Context_GetKeyByPublicInfo returns TSS_SUCCESS on success, other‐
56 wise one of the following values are returned:
57
58 TSS_E_INVALID_HANDLE - hContext is an invalid handle.
59
60 TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
61
63 Tspi_Context_GetKeyByPublicInfo conforms to the Trusted Computing Group
64 Software Specification version 1.1 Golden
65
67 Tspi_Context_LoadKeyByUUID(3).
68
69
70
71TSS 1.1 2004-05-26Tspi_Context_GetKeyByPublicInfo(3)