Lines Matching full:tests
40 } tests[] = {
340 for (x = 0; x < (int)(sizeof(tests)/sizeof(tests[0])); x++) {
342 if ((err = gcm_memory(idx, tests[x].K, tests[x].keylen,
343 tests[x].IV, tests[x].IVlen,
344 tests[x].A, tests[x].alen,
345 (unsigned char*)tests[x].P, tests[x].ptlen,
350 if (XMEMCMP(out[0], tests[x].C, tests[x].ptlen)) {
353 for (y = 0; y < tests[x].ptlen; y++) {
361 if (XMEMCMP(T[0], tests[x].T, 16)) {
373 if ((err = gcm_memory(idx, tests[x].K, tests[x].keylen,
374 tests[x].IV, tests[x].IVlen,
375 tests[x].A, tests[x].alen,
376 out[1], tests[x].ptlen,
381 if (XMEMCMP(out[1], tests[x].P, tests[x].ptlen)) {
384 for (y = 0; y < tests[x].ptlen; y++) {
392 if (XMEMCMP(T[1], tests[x].T, 16)) {