Lines Matching refs:tests
36 } tests[] = {
129 for (x = 0; x < (sizeof(tests)/sizeof(tests[0])); x++) {
130 taglen = tests[x].taglen;
131 if ((err = cipher_descriptor[idx].setup(tests[x].key, 16, 0, &skey)) != CRYPT_OK) {
136 tests[x].key, 16,
138 tests[x].nonce, tests[x].noncelen,
139 tests[x].header, tests[x].headerlen,
140 (unsigned char*)tests[x].pt, tests[x].ptlen,
146 if (XMEMCMP(buf, tests[x].ct, tests[x].ptlen)) {
149 if (XMEMCMP(tag, tests[x].tag, tests[x].taglen)) {
154 tests[x].key, 16,
156 tests[x].nonce, tests[x].noncelen,
157 tests[x].header, tests[x].headerlen,
158 buf2, tests[x].ptlen,
164 if (XMEMCMP(buf2, tests[x].pt, tests[x].ptlen)) {
167 if (XMEMCMP(tag2, tests[x].tag, tests[x].taglen)) {