Esys_StartAuthSession.3 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .TH "Esys_StartAuthSession" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Esys_StartAuthSession
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBEsys_StartAuthSession_Async\fP (\fBESYS_CONTEXT\fP *esysContext, \fBESYS_TR\fP tpmKey, \fBESYS_TR\fP bind, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_NONCE *nonceCaller, TPM2_SE sessionType, const TPMT_SYM_DEF *symmetric, TPMI_ALG_HASH authHash)"
  13. .br
  14. .ti -1c
  15. .RI "TSS2_RC \fBEsys_StartAuthSession\fP (\fBESYS_CONTEXT\fP *esysContext, \fBESYS_TR\fP tpmKey, \fBESYS_TR\fP bind, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_NONCE *nonceCaller, TPM2_SE sessionType, const TPMT_SYM_DEF *symmetric, TPMI_ALG_HASH authHash, \fBESYS_TR\fP *sessionHandle)"
  16. .br
  17. .in -1c
  18. .SH "Detailed Description"
  19. .PP
  20. ESAPI function to invoke the TPM2_StartAuthSession command either as a one-call or in an asynchronous manner\&.
  21. .SH "Function Documentation"
  22. .PP
  23. .SS "TSS2_RC Esys_StartAuthSession (\fBESYS_CONTEXT\fP * esysContext, \fBESYS_TR\fP tpmKey, \fBESYS_TR\fP bind, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_NONCE * nonceCaller, TPM2_SE sessionType, const TPMT_SYM_DEF * symmetric, TPMI_ALG_HASH authHash, \fBESYS_TR\fP * sessionHandle)"
  24. One-Call function for TPM2_StartAuthSession
  25. .PP
  26. This function invokes the TPM2_StartAuthSession 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. \fItpmKey\fP Handle of a loaded decrypt key used to encrypt salt\&.
  33. .br
  34. \fIbind\fP Entity providing the authValue\&.
  35. .br
  36. \fIshandle1\fP First session handle\&.
  37. .br
  38. \fIshandle2\fP Second session handle\&.
  39. .br
  40. \fIshandle3\fP Third session handle\&.
  41. .br
  42. \fInonceCaller\fP Initial nonceCaller, sets nonceTPM size for the session\&.
  43. .br
  44. \fIsessionType\fP Indicates the type of the session; simple HMAC or policy (including a trial policy)\&.
  45. .br
  46. \fIsymmetric\fP The algorithm and key size for parameter encryption\&.
  47. .br
  48. \fIauthHash\fP Hash algorithm to use for the session\&.
  49. .br
  50. \fIsessionHandle\fP ESYS_TR handle of ESYS resource for TPMI_SH_AUTH_SESSION\&.
  51. .RE
  52. .PP
  53. \fBReturn values:\fP
  54. .RS 4
  55. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  56. .br
  57. \fITSS2_ESYS_RC_BAD_REFERENCE\fP if the esysContext or required input pointers or required output handle references are NULL\&.
  58. .br
  59. \fITSS2_ESYS_RC_BAD_CONTEXT\fP if esysContext corruption is detected\&.
  60. .br
  61. \fITSS2_ESYS_RC_MEMORY\fP if the ESAPI cannot allocate enough memory for internal operations or return parameters\&.
  62. .br
  63. \fITSS2_ESYS_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  64. .br
  65. \fITSS2_ESYS_RC_INSUFFICIENT_RESPONSE\fP if the TPM's response does not at least contain the tag, response length, and response code\&.
  66. .br
  67. \fITSS2_ESYS_RC_MALFORMED_RESPONSE\fP if the TPM's response is corrupted\&.
  68. .br
  69. \fITSS2_ESYS_RC_RSP_AUTH_FAILED\fP if the response HMAC from the TPM did not verify\&.
  70. .br
  71. \fITSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONS\fP if more than one session has the 'decrypt' attribute bit set\&.
  72. .br
  73. \fITSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONS\fP if more than one session has the 'encrypt' attribute bit set\&.
  74. .br
  75. \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\&.
  76. .br
  77. \fITSS2_RCs\fP produced by lower layers of the software stack may be returned to the caller unaltered unless handled internally\&.
  78. .RE
  79. .PP
  80. .SS "TSS2_RC Esys_StartAuthSession_Async (\fBESYS_CONTEXT\fP * esysContext, \fBESYS_TR\fP tpmKey, \fBESYS_TR\fP bind, \fBESYS_TR\fP shandle1, \fBESYS_TR\fP shandle2, \fBESYS_TR\fP shandle3, const TPM2B_NONCE * nonceCaller, TPM2_SE sessionType, const TPMT_SYM_DEF * symmetric, TPMI_ALG_HASH authHash)"
  81. Asynchronous function for TPM2_StartAuthSession
  82. .PP
  83. This function invokes the TPM2_StartAuthSession 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_StartAuthSession_Finish\&.
  84. .PP
  85. \fBParameters:\fP
  86. .RS 4
  87. \fIesysContext\fP The \fBESYS_CONTEXT\fP\&.
  88. .br
  89. \fItpmKey\fP Handle of a loaded decrypt key used to encrypt salt\&.
  90. .br
  91. \fIbind\fP Entity providing the authValue\&.
  92. .br
  93. \fIshandle1\fP First session handle\&.
  94. .br
  95. \fIshandle2\fP Second session handle\&.
  96. .br
  97. \fIshandle3\fP Third session handle\&.
  98. .br
  99. \fInonceCaller\fP Initial nonceCaller, sets nonceTPM size for the session\&.
  100. .br
  101. \fIsessionType\fP Indicates the type of the session; simple HMAC or policy (including a trial policy)\&.
  102. .br
  103. \fIsymmetric\fP The algorithm and key size for parameter encryption\&.
  104. .br
  105. \fIauthHash\fP Hash algorithm to use for the session\&.
  106. .RE
  107. .PP
  108. \fBReturn values:\fP
  109. .RS 4
  110. \fIESYS_RC_SUCCESS\fP if the function call was a success\&.
  111. .br
  112. \fITSS2_ESYS_RC_BAD_REFERENCE\fP if the esysContext or required input pointers or required output handle references are NULL\&.
  113. .br
  114. \fITSS2_ESYS_RC_BAD_CONTEXT\fP if esysContext corruption is detected\&.
  115. .br
  116. \fITSS2_ESYS_RC_MEMORY\fP if the ESAPI cannot allocate enough memory for internal operations or return parameters\&.
  117. .br
  118. \fITSS2_RCs\fP produced by lower layers of the software stack may be returned to the caller unaltered unless handled internally\&.
  119. .br
  120. \fITSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONS\fP if more than one session has the 'decrypt' attribute bit set\&.
  121. .br
  122. \fITSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONS\fP if more than one session has the 'encrypt' attribute bit set\&.
  123. .br
  124. \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\&.
  125. .RE
  126. .PP
  127. .SH "Author"
  128. .PP
  129. Generated automatically by Doxygen for tpm2-tss from the source code\&.