1
.\" Copyright (C) 2007 International Business Machines Corporation
2
.\" Written by Loulwa Salem based on the Trusted Computing Group Software Stack Specification Version 1.2
12
.de Sp \" Vertical space (when we can't use .PP)
18
.ie \\n(.$>=3 .ne \\$3
22
.TH "Tspi_TPM_OwnerGetSRKPubKey" 3 "2007-07-19" "TSS 1.1"
24
TCG Software Stack Developer's Reference
26
Tspi_TPM_OwnerGetSRKPubKey \- get public key of the SRK
32
.B "#include <tss/tspi.h>"
34
.BI "TSS_RESULT Tspi_TPM_OwnerGetSRKPubKey(TSS_HTPM " hTPM ","
35
.BI " UINT32* " pulPubKeyLength ","
36
.BI " BYTE** " prgbPubKey ");"
44
\fBTspi_TPM_OwnerGetSRKPubKey\fR
45
returns the public key of the key object using owner authorization.
46
This can only be used on 1.2 TPMs, and only to return the public key of the SRK.
51
The \fIhTPM\fR parameter is used to specify the handle of the TPM object.
53
The \fIpulPubKeyLength\fR parameter is the length (in bytes) of the prgbPubKey parameter.
55
The \fIprgbPubKey\fR parameter is the pointer to the memory block containing the public key blob retrieved for the key object referenced by hKey.
59
\fBTspi_TPM_OwnerGetSRKPubKey\fR returns TSS_SUCCESS on success, otherwise
60
one of the following values is returned:
62
.SM TSS_E_INVALID_HANDLE
63
\fIhTPM\fR is not a valid handle.
66
.SM TSS_E_BAD_PARAMETER
67
One or more parameters is bad.
70
.SM TSS_E_INTERNAL_ERROR
71
An internal SW error has been detected.
74
.SM TSS_E_TPM_UNSUPPORTED
75
The TPM is not version 1.2 or later - (Note: still unimplemented)
80
\fBTspi_TPM_OwnerGetSRKPubKey\fR conforms to the Trusted Computing Group
81
Software Specification version 1.2
86
\fBTspi_Context_FreeMemory\fR(3), \fBTspi_Key_GetPubKey\fR(3).