Lines Matching full:suite
155 } suite; member
2014 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash()
2015 unsigned int tcount = desc->suite.hash.count; in alg_test_hash()
2335 const struct aead_test_suite *suite, in generate_aead_message() argument
2348 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message()
2386 mutate_aead_message(rng, vec, suite->aad_iv, ivsize); in generate_aead_message()
2389 if (suite->einval_allowed) in generate_aead_message()
2403 const struct aead_test_suite *suite, in generate_random_aead_testvec() argument
2452 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec()
2465 &ctx->test_desc->suite.aead, in try_to_generate_inauthentic_testvec()
2587 &ctx->test_desc->suite.aead, in test_aead_vs_generic_impl()
2638 for (i = 0; i < test_desc->suite.aead.count; i++) in test_aead_extra()
2640 test_desc->suite.aead.vecs[i].klen); in test_aead_extra()
2676 static int test_aead(int enc, const struct aead_test_suite *suite, in test_aead() argument
2683 for (i = 0; i < suite->count; i++) { in test_aead()
2684 err = test_aead_vec(enc, &suite->vecs[i], i, req, tsgls); in test_aead()
2695 const struct aead_test_suite *suite = &desc->suite.aead; in alg_test_aead() local
2701 if (suite->count <= 0) { in alg_test_aead()
2702 pr_err("alg: aead: empty test suite for %s\n", driver); in alg_test_aead()
2732 err = test_aead(ENCRYPT, suite, req, tsgls); in alg_test_aead()
2736 err = test_aead(DECRYPT, suite, req, tsgls); in alg_test_aead()
3255 static int test_skcipher(int enc, const struct cipher_test_suite *suite, in test_skcipher() argument
3262 for (i = 0; i < suite->count; i++) { in test_skcipher()
3263 err = test_skcipher_vec(enc, &suite->vecs[i], i, req, tsgls); in test_skcipher()
3274 const struct cipher_test_suite *suite = &desc->suite.cipher; in alg_test_skcipher() local
3280 if (suite->count <= 0) { in alg_test_skcipher()
3281 pr_err("alg: skcipher: empty test suite for %s\n", driver); in alg_test_skcipher()
3311 err = test_skcipher(ENCRYPT, suite, req, tsgls); in alg_test_skcipher()
3315 err = test_skcipher(DECRYPT, suite, req, tsgls); in alg_test_skcipher()
3696 const struct cipher_test_suite *suite = &desc->suite.cipher; in alg_test_cipher() local
3709 err = test_cipher(tfm, ENCRYPT, suite->vecs, suite->count); in alg_test_cipher()
3711 err = test_cipher(tfm, DECRYPT, suite->vecs, suite->count); in alg_test_cipher()
3734 err = test_acomp(acomp, desc->suite.comp.comp.vecs, in alg_test_comp()
3735 desc->suite.comp.decomp.vecs, in alg_test_comp()
3736 desc->suite.comp.comp.count, in alg_test_comp()
3737 desc->suite.comp.decomp.count); in alg_test_comp()
3749 err = test_comp(comp, desc->suite.comp.comp.vecs, in alg_test_comp()
3750 desc->suite.comp.decomp.vecs, in alg_test_comp()
3751 desc->suite.comp.comp.count, in alg_test_comp()
3752 desc->suite.comp.decomp.count); in alg_test_comp()
3827 err = test_cprng(rng, desc->suite.cprng.vecs, desc->suite.cprng.count); in alg_test_cprng()
3911 const struct drbg_testvec *template = desc->suite.drbg.vecs; in alg_test_drbg()
3912 unsigned int tcount = desc->suite.drbg.count; in alg_test_drbg()
4102 if (desc->suite.kpp.vecs) in alg_test_kpp()
4103 err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, in alg_test_kpp()
4104 desc->suite.kpp.count); in alg_test_kpp()
4332 if (desc->suite.akcipher.vecs) in alg_test_akcipher()
4333 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
4334 desc->suite.akcipher.count); in alg_test_akcipher()
4355 .suite = {
4362 .suite = {
4368 .suite = {
4374 .suite = {
4380 .suite = {
4387 .suite = {
4393 .suite = {
4399 .suite = {
4409 .suite = {
4419 .suite = {
4425 .suite = {
4432 .suite = {
4438 .suite = {
4444 .suite = {
4458 .suite = {
4464 .suite = {
4479 .suite = {
4485 .suite = {
4491 .suite = {
4506 .suite = {
4513 .suite = {
4520 .suite = {
4527 .suite = {
4534 .suite = {
4540 .suite = {
4546 .suite = {
4552 .suite = {
4558 .suite = {
4564 .suite = {
4570 .suite = {
4576 .suite = {
4582 .suite = {
4601 .suite = {
4607 .suite = {
4613 .suite = {
4621 .suite = {
4628 .suite = {
4634 .suite = {
4642 .suite = {
4652 .suite = {
4661 .suite = {
4668 .suite = {
4674 .suite = {
4680 .suite = {
4686 .suite = {
4696 .suite = {
4703 .suite = {
4710 .suite = {
4717 .suite = {
4724 .suite = {
4730 .suite = {
4736 .suite = {
4742 .suite = {
4748 .suite = {
4754 .suite = {
4760 .suite = {
4766 .suite = {
4786 .suite = {
4792 .suite = {
4798 .suite = {
4806 .suite = {
4814 .suite = {
4827 .suite = {
4833 .suite = {
4840 .suite = {
4850 .suite = {
4859 .suite = {
4869 .suite = {
4876 .suite = {
4883 .suite = {
4890 .suite = {
4904 .suite = {
4911 .suite = {
4926 .suite = {
4942 .suite = {
4957 .suite = {
4972 .suite = {
4978 .suite = {
4985 .suite = {
4991 .suite = {
4997 .suite = {
5003 .suite = {
5009 .suite = {
5015 .suite = {
5025 .suite = {
5031 .suite = {
5037 .suite = {
5046 .suite = {
5059 .suite = {
5065 .suite = {
5071 .suite = {
5077 .suite = {
5083 .suite = {
5089 .suite = {
5095 .suite = {
5103 .suite = {
5110 .suite = {
5117 .suite = {
5124 .suite = {
5130 .suite = {
5137 .suite = {
5144 .suite = {
5151 .suite = {
5157 .suite = {
5164 .suite = {
5171 .suite = {
5179 .suite = {
5186 .suite = {
5193 .suite = {
5200 .suite = {
5207 .suite = {
5216 .suite = {
5223 .suite = {
5230 .suite = {
5236 .suite = {
5244 .suite = {
5250 .suite = {
5256 .suite = {
5263 .suite = {
5270 .suite = {
5277 .suite = {
5284 .suite = {
5291 .suite = {
5298 .suite = {
5305 .suite = {
5312 .suite = {
5319 .suite = {
5325 .suite = {
5331 .suite = {
5337 .suite = {
5348 .suite = {
5355 .suite = {
5362 .suite = {
5369 .suite = {
5376 .suite = {
5383 .suite = {
5390 .suite = {
5400 .suite = {
5410 .suite = {
5420 .suite = {
5429 .suite = {
5435 .suite = {
5441 .suite = {
5447 .suite = {
5453 .suite = {
5464 .suite = {
5490 .suite = {
5496 .suite = {
5503 .suite = {
5509 .suite = {
5517 .suite = {
5529 .suite = {
5540 .suite = {
5550 .suite = {
5556 .suite = {
5566 .suite = {
5573 .suite = {
5580 .suite = {
5587 .suite = {
5594 .suite = {
5601 .suite = {
5608 .suite = {
5615 .suite = {
5622 .suite = {
5629 .suite = {
5636 .suite = {
5642 .suite = {
5648 .suite = {
5654 .suite = {
5660 .suite = {
5666 .suite = {
5672 .suite = {
5678 .suite = {
5684 .suite = {
5690 .suite = {
5696 .suite = {
5702 .suite = {
5708 .suite = {
5716 .suite = {
5723 .suite = {
5730 .suite = {
5744 .suite = {
5751 .suite = {
5758 .suite = {
5766 .suite = {
5774 .suite = {
5781 .suite = {