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.c111 u8 tpm_nonce[SHA256_DIGEST_SIZE]; member
676 auth->tpm_nonce, AES_KEY_BYTES + AES_BLOCK_SIZE, in tpm_buf_fill_hmac_session()
716 sha256_update(&sctx, auth->tpm_nonce, sizeof(auth->tpm_nonce)); in tpm_buf_fill_hmac_session()
806 memcpy(auth->tpm_nonce, &buf->data[offset_s], len); in tpm_buf_check_hmac_response()
831 sha256_update(&sctx, auth->tpm_nonce, sizeof(auth->tpm_nonce)); in tpm_buf_check_hmac_response()
848 + auth->passphrase_len, "CFB", auth->tpm_nonce, in tpm_buf_check_hmac_response()
911 if (tot_len != 4 + 2 + sizeof(auth->tpm_nonce)) in tpm2_parse_start_auth_session()
916 if (val != sizeof(auth->tpm_nonce)) in tpm2_parse_start_auth_session()
918 memcpy(auth->tpm_nonce, &buf->data[offset], sizeof(auth->tpm_nonce)); in tpm2_parse_start_auth_session()
920 tpm2_KDFa(auth->salt, sizeof(auth->salt), "ATH", auth->tpm_nonce, in tpm2_parse_start_auth_session()