Lines Matching defs:tests
49 } tests[] = {
150 for (i = 0; i < __arraycount(tests); i++) {
151 if (tests[i].key_len != MD5_HMAC_KEYLEN)
156 cs.mackeylen = tests[i].key_len;
157 cs.mackey = __UNCONST(&tests[i].key);
160 err(1, "CIOCGSESSION test %d", tests[i].num);
166 co.len = tests[i].len;
167 co.src = __UNCONST(&tests[i].data);
171 err(1, "CIOCCRYPT test %d", tests[i].num);
173 if (memcmp(co.mac, tests[i].mac, sizeof(tests[i].mac)))
174 errx(1, "verification failed test %d", tests[i].num);
178 err(1, "CIOCFSESSION test %d", tests[i].num);