Lines Matching refs:h
538 struct tc_hmac_state_struct h; in hkdf_extract() local
539 memset(&h, 0x00, sizeof(h)); in hkdf_extract()
542 TRY_EXPECT(tc_hmac_set_key(&h, zero_salt, 32), 1); in hkdf_extract()
544 TRY_EXPECT(tc_hmac_set_key(&h, salt->ptr, salt->len), 1); in hkdf_extract()
546 TRY_EXPECT(tc_hmac_init(&h), 1); in hkdf_extract()
547 TRY_EXPECT(tc_hmac_update(&h, ikm->ptr, ikm->len), 1); in hkdf_extract()
548 TRY_EXPECT(tc_hmac_final(out, TC_SHA256_DIGEST_SIZE, &h), 1); in hkdf_extract()
599 struct tc_hmac_state_struct h; in hkdf_expand() local
601 memset(&h, 0x00, sizeof(h)); in hkdf_expand()
602 TRY_EXPECT(tc_hmac_set_key(&h, prk->ptr, prk->len), 1); in hkdf_expand()
603 tc_hmac_init(&h); in hkdf_expand()
605 TRY_EXPECT(tc_hmac_update(&h, t, 32), 1); in hkdf_expand()
607 TRY_EXPECT(tc_hmac_update(&h, info->ptr, info->len), 1); in hkdf_expand()
608 TRY_EXPECT(tc_hmac_update(&h, &i, 1), 1); in hkdf_expand()
609 TRY_EXPECT(tc_hmac_final(t, TC_SHA256_DIGEST_SIZE, &h), 1); in hkdf_expand()