Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::TpmAuth Class Reference

#include <tpm_auth.h>

Public Member Functions

 TpmAuth (ESYS_TR auth1)
 
 TpmAuth (ESYS_TR auth1, ESYS_TR auth2)
 
 TpmAuth (ESYS_TR auth1, ESYS_TR auth2, ESYS_TR auth3)
 
ESYS_TR auth1 () const
 
ESYS_TR auth2 () const
 
ESYS_TR auth3 () const
 

Private Attributes

ESYS_TR auth1_
 
ESYS_TR auth2_
 
ESYS_TR auth3_
 

Detailed Description

Authorization wrapper for TPM2 calls.

Most methods in tss2_esys.h take 3 ESYS_TR values for sessions and authorization, with constraints that unused authorizations are all ESYS_TR_NONE and are all at the end.

This class is a convenience for specifying between 1 and 3 authorizations concisely and enforcing that the constraints are met.

Constructor & Destructor Documentation

◆ TpmAuth() [1/3]

cuttlefish::TpmAuth::TpmAuth ( ESYS_TR  auth1)

◆ TpmAuth() [2/3]

cuttlefish::TpmAuth::TpmAuth ( ESYS_TR  auth1,
ESYS_TR  auth2 
)

◆ TpmAuth() [3/3]

cuttlefish::TpmAuth::TpmAuth ( ESYS_TR  auth1,
ESYS_TR  auth2,
ESYS_TR  auth3 
)

Member Function Documentation

◆ auth1()

ESYS_TR cuttlefish::TpmAuth::auth1 ( ) const

◆ auth2()

ESYS_TR cuttlefish::TpmAuth::auth2 ( ) const

◆ auth3()

ESYS_TR cuttlefish::TpmAuth::auth3 ( ) const

Member Data Documentation

◆ auth1_

ESYS_TR cuttlefish::TpmAuth::auth1_
private

◆ auth2_

ESYS_TR cuttlefish::TpmAuth::auth2_
private

◆ auth3_

ESYS_TR cuttlefish::TpmAuth::auth3_
private

The documentation for this class was generated from the following files: