---
name: "Tspi_TPM_DAA_JoinStoreCredential"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.9-3+wheezy1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_TPM_DAA_JoinStoreCredential"
---

# Tspi\_TPM\_DAA\_JoinStoreCredential(3)

compute the final DAA Credential

TCG Software Stack Developer's Reference

## NAME

Tspi\_TPM\_DAA\_JoinStoreCredential - compute the final DAA Credential

## SYNOPSIS

```
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>

TSS_RESULT Tspi_TPM_DAA_JoinStoreCredential(
    TSS_HDAA                    hDAA,
    TSS_HTPM                    hTPM,
    TSS_DAA_CRED_ISSUER         credIssuer,
    TSS_DAA_JOIN_SESSION        joinSession,
    TSS_HKEY*                   hDaaCredential
);
```

## DESCRIPTION

Tspi\_TPM\_DAA\_JoinStoreCredential is the last out of 3 functions (after **Tspi\_TPM\_DAA\_JoinInit()** and **Tspi\_TPM\_DAA\_JoinCreateDaaPubKey()**)\
  to execute in order to receive a DAA Credential. It verifies the issued credential from the DAA Issuer and computes the final DAA Credential.

## PARAMETERS

### hDAA

The *hDAA* parameter is used to specify the handle of the DAA object.

### hTPM

The *hTPM* parameter is the handle to the TPM object.

### credIssuer

The *credIssuer* parameter is the DAA Credential issued by the DAA Issuer including proof of correctness.

### joinSession

The *joinSession* parameter is the structure containing the DAA Join session information.

### hDaaCredential

The *hDaaCredential* parameter is the handle of the received DAA Credential.

## RETURN CODES

**Tspi\_TPM\_DAA\_JoinStoreCredential** returns TSS\_SUCCESS on success, otherwise one of the following values is returned:

- TSS\_E\_INVALID\_HANDLE

  Either the DAA or the TPM handler is not valid.

- TSS\_E\_BAD\_PARAMETER

  - TSS\_E\_INTERNAL\_ERROR

  An internal SW error has been detected. TSS\_E\_DAA\_CREDENTIAL\_PROOF\_ERROR One of the verification of the issued credential failed

## CONFORMING TO

**Tspi\_TPM\_DAA\_JoinStoreCredential** conforms to the Trusted Computing Group Software Specification version 1.2

## SEE ALSO

[**Tspi\_TPM\_DAA\_JoinInit**(3)](/Tspi_TPM_DAA_JoinInit/3.md) [**Tspi\_TPM\_DAA\_JoinCreateDaaPubKey**(3)](/Tspi_TPM_DAA_JoinCreateDaaPubKey/3.md)
