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