Lines Matching refs:test

41 } test[8] = {  variable
92 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); in test_hmac_md5()
93 ebcdic2ascii(test[1].data, test[1].data, test[1].data_len); in test_hmac_md5()
94 ebcdic2ascii(test[2].key, test[2].key, test[2].key_len); in test_hmac_md5()
95 ebcdic2ascii(test[2].data, test[2].data, test[2].data_len); in test_hmac_md5()
99 test[idx].key, test[idx].key_len, in test_hmac_md5()
100 test[idx].data, test[idx].data_len, NULL, NULL), in test_hmac_md5()
103 return TEST_ptr(p) && TEST_str_eq(p, test[idx].digest); in test_hmac_md5()
116 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad()
118 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))) in test_hmac_bad()
142 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
143 || !TEST_false(HMAC_Init_ex(ctx, test[4].key, -1, EVP_sha1(), NULL))) in test_hmac_run()
146 if (!TEST_true(HMAC_Init_ex(ctx, test[4].key, test[4].key_len, EVP_sha1(), NULL)) in test_hmac_run()
147 || !TEST_true(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
152 if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest)) in test_hmac_run()
158 if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL)) in test_hmac_run()
160 || !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len)) in test_hmac_run()
165 if (!TEST_ptr(p) || !TEST_str_eq(p, test[5].digest)) in test_hmac_run()
168 if (!TEST_true(HMAC_Init_ex(ctx, test[6].key, test[6].key_len, NULL, NULL)) in test_hmac_run()
169 || !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len)) in test_hmac_run()
173 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
178 || !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len)) in test_hmac_run()
182 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
190 || !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len)) in test_hmac_run()
194 if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest)) in test_hmac_run()
209 p = pt(HMAC(EVP_sha1(), NULL, 0, test[4].data, test[4].data_len, in test_hmac_single_shot()
211 if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest)) in test_hmac_single_shot()
231 if (!TEST_true(HMAC_Init_ex(ctx, test[7].key, test[7].key_len, EVP_sha1(), NULL)) in test_hmac_copy()
232 || !TEST_true(HMAC_Update(ctx, test[7].data, test[7].data_len)) in test_hmac_copy()
238 if (!TEST_ptr(p) || !TEST_str_eq(p, test[7].digest)) in test_hmac_copy()