Android-cuttlefish cvd tool
Classes | Namespaces | Typedefs | Functions
tpm_hmac.h File Reference
#include <memory>
#include <string>
#include <tss2/tss2_esys.h>
#include "cuttlefish/host/commands/secure_env/tpm_auth.h"
Include dependency graph for tpm_hmac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cuttlefish::EsysDeleter
 

Namespaces

namespace  cuttlefish
 

Typedefs

template<typename T >
using cuttlefish::UniqueEsysPtr = std::unique_ptr< T, EsysDeleter >
 

Functions

UniqueEsysPtr< TPM2B_DIGEST > cuttlefish::TpmHmac (TpmResourceManager &resource_manager, ESYS_TR key_handle, TpmAuth auth, const uint8_t *data, size_t data_size)
 
UniqueEsysPtr< TPM2B_DIGEST > cuttlefish::TpmHmacWithContext (TpmResourceManager &resource_manager, const std::string &context, const uint8_t *data, size_t data_size)