Botan 3.6.0
Crypto and TLS for C&
Botan::TPM2::SessionAttributes Struct Reference

#include <tpm2_session.h>

Static Public Member Functions

static SessionAttributes read (TPMA_SESSION attributes)
 
static TPMA_SESSION render (SessionAttributes attributes)
 

Public Attributes

bool audit = false
 Indicates that the session is fused for audit and that audit_exclusive and audit_reset have meaning.
 
bool audit_exclusive = false
 Indicates that a command should only be executed if the session is exclusive.
 
bool audit_reset = false
 Indicates that the audit digest should be initialized and exclusive status of the session SET.
 
bool continue_session = false
 The session may or may not remain active after the successful completion of any command.
 
bool decrypt = false
 Indicates that the first parameter of the command is to be decrypted by the TPM.
 
bool encrypt = false
 Indicates that the first parameter of a command's response is to be encrypted by the TPM.
 

Detailed Description

See TPM 2.0 Part 2, Section 8.4

Definition at line 26 of file tpm2_session.h.

Member Function Documentation

◆ read()

SessionAttributes Botan::TPM2::SessionAttributes::read ( TPMA_SESSION attributes)
static

Definition at line 33 of file tpm2_session.cpp.

33 {
34 return SessionAttributesWrapper::read(attributes);
35}

Referenced by Botan::TPM2::Session::attributes().

◆ render()

TPMA_SESSION Botan::TPM2::SessionAttributes::render ( SessionAttributes attributes)
static

Definition at line 37 of file tpm2_session.cpp.

37 {
38 return SessionAttributesWrapper::render(attributes);
39}

Referenced by Botan::TPM2::Session::set_attributes().

Member Data Documentation

◆ audit

bool Botan::TPM2::SessionAttributes::audit = false

Indicates that the session is fused for audit and that audit_exclusive and audit_reset have meaning.

Definition at line 46 of file tpm2_session.h.

◆ audit_exclusive

bool Botan::TPM2::SessionAttributes::audit_exclusive = false

Indicates that a command should only be executed if the session is exclusive.

Definition at line 34 of file tpm2_session.h.

◆ audit_reset

bool Botan::TPM2::SessionAttributes::audit_reset = false

Indicates that the audit digest should be initialized and exclusive status of the session SET.

Definition at line 37 of file tpm2_session.h.

◆ continue_session

bool Botan::TPM2::SessionAttributes::continue_session = false

The session may or may not remain active after the successful completion of any command.

Definition at line 31 of file tpm2_session.h.

◆ decrypt

bool Botan::TPM2::SessionAttributes::decrypt = false

Indicates that the first parameter of the command is to be decrypted by the TPM.

Definition at line 40 of file tpm2_session.h.

◆ encrypt

bool Botan::TPM2::SessionAttributes::encrypt = false

Indicates that the first parameter of a command's response is to be encrypted by the TPM.

Definition at line 43 of file tpm2_session.h.


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