Lines Matching refs:enc
82 } enc, dec; member
89 } enc, dec; member
427 static int __test_aead(struct crypto_aead *tfm, int enc, in __test_aead() argument
474 if (enc == ENCRYPT) in __test_aead()
550 template[i].ilen + (enc ? authsize : 0)); in __test_aead()
560 template[i].rlen + (enc ? 0 : authsize)); in __test_aead()
568 ret = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req); in __test_aead()
690 if (k == template[i].np - 1 && enc) in __test_aead()
705 if (enc) { in __test_aead()
725 ret = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req); in __test_aead()
767 n += enc ? authsize : -authsize; in __test_aead()
777 if (k == template[i].np - 1 && !enc) { in __test_aead()
817 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead() argument
824 ret = __test_aead(tfm, enc, template, tcount, false, 0); in test_aead()
829 ret = __test_aead(tfm, enc, template, tcount, true, 0); in test_aead()
834 ret = __test_aead(tfm, enc, template, tcount, true, 1); in test_aead()
841 ret = __test_aead(tfm, enc, template, tcount, true, in test_aead()
850 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher() argument
864 if (enc == ENCRYPT) in test_cipher()
899 if (enc) in test_cipher()
925 static int __test_skcipher(struct crypto_skcipher *tfm, int enc, in __test_skcipher() argument
956 if (enc == ENCRYPT) in __test_skcipher()
1015 ret = enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1120 ret = enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1183 static int test_skcipher(struct crypto_skcipher *tfm, int enc, in test_skcipher() argument
1190 ret = __test_skcipher(tfm, enc, template, tcount, false, 0); in test_skcipher()
1195 ret = __test_skcipher(tfm, enc, template, tcount, true, 0); in test_skcipher()
1200 ret = __test_skcipher(tfm, enc, template, tcount, true, 1); in test_skcipher()
1207 ret = __test_skcipher(tfm, enc, template, tcount, true, in test_skcipher()
1547 if (desc->suite.aead.enc.vecs) { in alg_test_aead()
1548 err = test_aead(tfm, ENCRYPT, desc->suite.aead.enc.vecs, in alg_test_aead()
1549 desc->suite.aead.enc.count); in alg_test_aead()
1576 if (desc->suite.cipher.enc.vecs) { in alg_test_cipher()
1577 err = test_cipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, in alg_test_cipher()
1578 desc->suite.cipher.enc.count); in alg_test_cipher()
1605 if (desc->suite.cipher.enc.vecs) { in alg_test_skcipher()
1606 err = test_skcipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, in alg_test_skcipher()
1607 desc->suite.cipher.enc.count); in alg_test_skcipher()
2113 .enc = {
2128 .enc = {
2141 .enc = {
2154 .enc = {
2167 .enc = {
2186 .enc = {
2199 .enc = {
2212 .enc = {
2225 .enc = {
2238 .enc = {
2251 .enc = {
2264 .enc = {
2277 .enc = {
2290 .enc = {
2303 .enc = {
2317 .enc = {
2332 .enc = {
2347 .enc = {
2362 .enc = {
2377 .enc = {
2392 .enc = {
2407 .enc = {
2423 .enc = {
2438 .enc = {
2453 .enc = {
2469 .enc = {
2484 .enc = {
2601 .enc = {
2616 .enc = {
2631 .enc = {
2646 .enc = {
2661 .enc = {
2676 .enc = {
2691 .enc = {
2706 .enc = {
2721 .enc = {
2736 .enc = {
2921 .enc = {
2936 .enc = {
2951 .enc = {
2966 .enc = {
2981 .enc = {
2996 .enc = {
3011 .enc = {
3029 .enc = {
3045 .enc = {
3060 .enc = {
3075 .enc = {
3090 .enc = {
3105 .enc = {
3120 .enc = {
3135 .enc = {
3150 .enc = {
3165 .enc = {
3180 .enc = {
3196 .enc = {
3312 .enc = {
3327 .enc = {
3342 .enc = {
3357 .enc = {
3372 .enc = {
3387 .enc = {
3478 .enc = {
3493 .enc = {
3518 .enc = {
3534 .enc = {
3550 .enc = {
3565 .enc = {
3580 .enc = {
3595 .enc = {
3656 .enc = {
3790 .enc = {
3805 .enc = {
3820 .enc = {
3835 .enc = {
3850 .enc = {