---
name: "Tspi_PcrComposite_SelectPcrIndex"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.15-0.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_PcrComposite_SelectPcrIndex"
---

# Tspi\_PcrComposite\_SelectPcrIndex(3)

## NAME

Tspi\_PcrComposite\_SelectPcrIndex- select a PCR index inside a PCR composite object.

## SYNOPSIS

**#include \<tss/platform.h\>** **#include \<tss/tcpa\_defines.h\>** **#include \<tss/tcpa\_typedef.h\>** **#include \<tss/tcpa\_struct.h\>** **#include \<tss/tss\_typedef.h\>** **#include \<tss/tss\_structs.h\>** **#include \<tss/tspi.h\>** **TSS\_RESULT Tspi\_PcrComposite\_SelectPcrIndex(TSS\_HPCRS** *hPcrComposite***, UINT32** *ulPcrIndex***);**

## DESCRIPTION

**Tspi\_PcrComposite\_SelectPcrIndex** selects a PCR index inside a PCR composite object. The PCR composite object must be created withthe function Tspi\_Context\_CreateObject(). An exampled for the usage is the selection of PCR registeres before calling Tspi\_TPM\_Quote().

## PARAMETERS

### hPcrComposite

Handle of the PCR composite object instance where the index should be selected.

### ulPcrIndex

This parameter indicates the index of the PCR to select.

## RETURN CODES

**Tspi\_PcrComposite\_SelectPcrIndex** returns TSS\_SUCCESS on success, otherwise one of the following values are returned: TSS\_E\_INVALID\_HANDLE - Either *hPcrComposite* or *ulPcrIndex* is an invalid handle. TSS\_E\_INTERNAL\_ERROR - An error occurred internal to the TSS.

## CONFORMING TO

**Tspi\_PcrComposite\_SelectPcrIndex** conforms to the Trusted Computing Group Software Specification version 1.1 Golden

## SEE ALSO

[**Tspi\_TPM\_Quote**(3)](/Tspi_TPM_Quote/3.md), [**Tspi\_PcrComposite\_SetPcrValue**(3)](/Tspi_PcrComposite_SetPcrValue/3.md), [**Tspi\_PcrComposite\_GetPcrValue**(3)](/Tspi_PcrComposite_GetPcrValue/3.md).
