#include <tpm2_util.h>
Helper type setting a TPM2_HANDLE or ESYS_TR on a given instance of Object from a TSS2 library function's out parameter.
This is not used directly, but through the out_transient_handle() and out_persistent_handle() respectively.
Definition at line 182 of file tpm2_util.h.
◆ ObjectSetter() [1/3]
Botan::TPM2::ObjectSetter::ObjectSetter |
( |
Object & | object, |
|
|
bool | persistent = false ) |
|
inlineconstexpr |
◆ ~ObjectSetter()
Botan::TPM2::ObjectSetter::~ObjectSetter |
( |
| ) |
|
|
inlineconstexprnoexcept |
Definition at line 187 of file tpm2_util.h.
187 {
188 if(!was_written()) {
189 return;
190 }
191
192 if(m_persistent) {
193 m_object.handles().persistent = m_handle;
194 } else {
195 m_object.handles().transient = m_handle;
196 }
197 }
◆ ObjectSetter() [2/3]
Botan::TPM2::ObjectSetter::ObjectSetter |
( |
const ObjectSetter & | | ) |
|
|
delete |
◆ ObjectSetter() [3/3]
◆ operator uint32_t *()
Botan::TPM2::ObjectSetter::operator uint32_t * |
( |
| ) |
&& |
|
inlinenodiscardconstexprnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: