IFAPI_NV_Cmds.3 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .TH "IFAPI_NV_Cmds" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. IFAPI_NV_Cmds
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <fapi_int\&.h>\fP
  11. .SS "Data Fields"
  12. .in +1c
  13. .ti -1c
  14. .RI "char * \fBnvPath\fP"
  15. .br
  16. .ti -1c
  17. .RI "char * \fBpolicyPath\fP"
  18. .br
  19. .ti -1c
  20. .RI "TPM2B_NV_PUBLIC \fBpublic\fP"
  21. .br
  22. .ti -1c
  23. .RI "\fBESYS_TR\fP \fBesys_auth_handle\fP"
  24. .br
  25. .ti -1c
  26. .RI "\fBESYS_TR\fP \fBesys_handle\fP"
  27. .br
  28. .ti -1c
  29. .RI "size_t \fBnumBytes\fP"
  30. .br
  31. .ti -1c
  32. .RI "UINT16 \fBbytesRequested\fP"
  33. .br
  34. .ti -1c
  35. .RI "UINT16 \fBoffset\fP"
  36. .br
  37. .ti -1c
  38. .RI "size_t \fBdata_idx\fP"
  39. .br
  40. .ti -1c
  41. .RI "const uint8_t * \fBdata\fP"
  42. .br
  43. .ti -1c
  44. .RI "uint8_t * \fBrdata\fP"
  45. .br
  46. .ti -1c
  47. .RI "size_t \fBsize\fP"
  48. .br
  49. .ti -1c
  50. .RI "\fBIFAPI_OBJECT\fP \fBauth_object\fP"
  51. .br
  52. .ti -1c
  53. .RI "\fBIFAPI_OBJECT\fP \fBnv_object\fP"
  54. .br
  55. .ti -1c
  56. .RI "TPM2B_AUTH \fBauth\fP"
  57. .br
  58. .ti -1c
  59. .RI "\fBIFAPI_NV\fP \fBnv_obj\fP"
  60. .br
  61. .ti -1c
  62. .RI "\fBESYS_TR\fP \fBauth_index\fP"
  63. .br
  64. .ti -1c
  65. .RI "uint64_t \fBbitmap\fP"
  66. .br
  67. .ti -1c
  68. .RI "\fBIFAPI_NV_TEMPLATE\fP \fBpublic_templ\fP"
  69. .br
  70. .ti -1c
  71. .RI "enum _FAPI_STATE_NV_READ \fBnv_read_state\fP"
  72. .br
  73. .ti -1c
  74. .RI "enum _FAPI_STATE_NV_WRITE \fBnv_write_state\fP"
  75. .br
  76. .ti -1c
  77. .RI "uint8_t * \fBwrite_data\fP"
  78. .br
  79. .ti -1c
  80. .RI "char * \fBlogData\fP"
  81. .br
  82. .ti -1c
  83. .RI "json_object * \fBjso_event_log\fP"
  84. .br
  85. .ti -1c
  86. .RI "TPMI_RH_NV_INDEX \fBmaxNvIndex\fP"
  87. .br
  88. .ti -1c
  89. .RI "\fBIFAPI_EVENT\fP \fBpcr_event\fP"
  90. .br
  91. .ti -1c
  92. .RI "TPML_DIGEST_VALUES \fBdigests\fP"
  93. .br
  94. .ti -1c
  95. .RI "bool \fBskip_policy_computation\fP"
  96. .br
  97. .in -1c
  98. .SH "Detailed Description"
  99. .PP
  100. The data structure holding internal state of Fapi NV commands\&.
  101. .SH "Field Documentation"
  102. .PP
  103. .SS "TPM2B_AUTH auth"
  104. The Password
  105. .SS "\fBESYS_TR\fP auth_index"
  106. The ESAPI handle of the authorization object
  107. .SS "\fBIFAPI_OBJECT\fP auth_object"
  108. Object used for authentication
  109. .SS "uint64_t bitmap"
  110. The bitmask for the SetBits command
  111. .SS "UINT16 bytesRequested"
  112. Bytes currently requested from TPM
  113. .SS "const uint8_t* data"
  114. Buffer for data to be written
  115. .SS "size_t data_idx"
  116. Offset in the read buffer
  117. .SS "TPML_DIGEST_VALUES digests"
  118. Digest for the event data of an extend
  119. .SS "\fBESYS_TR\fP esys_auth_handle"
  120. The ESAPI handle for the NV auth object
  121. .SS "\fBESYS_TR\fP esys_handle"
  122. The ESAPI handle for the NV object
  123. .SS "json_object* jso_event_log"
  124. logData in JSON format
  125. .SS "char* logData"
  126. The event log for NV objects of type pcr
  127. .SS "TPMI_RH_NV_INDEX maxNvIndex"
  128. Max index for search for free index
  129. .SS "size_t numBytes"
  130. The number of bytes of a ESYS request
  131. .SS "\fBIFAPI_NV\fP nv_obj"
  132. The NV Object
  133. .SS "\fBIFAPI_OBJECT\fP nv_object"
  134. Deserialized NV object
  135. .SS "enum _FAPI_STATE_NV_READ nv_read_state"
  136. The current state of NV read
  137. .SS "enum _FAPI_STATE_NV_WRITE nv_write_state"
  138. The current state of NV write
  139. .SS "char* nvPath"
  140. The name of the file for object serialization
  141. .SS "UINT16 offset"
  142. Offset in TPM memory TPM
  143. .SS "\fBIFAPI_EVENT\fP pcr_event"
  144. Event to be added to log
  145. .SS "char* policyPath"
  146. The name of the policy file
  147. .SS "TPM2B_NV_PUBLIC public"
  148. The public info of the NV object\&.
  149. .SS "\fBIFAPI_NV_TEMPLATE\fP public_templ"
  150. The template for nv creation, adjusted appropriate by the passed flags
  151. .SS "uint8_t* rdata"
  152. Buffer for data to be read
  153. .SS "size_t size"
  154. size of rdata
  155. .SS "bool skip_policy_computation"
  156. switch whether policy needs to be computed
  157. .SH "Author"
  158. .PP
  159. Generated automatically by Doxygen for tpm2-tss from the source code\&.