tpm2_ctx_mgmt.h 876 B

12345678910111213141516171819202122232425262728
  1. #ifndef LIB_TPM2_CTX_MGMT_H_
  2. #define LIB_TPM2_CTX_MGMT_H_
  3. #include "tpm2_session.h"
  4. /**
  5. * Invokes evictcontrol for manipulating the persistence of loaded
  6. * objects in TPM memory.
  7. * @param context
  8. * The Enhanced System API (ESAPI) context
  9. * @param auth
  10. * The authorisation hierarchy, either TPM2_RH_OWNER or TPM2_RH_PLATFORM
  11. * @param sdata
  12. * The authorization data for auth.
  13. * @param objhandle
  14. * The object handle of a loaded object to manipulate.
  15. * @param phandle
  16. * The handle to persist objhandle at, if objhandle is transient.
  17. * @param out_tr
  18. * Optional. The ESYS_TR handle representing objhandle.
  19. * @return
  20. * tool_rc indicating status.
  21. */
  22. tool_rc tpm2_ctx_mgmt_evictcontrol(ESYS_CONTEXT *context, ESYS_TR auth,
  23. tpm2_session *sess, ESYS_TR objhandle, TPMI_DH_PERSISTENT phandle,
  24. ESYS_TR *out_tr);
  25. #endif /* LIB_TPM2_CTX_MGMT_H_ */