123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #ifndef EPID_MEMBER_TPM2_NV_H_
- #define EPID_MEMBER_TPM2_NV_H_
- #include <stddef.h>
- #include "epid/common/errors.h"
- #include "epid/common/stdtypes.h"
- typedef struct Tpm2Ctx Tpm2Ctx;
- EpidStatus Tpm2NvDefineSpace(Tpm2Ctx* ctx, uint32_t nv_index, size_t size);
- EpidStatus Tpm2NvUndefineSpace(Tpm2Ctx* ctx, uint32_t nv_index);
- EpidStatus Tpm2NvWrite(Tpm2Ctx* ctx, uint32_t nv_index, size_t size,
- uint16_t offset, void const* data);
- EpidStatus Tpm2NvRead(Tpm2Ctx* ctx, uint32_t nv_index, size_t size,
- uint16_t offset, void* data);
- #endif
|