Lines Matching refs:offset_p
596 off_t offset_s = TPM_HEADER_SIZE, offset_p; in tpm_buf_fill_hmac_session() local
636 offset_p = offset_s + val; in tpm_buf_fill_hmac_session()
637 for (i = 1; offset_s < offset_p; i++) { in tpm_buf_fill_hmac_session()
660 if (offset_s != offset_p) { in tpm_buf_fill_hmac_session()
679 len = tpm_buf_read_u16(buf, &offset_p); in tpm_buf_fill_hmac_session()
681 aescfb_encrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_fill_hmac_session()
682 &buf->data[offset_p], len, in tpm_buf_fill_hmac_session()
685 offset_p -= 2; in tpm_buf_fill_hmac_session()
755 off_t offset_s, offset_p; in tpm_buf_check_hmac_response() local
791 offset_p = offset_s; in tpm_buf_check_hmac_response()
824 sha256_update(&sctx, &buf->data[offset_p], parm_len); in tpm_buf_check_hmac_response()
852 len = tpm_buf_read_u16(buf, &offset_p); in tpm_buf_check_hmac_response()
854 aescfb_decrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_check_hmac_response()
855 &buf->data[offset_p], len, in tpm_buf_check_hmac_response()