Android-cuttlefish cvd tool
|
#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_ |
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.
cuttlefish::TpmAuth::TpmAuth | ( | ESYS_TR | auth1 | ) |
cuttlefish::TpmAuth::TpmAuth | ( | ESYS_TR | auth1, |
ESYS_TR | auth2 | ||
) |
cuttlefish::TpmAuth::TpmAuth | ( | ESYS_TR | auth1, |
ESYS_TR | auth2, | ||
ESYS_TR | auth3 | ||
) |
ESYS_TR cuttlefish::TpmAuth::auth1 | ( | ) | const |
ESYS_TR cuttlefish::TpmAuth::auth2 | ( | ) | const |
ESYS_TR cuttlefish::TpmAuth::auth3 | ( | ) | const |
|
private |
|
private |
|
private |