Lines Matching refs:ctemplate
1184 static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, in test_comp() argument
1198 ilen = ctemplate[i].inlen; in test_comp()
1199 ret = crypto_comp_compress(tfm, ctemplate[i].input, in test_comp()
1208 if (dlen != ctemplate[i].outlen) { in test_comp()
1216 if (memcmp(result, ctemplate[i].output, dlen)) { in test_comp()
1265 struct pcomp_testvec *ctemplate, in test_pcomp() argument
1278 res = crypto_compress_setup(tfm, ctemplate[i].params, in test_pcomp()
1279 ctemplate[i].paramsize); in test_pcomp()
1295 req.next_in = ctemplate[i].input; in test_pcomp()
1296 req.avail_in = ctemplate[i].inlen / 2; in test_pcomp()
1298 req.avail_out = ctemplate[i].outlen / 2; in test_pcomp()
1310 req.avail_in += (ctemplate[i].inlen + 1) / 2; in test_pcomp()
1322 req.avail_out += COMP_BUF_SIZE - ctemplate[i].outlen / 2; in test_pcomp()
1332 if (COMP_BUF_SIZE - req.avail_out != ctemplate[i].outlen) { in test_pcomp()
1336 ctemplate[i].outlen); in test_pcomp()
1340 if (produced != ctemplate[i].outlen) { in test_pcomp()
1343 algo, produced, ctemplate[i].outlen); in test_pcomp()
1347 if (memcmp(result, ctemplate[i].output, ctemplate[i].outlen)) { in test_pcomp()
1350 hexdump(result, ctemplate[i].outlen); in test_pcomp()