Lines Matching refs:ctemplate
1216 static int test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, in test_comp() argument
1230 ilen = ctemplate[i].inlen; in test_comp()
1231 ret = crypto_comp_compress(tfm, ctemplate[i].input, in test_comp()
1240 if (dlen != ctemplate[i].outlen) { in test_comp()
1248 if (memcmp(result, ctemplate[i].output, dlen)) { in test_comp()
1297 struct pcomp_testvec *ctemplate, in test_pcomp() argument
1310 res = crypto_compress_setup(tfm, ctemplate[i].params, in test_pcomp()
1311 ctemplate[i].paramsize); in test_pcomp()
1327 req.next_in = ctemplate[i].input; in test_pcomp()
1328 req.avail_in = ctemplate[i].inlen / 2; in test_pcomp()
1330 req.avail_out = ctemplate[i].outlen / 2; in test_pcomp()
1342 req.avail_in += (ctemplate[i].inlen + 1) / 2; in test_pcomp()
1354 req.avail_out += COMP_BUF_SIZE - ctemplate[i].outlen / 2; in test_pcomp()
1364 if (COMP_BUF_SIZE - req.avail_out != ctemplate[i].outlen) { in test_pcomp()
1368 ctemplate[i].outlen); in test_pcomp()
1372 if (produced != ctemplate[i].outlen) { in test_pcomp()
1375 algo, produced, ctemplate[i].outlen); in test_pcomp()
1379 if (memcmp(result, ctemplate[i].output, ctemplate[i].outlen)) { in test_pcomp()
1382 hexdump(result, ctemplate[i].outlen); in test_pcomp()