Botan 3.6.0
Crypto and TLS for C&
tpm2_util.h File Reference

Internal Header. More...

#include <botan/concepts.h>
#include <botan/mem_ops.h>
#include <botan/tpm2_context.h>
#include <botan/tpm2_error.h>
#include <botan/tpm2_object.h>
#include <botan/internal/fmt.h>
#include <bit>
#include <memory>
#include <span>
#include <tss2/tss2_esys.h>
#include <tss2/tss2_rc.h>

Go to the source code of this file.

Classes

class  Botan::TPM2::AttributeWrapper< UnderlyingT, AttributeWrapperT, props >
 
struct  Botan::TPM2::esys_liberator
 
struct  Botan::TPM2::ObjectHandles
 
class  Botan::TPM2::ObjectSetter
 
struct  Botan::TPM2::PropMap< FieldPointerT, MaskT >
 
struct  Botan::TPM2::PublicInfo
 

Namespaces

namespace  Botan
 
namespace  Botan::TPM2
 

Concepts

concept  Botan::TPM2::tpm2_buffer
 

Typedefs

template<typename T >
using Botan::TPM2::unique_esys_ptr = std::unique_ptr<T, esys_liberator>
 A unique pointer type for ESYS handles that automatically frees the handle.
 

Functions

constexpr auto Botan::TPM2::as_span (tpm2_buffer auto &data)
 Construct a std::span as a view into a TPM2 buffer.
 
constexpr auto Botan::TPM2::as_span (tpm2_buffer auto &data, size_t length)
 
constexpr void Botan::TPM2::check_rc (std::string_view location, TSS2_RC rc)
 
template<TSS2_RC... expected_errors>
requires (sizeof...(expected_errors) > 0)
constexpr TSS2_RC Botan::TPM2::check_rc_expecting (std::string_view location, TSS2_RC rc)
 
template<concepts::resizable_byte_buffer OutT>
constexpr OutT Botan::TPM2::copy_into (const tpm2_buffer auto &data)
 
template<tpm2_buffer T>
constexpr T Botan::TPM2::copy_into (std::span< const uint8_t > data)
 
template<tpm2_buffer T>
constexpr void Botan::TPM2::copy_into (T &dest, std::span< const uint8_t > data)
 
template<tpm2_buffer T>
constexpr T Botan::TPM2::init_empty ()
 Create an empty TPM2 buffer of the given type.
 
constexpr auto Botan::TPM2::out_persistent_handle (Object &object)
 
constexpr auto Botan::TPM2::out_transient_handle (Object &object)
 
template<typename MaskT , typename FieldPointerT >
 Botan::TPM2::PropMap (MaskT, FieldPointerT) -> PropMap< MaskT, FieldPointerT >
 Deduction guide to simplify the creation of PropMap instances.
 

Detailed Description

Internal Header.

Definition in file tpm2_util.h.