Android-cuttlefish cvd tool
Public Member Functions | List of all members
cuttlefish::GatekeeperStorage Class Referenceabstract

#include <gatekeeper_storage.h>

Public Member Functions

virtual ~GatekeeperStorage ()=default
 
virtual bool Allocate (const Json::Value &key, uint16_t size)=0
 
virtual bool HasKey (const Json::Value &key) const =0
 
virtual std::unique_ptr< TPM2B_MAX_NV_BUFFER > Read (const Json::Value &key) const =0
 
virtual bool Write (const Json::Value &key, const TPM2B_MAX_NV_BUFFER &data)=0
 

Detailed Description

Data storage tailored to Gatekeeper's storage needs: storing binary blobs that can be destroyed without a trace or corrupted with an obvious trace, but not silently tampered with or read by an unauthorized user.

Data can be stored through Write and retrieved through Read. To delete data, issue a Write that overwrites the data to destroy it.

Constructor & Destructor Documentation

◆ ~GatekeeperStorage()

virtual cuttlefish::GatekeeperStorage::~GatekeeperStorage ( )
virtualdefault

Member Function Documentation

◆ Allocate()

virtual bool cuttlefish::GatekeeperStorage::Allocate ( const Json::Value &  key,
uint16_t  size 
)
pure virtual

◆ HasKey()

virtual bool cuttlefish::GatekeeperStorage::HasKey ( const Json::Value &  key) const
pure virtual

◆ Read()

virtual std::unique_ptr< TPM2B_MAX_NV_BUFFER > cuttlefish::GatekeeperStorage::Read ( const Json::Value &  key) const
pure virtual

◆ Write()

virtual bool cuttlefish::GatekeeperStorage::Write ( const Json::Value &  key,
const TPM2B_MAX_NV_BUFFER &  data 
)
pure virtual

The documentation for this class was generated from the following file: