Introduction to Library Functions
Tspi_Context_GetKeyByPublicInfo(3)
NAME
Tspi_Context_GetKeyByPublicInfo - search the persistent
storage for a registered key using the provided public key informationSYNOPSIS
#include
#include
#include
#include
#include
#include
#include
TSS_RESULT Tspi_Context_GetKeyByPublicInfo(TSS_HCONTEXT hContext, TSS_FLAG persistentStorageType,
TSS_ALGORITHM_ID algID, UINT32 ulPublicInfoLength,
BYTE* rgbPublicInfo, TSS_HKEY* phKey);
DESCRIPTION
TSS_Context_GetKeyByPublicInfo searches the persistent
storage for a registered key using the provided public key information and creates a key object initalized according to the found data. On successful completion of the method a handle to the created new key object is returned.PARAMETERS
hContext The handle of the context object. persistentStorageType Flag indicating the persistent storage the key is registered in. algId This parameter indicates the algorithm of the requested key. ulPublicInfoLength The length of the public key info provided at the parameter rgbPublicInfo. rgbPublicInfo The public key info is provided to identify the key to be look for at the persistent storage. In case algID equals toTSS_ALG_RSA this prameter contains the modulus of the public
RSA key. hKey Recieves the handle of the key object representing the key. In case the key hasn't been found, this value will be NULL.TSS 1.1 Last change: 2004-05-26 1
Introduction to Library FunctionsTspi_Context_GetKeyByPublicInfo(3)
RETURN CODESTspi_Context_GetKeyByPublicInfo returns TSS_SUCCESS on suc-
cess, otherwise one of the following values are returned:TSS_E_INVALID_HANDLE - hContext is an invalid
TSS_E_INTERNAL_ERROR - An error occurred internal
CONFORMING TOTspi_Context_GetKeyByPublicInfo conforms to the Trusted Com-
puting Group Software Specification version 1.1 GoldenSEE ALSO
Tspi_Context_LoadKeyByUUID(3).
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:__________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|____________________|_____________________________|_
| Availability | library/security/trousers ||____________________|_____________________________|_
| Interface Stability| Uncommitted ||____________________|____________________________|
NOTES Source for trousers is available at http://opensolaris.organd at http://sourceforge.net/projects/trousers. Documenta-
tion is available at file:///usr/share/man, and http://sourceforge.net/projects/trousers.TSS 1.1 Last change: 2004-05-26 2
Introduction to Library FunctionsTspi_Context_GetKeyByPublicInfo(3)
TSS 1.1 Last change: 2004-05-26 3