Home
last modified time | relevance | path

Searched refs:tpm_nonce (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/char/tpm/
H A Dtpm2-sessions.c106 u8 tpm_nonce[SHA256_DIGEST_SIZE]; member
676 auth->tpm_nonce, AES_KEY_BYTES + AES_BLOCK_SIZE, in tpm_buf_fill_hmac_session()
720 hmac_sha256_update(&hctx, auth->tpm_nonce, sizeof(auth->tpm_nonce)); in tpm_buf_fill_hmac_session()
815 memcpy(auth->tpm_nonce, &buf->data[offset_s], len); in tpm_buf_check_hmac_response()
841 hmac_sha256_update(&hctx, auth->tpm_nonce, sizeof(auth->tpm_nonce)); in tpm_buf_check_hmac_response()
856 + auth->passphrase_len, "CFB", auth->tpm_nonce, in tpm_buf_check_hmac_response()
919 if (tot_len != 4 + 2 + sizeof(auth->tpm_nonce)) in tpm2_parse_start_auth_session()
924 if (val != sizeof(auth->tpm_nonce)) in tpm2_parse_start_auth_session()
926 memcpy(auth->tpm_nonce, &buf->data[offset], sizeof(auth->tpm_nonce)); in tpm2_parse_start_auth_session()
928 tpm2_KDFa(auth->salt, sizeof(auth->salt), "ATH", auth->tpm_nonce, in tpm2_parse_start_auth_session()