Lines Matching refs:dtemplate
1185 struct comp_testvec *dtemplate, int ctcount, int dtcount) in test_comp() argument
1231 ilen = dtemplate[i].inlen; in test_comp()
1232 ret = crypto_comp_decompress(tfm, dtemplate[i].input, in test_comp()
1241 if (dlen != dtemplate[i].outlen) { in test_comp()
1249 if (memcmp(result, dtemplate[i].output, dlen)) { in test_comp()
1266 struct pcomp_testvec *dtemplate, int ctcount, in test_pcomp() argument
1359 res = crypto_decompress_setup(tfm, dtemplate[i].params, in test_pcomp()
1360 dtemplate[i].paramsize); in test_pcomp()
1376 req.next_in = dtemplate[i].input; in test_pcomp()
1377 req.avail_in = dtemplate[i].inlen / 2; in test_pcomp()
1379 req.avail_out = dtemplate[i].outlen / 2; in test_pcomp()
1391 req.avail_in += (dtemplate[i].inlen + 1) / 2; in test_pcomp()
1403 req.avail_out += COMP_BUF_SIZE - dtemplate[i].outlen / 2; in test_pcomp()
1414 if (COMP_BUF_SIZE - req.avail_out != dtemplate[i].outlen) { in test_pcomp()
1418 dtemplate[i].outlen); in test_pcomp()
1422 if (produced != dtemplate[i].outlen) { in test_pcomp()
1425 algo, produced, dtemplate[i].outlen); in test_pcomp()
1429 if (memcmp(result, dtemplate[i].output, dtemplate[i].outlen)) { in test_pcomp()
1432 hexdump(result, dtemplate[i].outlen); in test_pcomp()