Fapi_GetEsysBlobs.3 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .TH "Fapi_GetEsysBlobs" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Fapi_GetEsysBlobs
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBFapi_GetEsysBlob_Async\fP (\fBFAPI_CONTEXT\fP *context, char const *path)"
  13. .br
  14. .ti -1c
  15. .RI "TSS2_RC \fBFapi_GetEsysBlob_Finish\fP (\fBFAPI_CONTEXT\fP *context, uint8_t *type, uint8_t **data, size_t *length)"
  16. .br
  17. .in -1c
  18. .SH "Detailed Description"
  19. .PP
  20. FAPI functions to invoke GetEsysBlobs either as one-call or in an asynchronous manner\&.
  21. .SH "Function Documentation"
  22. .PP
  23. .SS "Fapi_GetEsysBlob_Async (\fBFAPI_CONTEXT\fP * context, char const * path)"
  24. Asynchronous function for Fapi_GetEsysBlob
  25. .PP
  26. Prepares the reading of the blobs from keystore or TPM\&. Call Fapi_GetEsysBlob_Finish to finish the execution of this command\&.
  27. .PP
  28. \fBParameters:\fP
  29. .RS 4
  30. \fIcontext\fP The ESAPI_CONTEXT
  31. .br
  32. \fIpath\fP The path of the FAPI object\&.
  33. .RE
  34. .PP
  35. \fBReturn values:\fP
  36. .RS 4
  37. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  38. .br
  39. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context or path is NULL\&.
  40. .br
  41. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  42. .br
  43. \fITSS2_FAPI_RC_BAD_PATH\fP if path does not map to a FAPI entity\&.
  44. .br
  45. \fITSS2_FAPI_RC_NOT_DELETABLE\fP if the entity is not deletable or the path is read-only\&.
  46. .br
  47. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  48. .br
  49. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  50. .br
  51. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  52. .br
  53. \fITSS2_FAPI_RC_NO_TPM\fP if FAPI was initialized in no-TPM-mode via its config file\&.
  54. .br
  55. \fITSS2_FAPI_RC_PATH_NOT_FOUND\fP if a FAPI object path was not found during authorization\&.
  56. .br
  57. \fITSS2_FAPI_RC_KEY_NOT_FOUND\fP if a key was not found\&.
  58. .br
  59. \fITSS2_FAPI_RC_BAD_VALUE\fP if an invalid value was passed into the function\&.
  60. .br
  61. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  62. .RE
  63. .PP
  64. .SS "Fapi_GetEsysBlob_Finish (\fBFAPI_CONTEXT\fP * context, uint8_t * type, uint8_t ** data, size_t * length)"
  65. Asynchronous finish function for Fapi_GetEsysBlob
  66. .PP
  67. This function should be called after a previous Fapi_GetEsysBlob_Async\&.
  68. .PP
  69. \fBParameters:\fP
  70. .RS 4
  71. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  72. .br
  73. \fItype\fP The type of the returned blob\&.
  74. .br
  75. \fIdata\fP The binary blob which can be used to create a ESAPI object\&.
  76. .br
  77. \fIlength\fP The size of the binary blob\&.
  78. .RE
  79. .PP
  80. \fBReturn values:\fP
  81. .RS 4
  82. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  83. .br
  84. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context is NULL\&.
  85. .br
  86. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  87. .br
  88. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  89. .br
  90. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  91. .br
  92. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  93. .br
  94. \fITSS2_FAPI_RC_TRY_AGAIN\fP if the asynchronous operation is not yet complete\&. Call this function again later\&.
  95. .br
  96. \fITSS2_FAPI_RC_GENERAL_FAILURE\fP if an internal error occurred\&.
  97. .br
  98. \fITSS2_FAPI_RC_BAD_VALUE\fP if an invalid value was passed into the function\&.
  99. .br
  100. \fITSS2_FAPI_RC_PATH_NOT_FOUND\fP if a FAPI object path was not found during authorization\&.
  101. .br
  102. \fITSS2_FAPI_RC_KEY_NOT_FOUND\fP if a key was not found\&.
  103. .br
  104. \fITSS2_FAPI_RC_AUTHORIZATION_UNKNOWN\fP if a required authorization callback is not set\&.
  105. .br
  106. \fITSS2_FAPI_RC_AUTHORIZATION_FAILED\fP if the authorization attempt fails\&.
  107. .br
  108. \fITSS2_FAPI_RC_POLICY_UNKNOWN\fP if policy search for a certain policy digest was not successful\&.
  109. .br
  110. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  111. .br
  112. \fITSS2_FAPI_RC_NOT_PROVISIONED\fP FAPI was not provisioned\&.
  113. .br
  114. \fITSS2_FAPI_RC_BAD_PATH\fP if the path is used in inappropriate context or contains illegal characters\&.
  115. .RE
  116. .PP
  117. .SH "Author"
  118. .PP
  119. Generated automatically by Doxygen for tpm2-tss from the source code\&.