Searched refs:hmac_data (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/lib/ |
H A D | tpm-v1.c | 526 u8 hmac_data[DIGEST_LENGTH * 3 + 1]; in create_request_auth() local 543 sha1_finish(&hash_ctx, hmac_data); in create_request_auth() 547 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth() 556 if (pack_byte_string(hmac_data, sizeof(hmac_data), "ss", in create_request_auth() 564 sha1_hmac(auth, DIGEST_LENGTH, hmac_data, sizeof(hmac_data), in create_request_auth() 589 u8 hmac_data[DIGEST_LENGTH * 3 + 1]; in verify_response_auth() local 599 if (pack_byte_string(hmac_data, sizeof(hmac_data), "d", in verify_response_auth() 607 sha1_update(&hash_ctx, hmac_data, 4); in verify_response_auth() 613 sha1_finish(&hash_ctx, hmac_data); in verify_response_auth() 617 if (pack_byte_string(hmac_data, sizeof(hmac_data), "ssb", in verify_response_auth() [all …]
|