Lines Matching refs:handle

52  * tpm_buf_append_name() to add a handle to the buffer.  This must be
87 u32 *handle, u8 *name);
91 * session handle, nonces, session key and auth) from use to use it is
95 u32 handle;
144 * handle, but they are part of the session by name, which
411 tpm_buf_append_u32(buf, auth->handle);
468 * would happen if someone added a handle via
472 u32 handle = tpm_buf_read_u32(buf, &offset_s);
474 if (auth->name_h[i] != handle) {
475 dev_err(&chip->dev, "TPM: handle %d wrong for name\n",
485 u32 handle = tpm_buf_read_u32(buf, &offset_s);
496 if (handle == auth->handle && auth->attrs == a) {
538 /* add the handle names */
594 static int tpm2_read_public(struct tpm_chip *chip, u32 handle, char *name)
603 tpm_buf_append_u32(&buf, handle);
614 * tpm_buf_append_name() - add a handle area to the buffer
617 * @handle: The handle to be appended
618 * @name: The name of the handle (may be NULL)
622 * the actual 4 byte handle or an empty buf (in these cases @name
629 * on the handle to obtain the name.
636 u32 handle, u8 *name)
638 enum tpm2_mso_type mso = tpm2_handle_mso(handle);
649 tpm_buf_append_u32(buf, handle);
656 tpm2_read_public(chip, handle, auth->name[slot]);
662 auth->name_h[slot] = handle;
804 tpm2_flush_context(chip, auth->handle);
827 tpm2_flush_context(chip, chip->auth->handle);
843 /* should have handle plus nonce */
847 auth->handle = tpm_buf_read_u32(buf, &offset);
920 /* salt key handle */
922 /* bind key handle */
979 * @handle: pointer to be filled in with the return handle of the primary
989 u32 *handle, u32 hierarchy, u8 *name)
998 if (handle)
999 *handle = keyhandle;
1149 * @hierarchy: The hierarchy handle to create under
1150 * @handle: The returned volatile handle on success
1166 u32 *handle, u8 *name)
1229 /* primary handle */
1256 rc = tpm2_parse_create_primary(chip, &buf, handle, hierarchy,