author christos <>
Sat, 28 Jan 2012 01:35:04 +0000
changeset 208533 fb64bd2b788b
permissions -rw-r--r--
import trousers 0.3.8 from sourceforge. TrouSerS is the open-source TCG Software Stack

.\" Copyright (C) 2006 International Business Machines Corporation
.\" Written by Anthony Bussani based on the Trusted Computing Group Software Stack Specification Version 1.2
.de Sh \" Subsection
.if t .Sp
.ne 5
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
.de Ip \" List item
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
.TH "Tspi_TPM_DAA_JoinCreateDaaPubKey" 3 "2006-09-04" "TSS 1.2"
.ce 1
TCG Software Stack Developer's Reference
Tspi_TPM_DAA_JoinCreateDaaPubKey \- computes the credential request for the DAA Issuer
.ad l
.hy 0
.B #include <tss/tss_typedef.h>
.B #include <tss/tss_structs.h>
.B #include <tss/tspi.h>
.BI "TSS_RESULT Tspi_TPM_DAA_JoinCreateDaaPubKey("
.BI "    TSS_HDAA                    " hDAA ","
.BI "    TSS_HTPM                    " hTPM ","
.BI "    UINT32                      " authenticationChallengeLength ","
.BI "    BYTE*                       " authenticationChallenge ","
.BI "    UINT32                      " nonceIssuerLength ","
.BI "    BYTE*                       " nonceIssuer ","
.BI "    UINT32                      " attributesPlatformLength ","
.BI "    BYTE**                      " attributesPlatform ","
.BI "    TSS_DAA_JOIN_SESSION*       " joinSession ","
.BI "    TSS_DAA_CREDENTIAL_REQUEST* " credentialRequest
.BI ");"

is the second (between \fBTspi_TPM_DAA_JoinInit()\fR and \fBTspi_TPM_DAA_JoinStoreCredential()\fR)
 out of 3 functions to execute in order to receive a DAA Credential.
It computes the credential request for the DAA Issuer, which also includes the Platforms's
DAA public key and the attributes that were chosen by the Platform, and which are not visible
to the DAA Issuer. The Platform can commit to the attribute values it has chosen.
The \fIhDAA\fR parameter is used to specify the handle of the DAA object.
The \fIhTPM\fR parameter is the handle to the TPM object.
.SS authenticationChallengeLength
The \fIauthenticationChallengeLength\fR parameter is length of authenticationChallenge (256 bytes - DAA_SIZE_NE1).
.SS authenticationChallenge
The \fIauthenticationChallenge\fR parameter is the second nonce of the DAA Issuer that is encrypted by the endorsement public key.
It is used as a challenge to authenticate the underlying TPM.
.SS nonceIssuerLength
The \fInonceIssuerLength\fR parameter is the length of nonceIssuer (20 bytes).
.SS nonceIssuer
The \fInonceIssuer\fR parameter is the nonce of the DAA Issuer.
.SS attributesPlatformLength
The \fIattributesPlatformLength\fR parameter is length of attributesPlatform array, which is determined
by the DAA Issuer public key (). The length of a single attribute is ln/8. ln is defined as the size of
the RSA modulus (2048).
.SS attributesPlatform
The \fIattributesPlatform\fR parameter is an array of attributes to be encoded into the DAA Credential
not visible to the DAA Issuer.
.SS joinSession
The \fIjoinSession\fR parameter is a structure containing the DAA Join session information.
.SS credentialRequest
The \fIcredentialRequest\fR parameter is the credential request of the Platform, it contains the blinded
DAA public key of the platform on which the DAA Issuer will issue the credential the blinded attributes
chosen by the Platform.

\fBTspi_TPM_DAA_JoinCreateDaaPubKey\fR returns TSS_SUCCESS on success, otherwise one of the
following values is returned:
Either the DAA is not valid.
An internal SW error has been detected.

\fBTspi_TPM_DAA_JoinCreateDaaPubKey\fR conforms to the Trusted Computing Group
Software Specification version 1.2