#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 183 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 188 of file tpm2_util.h.
188 {
189 if(!was_written()) {
190 return;
191 }
192
193 if(m_persistent) {
194 m_object.handles().persistent = m_handle;
195 } else {
196 m_object.handles().transient = m_handle;
197 }
198 }
◆ 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: