Lines Matching refs:enc

83 	} enc, dec;  member
604 static int __test_aead(struct crypto_aead *tfm, int enc, in __test_aead() argument
652 if (enc == ENCRYPT) in __test_aead()
729 template[i].ilen + (enc ? authsize : 0)); in __test_aead()
739 template[i].rlen + (enc ? 0 : authsize)); in __test_aead()
747 ret = crypto_wait_req(enc ? crypto_aead_encrypt(req) in __test_aead()
863 if (k == template[i].np - 1 && enc) in __test_aead()
878 if (enc) { in __test_aead()
898 ret = crypto_wait_req(enc ? crypto_aead_encrypt(req) in __test_aead()
934 n += enc ? authsize : -authsize; in __test_aead()
944 if (k == template[i].np - 1 && !enc) { in __test_aead()
984 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead() argument
991 ret = __test_aead(tfm, enc, template, tcount, false, 0); in test_aead()
996 ret = __test_aead(tfm, enc, template, tcount, true, 0); in test_aead()
1001 ret = __test_aead(tfm, enc, template, tcount, true, 1); in test_aead()
1008 ret = __test_aead(tfm, enc, template, tcount, true, in test_aead()
1017 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher() argument
1033 if (enc == ENCRYPT) in test_cipher()
1046 input = enc ? template[i].ptext : template[i].ctext; in test_cipher()
1047 result = enc ? template[i].ctext : template[i].ptext; in test_cipher()
1073 if (enc) in test_cipher()
1099 static int __test_skcipher(struct crypto_skcipher *tfm, int enc, in __test_skcipher() argument
1132 if (enc == ENCRYPT) in __test_skcipher()
1157 if (template[i].iv && !(template[i].generates_iv && enc)) in __test_skcipher()
1162 input = enc ? template[i].ptext : template[i].ctext; in __test_skcipher()
1163 result = enc ? template[i].ctext : template[i].ptext; in __test_skcipher()
1196 ret = crypto_wait_req(enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1214 if (template[i].generates_iv && enc && in __test_skcipher()
1236 if (template[i].iv && !(template[i].generates_iv && enc)) in __test_skcipher()
1241 input = enc ? template[i].ptext : template[i].ctext; in __test_skcipher()
1242 result = enc ? template[i].ctext : template[i].ptext; in __test_skcipher()
1294 ret = crypto_wait_req(enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1345 static int test_skcipher(struct crypto_skcipher *tfm, int enc, in test_skcipher() argument
1353 ret = __test_skcipher(tfm, enc, template, tcount, false, 0); in test_skcipher()
1358 ret = __test_skcipher(tfm, enc, template, tcount, true, 0); in test_skcipher()
1363 ret = __test_skcipher(tfm, enc, template, tcount, true, 1); in test_skcipher()
1370 ret = __test_skcipher(tfm, enc, template, tcount, true, in test_skcipher()
1729 if (desc->suite.aead.enc.vecs) { in alg_test_aead()
1730 err = test_aead(tfm, ENCRYPT, desc->suite.aead.enc.vecs, in alg_test_aead()
1731 desc->suite.aead.enc.count); in alg_test_aead()
2411 .enc = __VECS(aegis128_enc_tv_template),
2420 .enc = __VECS(aegis128l_enc_tv_template),
2429 .enc = __VECS(aegis256_enc_tv_template),
2444 .enc = __VECS(hmac_md5_ecb_cipher_null_enc_tv_template),
2454 .enc = __VECS(hmac_sha1_aes_cbc_enc_tv_temp)
2462 .enc = __VECS(hmac_sha1_des_cbc_enc_tv_temp)
2471 .enc = __VECS(hmac_sha1_des3_ede_cbc_enc_tv_temp)
2483 .enc = __VECS(hmac_sha1_ecb_cipher_null_enc_tv_temp),
2496 .enc = __VECS(hmac_sha224_des_cbc_enc_tv_temp)
2505 .enc = __VECS(hmac_sha224_des3_ede_cbc_enc_tv_temp)
2514 .enc = __VECS(hmac_sha256_aes_cbc_enc_tv_temp)
2522 .enc = __VECS(hmac_sha256_des_cbc_enc_tv_temp)
2531 .enc = __VECS(hmac_sha256_des3_ede_cbc_enc_tv_temp)
2547 .enc = __VECS(hmac_sha384_des_cbc_enc_tv_temp)
2556 .enc = __VECS(hmac_sha384_des3_ede_cbc_enc_tv_temp)
2573 .enc = __VECS(hmac_sha512_aes_cbc_enc_tv_temp)
2581 .enc = __VECS(hmac_sha512_des_cbc_enc_tv_temp)
2590 .enc = __VECS(hmac_sha512_des3_ede_cbc_enc_tv_temp)
2683 .enc = __VECS(aes_ccm_enc_tv_template),
3095 .enc = __VECS(aes_gcm_enc_tv_template),
3281 .enc = __VECS(morus1280_enc_tv_template),
3290 .enc = __VECS(morus640_enc_tv_template),
3352 .enc = __VECS(aes_gcm_rfc4106_enc_tv_template),
3362 .enc = __VECS(aes_ccm_rfc4309_enc_tv_template),
3371 .enc = __VECS(aes_gcm_rfc4543_enc_tv_template),
3380 .enc = __VECS(rfc7539_enc_tv_template),
3389 .enc = __VECS(rfc7539esp_enc_tv_template),