Lines Matching refs:dtemplate
1217 struct comp_testvec *dtemplate, int ctcount, int dtcount) in test_comp() argument
1263 ilen = dtemplate[i].inlen; in test_comp()
1264 ret = crypto_comp_decompress(tfm, dtemplate[i].input, in test_comp()
1273 if (dlen != dtemplate[i].outlen) { in test_comp()
1281 if (memcmp(result, dtemplate[i].output, dlen)) { in test_comp()
1298 struct pcomp_testvec *dtemplate, int ctcount, in test_pcomp() argument
1391 res = crypto_decompress_setup(tfm, dtemplate[i].params, in test_pcomp()
1392 dtemplate[i].paramsize); in test_pcomp()
1408 req.next_in = dtemplate[i].input; in test_pcomp()
1409 req.avail_in = dtemplate[i].inlen / 2; in test_pcomp()
1411 req.avail_out = dtemplate[i].outlen / 2; in test_pcomp()
1423 req.avail_in += (dtemplate[i].inlen + 1) / 2; in test_pcomp()
1435 req.avail_out += COMP_BUF_SIZE - dtemplate[i].outlen / 2; in test_pcomp()
1446 if (COMP_BUF_SIZE - req.avail_out != dtemplate[i].outlen) { in test_pcomp()
1450 dtemplate[i].outlen); in test_pcomp()
1454 if (produced != dtemplate[i].outlen) { in test_pcomp()
1457 algo, produced, dtemplate[i].outlen); in test_pcomp()
1461 if (memcmp(result, dtemplate[i].output, dtemplate[i].outlen)) { in test_pcomp()
1464 hexdump(result, dtemplate[i].outlen); in test_pcomp()