Lines Matching defs:desc
106 int (*test)(const struct alg_test_desc *desc, const char *driver,
1298 static int alg_test_aead(const struct alg_test_desc *desc, const char *driver,
1311 if (desc->suite.aead.enc.vecs) {
1312 err = test_aead(tfm, ENCRYPT, desc->suite.aead.enc.vecs,
1313 desc->suite.aead.enc.count);
1318 if (!err && desc->suite.aead.dec.vecs)
1319 err = test_aead(tfm, DECRYPT, desc->suite.aead.dec.vecs,
1320 desc->suite.aead.dec.count);
1327 static int alg_test_cipher(const struct alg_test_desc *desc,
1340 if (desc->suite.cipher.enc.vecs) {
1341 err = test_cipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs,
1342 desc->suite.cipher.enc.count);
1347 if (desc->suite.cipher.dec.vecs)
1348 err = test_cipher(tfm, DECRYPT, desc->suite.cipher.dec.vecs,
1349 desc->suite.cipher.dec.count);
1356 static int alg_test_skcipher(const struct alg_test_desc *desc,
1369 if (desc->suite.cipher.enc.vecs) {
1370 err = test_skcipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs,
1371 desc->suite.cipher.enc.count);
1376 if (desc->suite.cipher.dec.vecs)
1377 err = test_skcipher(tfm, DECRYPT, desc->suite.cipher.dec.vecs,
1378 desc->suite.cipher.dec.count);
1385 static int alg_test_comp(const struct alg_test_desc *desc, const char *driver,
1398 err = test_comp(tfm, desc->suite.comp.comp.vecs,
1399 desc->suite.comp.decomp.vecs,
1400 desc->suite.comp.comp.count,
1401 desc->suite.comp.decomp.count);
1407 static int alg_test_pcomp(const struct alg_test_desc *desc, const char *driver,
1420 err = test_pcomp(tfm, desc->suite.pcomp.comp.vecs,
1421 desc->suite.pcomp.decomp.vecs,
1422 desc->suite.pcomp.comp.count,
1423 desc->suite.pcomp.decomp.count);
1429 static int alg_test_hash(const struct alg_test_desc *desc, const char *driver,
1442 err = test_hash(tfm, desc->suite.hash.vecs,
1443 desc->suite.hash.count, true);
1445 err = test_hash(tfm, desc->suite.hash.vecs,
1446 desc->suite.hash.count, false);
1452 static int alg_test_crc32c(const struct alg_test_desc *desc,
1459 err = alg_test_hash(desc, driver, type, mask);
1501 static int alg_test_cprng(const struct alg_test_desc *desc, const char *driver,
1514 err = test_cprng(rng, desc->suite.cprng.vecs, desc->suite.cprng.count);
1521 static int alg_test_null(const struct alg_test_desc *desc,