Esys_Load.3 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. .TH "Esys_Load" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Esys_Load
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBEsys_Load_Async\fP (\fBESYS_CONTEXT\fP *esysContext, \fBESYS_TR\fP parentHandle, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_PRIVATE *inPrivate, const TPM2B_PUBLIC *inPublic)"
  13. .br
  14. .ti -1c
  15. .RI "TSS2_RC \fBEsys_Load\fP (\fBESYS_CONTEXT\fP *esysContext, \fBESYS_TR\fP parentHandle, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_PRIVATE *inPrivate, const TPM2B_PUBLIC *inPublic, \fBESYS_TR\fP *objectHandle)"
  16. .br
  17. .in -1c
  18. .SH "Detailed Description"
  19. .PP
  20. ESAPI function to invoke the TPM2_Load command either as a one-call or in an asynchronous manner\&.
  21. .SH "Function Documentation"
  22. .PP
  23. .SS "TSS2_RC Esys_Load (\fBESYS_CONTEXT\fP * esysContext, \fBESYS_TR\fP parentHandle, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_PRIVATE * inPrivate, const TPM2B_PUBLIC * inPublic, \fBESYS_TR\fP * objectHandle)"
  24. One-Call function for TPM2_Load
  25. .PP
  26. This function invokes the TPM2_Load command in a one-call variant\&. This means the function will block until the TPM response is available\&. All input parameters are const\&. The memory for non-simple output parameters is allocated by the function implementation\&.
  27. .PP
  28. \fBParameters:\fP
  29. .RS 4
  30. \fIesysContext\fP The \fBESYS_CONTEXT\fP\&.
  31. .br
  32. \fIparentHandle\fP TPM handle of parent key; shall not be a reserved handle\&.
  33. .br
  34. \fIshandle1\fP Session handle for authorization of parentHandle
  35. .br
  36. \fIshandle2\fP Second session handle\&.
  37. .br
  38. \fIshandle3\fP Third session handle\&.
  39. .br
  40. \fIinPrivate\fP The private portion of the object\&.
  41. .br
  42. \fIinPublic\fP The public portion of the object\&.
  43. .br
  44. \fIobjectHandle\fP ESYS_TR handle of ESYS resource for TPM2_HANDLE\&.
  45. .RE
  46. .PP
  47. \fBReturn values:\fP
  48. .RS 4
  49. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  50. .br
  51. \fITSS2_ESYS_RC_BAD_REFERENCE\fP if the esysContext or required input pointers or required output handle references are NULL\&.
  52. .br
  53. \fITSS2_ESYS_RC_BAD_CONTEXT\fP if esysContext corruption is detected\&.
  54. .br
  55. \fITSS2_ESYS_RC_MEMORY\fP if the ESAPI cannot allocate enough memory for internal operations or return parameters\&.
  56. .br
  57. \fITSS2_ESYS_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  58. .br
  59. \fITSS2_ESYS_RC_INSUFFICIENT_RESPONSE\fP if the TPM's response does not at least contain the tag, response length, and response code\&.
  60. .br
  61. \fITSS2_ESYS_RC_MALFORMED_RESPONSE\fP if the TPM's response is corrupted\&.
  62. .br
  63. \fITSS2_ESYS_RC_RSP_AUTH_FAILED\fP if the response HMAC from the TPM did not verify\&.
  64. .br
  65. \fITSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONS\fP if more than one session has the 'decrypt' attribute bit set\&.
  66. .br
  67. \fITSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONS\fP if more than one session has the 'encrypt' attribute bit set\&.
  68. .br
  69. \fITSS2_ESYS_RC_BAD_TR\fP if any of the ESYS_TR objects are unknown to the \fBESYS_CONTEXT\fP or are of the wrong type or if required ESYS_TR objects are ESYS_TR_NONE\&.
  70. .br
  71. \fITSS2_RCs\fP produced by lower layers of the software stack may be returned to the caller unaltered unless handled internally\&.
  72. .RE
  73. .PP
  74. .SS "TSS2_RC Esys_Load_Async (\fBESYS_CONTEXT\fP * esysContext, \fBESYS_TR\fP parentHandle, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_PRIVATE * inPrivate, const TPM2B_PUBLIC * inPublic)"
  75. Asynchronous function for TPM2_Load
  76. .PP
  77. This function invokes the TPM2_Load command in a asynchronous variant\&. This means the function will return as soon as the command has been sent downwards the stack to the TPM\&. All input parameters are const\&. In order to retrieve the TPM's response call Esys_Load_Finish\&.
  78. .PP
  79. \fBParameters:\fP
  80. .RS 4
  81. \fIesysContext\fP The \fBESYS_CONTEXT\fP\&.
  82. .br
  83. \fIparentHandle\fP TPM handle of parent key; shall not be a reserved handle\&.
  84. .br
  85. \fIshandle1\fP Session handle for authorization of parentHandle
  86. .br
  87. \fIshandle2\fP Second session handle\&.
  88. .br
  89. \fIshandle3\fP Third session handle\&.
  90. .br
  91. \fIinPrivate\fP The private portion of the object\&.
  92. .br
  93. \fIinPublic\fP The public portion of the object\&.
  94. .RE
  95. .PP
  96. \fBReturn values:\fP
  97. .RS 4
  98. \fIESYS_RC_SUCCESS\fP if the function call was a success\&.
  99. .br
  100. \fITSS2_ESYS_RC_BAD_REFERENCE\fP if the esysContext or required input pointers or required output handle references are NULL\&.
  101. .br
  102. \fITSS2_ESYS_RC_BAD_CONTEXT\fP if esysContext corruption is detected\&.
  103. .br
  104. \fITSS2_ESYS_RC_MEMORY\fP if the ESAPI cannot allocate enough memory for internal operations or return parameters\&.
  105. .br
  106. \fITSS2_RCs\fP produced by lower layers of the software stack may be returned to the caller unaltered unless handled internally\&.
  107. .br
  108. \fITSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONS\fP if more than one session has the 'decrypt' attribute bit set\&.
  109. .br
  110. \fITSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONS\fP if more than one session has the 'encrypt' attribute bit set\&.
  111. .br
  112. \fITSS2_ESYS_RC_BAD_TR\fP if any of the ESYS_TR objects are unknown to the \fBESYS_CONTEXT\fP or are of the wrong type or if required ESYS_TR objects are ESYS_TR_NONE\&.
  113. .RE
  114. .PP
  115. .SH "Author"
  116. .PP
  117. Generated automatically by Doxygen for tpm2-tss from the source code\&.