firmware/lib/tpm2_lite/tlcl.c
/**
 * Get the permission bits for the NVRAM space with |index|.
 */
Get the permission bits for the NVRAM space with |index|.
Get the permission bits for the NVRAM space with |index| .
uint32_t TlclGetPermissions(uint32_t index, uint32_t *permissions)
{
	uint32_t rv;
	struct nv_read_public_response *resp;
	rv = tlcl_nv_read_public(index, &resp);
	if (rv == TPM_SUCCESS)
		*permissions = resp->nvPublic.attributes;
	return rv;
}
uint32_t TlclGetPermissions ( uint32_t index , uint32_t * permissions ) { uint32_t rv ; struct nv_read_public_response * resp ; rv = tlcl_nv_read_public ( index , & resp ) ; if ( rv == TPM_SUCCESS ) * permissions = resp -> nvPublic . attributes ; return rv ; }
Get the permission bits for the NVRAM space with |index|.
Get the permission bits for the NVRAM space with |index| .