1Tspi_Key_GetPubKey(3)      Library Functions Manual      Tspi_Key_GetPubKey(3)
2
3
4
5                   TCG Software Stack Developer's Reference
6

NAME

8       Tspi_Key_GetPubKey - get the public key of an object
9

SYNOPSIS

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_GetPubKey(TSS_HKEY hKey, UINT32* pulPubKeyLength, BYTE** prgbPubKey);
20
21
22

DESCRIPTION

24       Tspi_Key_GetPubKey gets the public portion of a given key object.
25
26

PARAMETERS

28   hKey
29       The hKey parameter is the handle of the key object to unload.
30
31   pulPubKeyLength
32       The  pulPubKeyLength  parameter  receives  the  length  in bytes of the
33       prgbPubKey parameter.
34
35   prgbPubKey
36       The prgbPubKey parameter receives a pointer to the  memory  block  con‐
37       taining  the public key blob retrieved for the key object referenced by
38       hKey.
39
40

RETURN CODES

42       Tspi_Key_GetPubKey returns TSS_SUCCESS on success, otherwise one of the
43       following values is returned:
44
45       TSS_E_INVALID_HANDLE
46              hKey is not a valid handle.
47
48
49       TSS_E_INTERNAL_ERROR
50              An internal SW error has been detected.
51
52
53       TSS_E_BAD_PARAMETER
54              One or more parameters is bad.
55
56

CONFORMING TO

58       Tspi_Key_GetPubKey  conforms  to  the  Trusted Computing Group Software
59       Specification version 1.1 Golden
60
61

SEE ALSO

63       Tspi_Key_LoadKey(3), Tspi_Key_UnloadKey(3), Tspi_Key_CertifyKey(3).
64
65
66
67
68TSS 1.1                           2004-05-25             Tspi_Key_GetPubKey(3)
Impressum