62 const uint8_t *nv_policy,
size_t nv_policy_size);
unsigned long long uint64_t
uint32_t tlcl_set_deactivated(uint8_t flag)
uint32_t tlcl_set_enable(void)
uint32_t tlcl_define_space(uint32_t index, uint32_t perm, uint32_t size)
uint32_t tlcl_get_flags(uint8_t *disable, uint8_t *deactivated, uint8_t *nvlocked)
uint32_t tlcl_get_permanent_flags(TPM_PERMANENT_FLAGS *pflags)
void * tpm_process_command(TPM_CC command, void *command_body)
uint32_t tlcl_set_bits(uint32_t index, uint64_t bits)
uint16_t tlcl_get_hash_size_from_algo(TPMI_ALG_HASH hash_algo)
uint32_t tlcl_get_capability(TPM_CAP capability, uint32_t property, uint32_t property_count, TPMS_CAPABILITY_DATA *capability_data)
uint32_t tlcl_send_receive(const uint8_t *request, uint8_t *response, int max_length)
Perform a raw TPM request/response transaction.
uint32_t tlcl_set_global_lock(void)
Set the bGlobalLock flag, which only a reboot can clear.
uint32_t tlcl_save_state(void)
Save TPM state by sending either TPM_SaveState() (TPM1.2) or TPM_Shutdown(ST_STATE) (TPM2....
uint32_t tlcl_assert_physical_presence(void)
Assert physical presence in software.
uint32_t tlcl_get_permissions(uint32_t index, uint32_t *permissions)
Get the permission bits for the NVRAM space with |index|.
uint32_t tlcl_continue_self_test(void)
Run the self test in the background.
uint32_t tlcl_disable_platform_hierarchy(void)
Disable platform hierarchy.
uint32_t tlcl_force_clear(void)
Issue a ForceClear.
uint32_t tlcl_lock_nv_write(uint32_t index)
Make an NV Ram location read_only.
uint32_t tlcl_self_test_full(void)
Run the self test.
uint32_t tlcl_finalize_physical_presence(void)
Finalize the physical presence settings: software PP is enabled, hardware PP is disabled,...
uint32_t tlcl_clear_control(bool disable)
Set Clear Control.
uint32_t tlcl_lib_init(void)
Call this first.
uint32_t tlcl_set_nv_locked(void)
Set the nvLocked bit.
uint32_t tlcl_startup(void)
Send a TPM_Startup(ST_CLEAR).
uint32_t tlcl_write(uint32_t index, const void *data, uint32_t length)
Write [length] bytes of [data] to space at [index].
uint32_t tlcl_extend(int pcr_num, const uint8_t *in_digest, uint8_t *out_digest)
Perform a TPM_Extend.
uint32_t tlcl_physical_presence_cmd_enable(void)
Enable the physical presence command.
uint32_t tlcl_read(uint32_t index, void *data, uint32_t length)
Read [length] bytes from space at [index] into [data].
uint32_t tlcl_resume(void)
Resume by sending a TPM_Startup(ST_STATE).