Lines Matching defs:tests
49 } tests[] = {
160 for (i = 0; i < __arraycount(tests); i++) {
161 if (tests[i].key_len != SHA1_HMAC_KEYLEN)
166 cs.mackeylen = tests[i].key_len;
167 cs.mackey = __UNCONST(&tests[i].key);
170 err(1, "CIOCGSESSION test %d", tests[i].num);
176 co.len = tests[i].len;
177 co.src = __UNCONST(&tests[i].data);
181 err(1, "CIOCCRYPT test %d", tests[i].num);
183 if (memcmp(co.mac, &tests[i].mac, sizeof(tests[i].mac)))
184 errx(1, "verification failed test %d", tests[i].num);
188 err(1, "CIOCFSESSION test %d", tests[i].num);