Lines Matching refs:h

45 static uint32_t do_hmac_test(TCHmacState_t h, uint32_t testnum, const uint8_t *data,  in do_hmac_test()  argument
52 (void)tc_hmac_init(h); in do_hmac_test()
53 (void)tc_hmac_update(h, data, datalen); in do_hmac_test()
54 (void)tc_hmac_final(digest, TC_SHA256_DIGEST_SIZE, h); in do_hmac_test()
85 struct tc_hmac_state_struct h; in ZTEST() local
87 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
88 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
89 result = do_hmac_test(&h, 1, data, sizeof(data), in ZTEST()
118 struct tc_hmac_state_struct h; in ZTEST() local
120 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
121 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
123 result = do_hmac_test(&h, 2, data, sizeof(data), in ZTEST()
158 struct tc_hmac_state_struct h; in ZTEST() local
160 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
161 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
163 result = do_hmac_test(&h, 3, data, sizeof(data), in ZTEST()
200 struct tc_hmac_state_struct h; in ZTEST() local
202 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
203 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
205 result = do_hmac_test(&h, 4, data, sizeof(data), in ZTEST()
234 struct tc_hmac_state_struct h; in ZTEST() local
236 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
237 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
239 result = do_hmac_test(&h, 5, data, sizeof(data), in ZTEST()
292 struct tc_hmac_state_struct h; in ZTEST() local
294 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
295 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
297 result = do_hmac_test(&h, 6, data, sizeof(data), in ZTEST()
366 struct tc_hmac_state_struct h; in ZTEST() local
368 (void)memset(&h, 0x00, sizeof(h)); in ZTEST()
369 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST()
371 result = do_hmac_test(&h, 7, data, sizeof(data), in ZTEST()