Lines Matching refs:encrypt
153 bool encrypt; member
163 int encrypt; member
179 struct ix_sa_dir encrypt; member
357 if (req_ctx->encrypt) { in finish_scattered_hmac()
397 if (req_ctx->encrypt) { in one_packet()
618 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
623 free_sa_dir(&ctx->encrypt); in init_tfm()
660 free_sa_dir(&ctx->encrypt); in exit_tfm()
734 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
745 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
770 if (!encrypt) in setup_auth()
809 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key, in setup_cipher() argument
819 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_cipher()
822 if (encrypt) { in setup_cipher()
861 if ((cipher_cfg & MOD_AES) && !encrypt) in setup_cipher()
908 reset_sa_dir(&ctx->encrypt); in ablk_setkey()
911 ctx->encrypt.npe_mode = NPE_OP_HMAC_DISABLE; in ablk_setkey()
952 static int ixp4xx_cipher_fallback(struct skcipher_request *areq, int encrypt) in ixp4xx_cipher_fallback() argument
964 if (encrypt) in ixp4xx_cipher_fallback()
971 static int ablk_perform(struct skcipher_request *req, int encrypt) in ablk_perform() argument
988 return ixp4xx_cipher_fallback(req, encrypt); in ablk_perform()
995 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in ablk_perform()
996 req_ctx->encrypt = encrypt; in ablk_perform()
1012 if (ivsize > 0 && !encrypt) { in ablk_perform()
1086 static int aead_perform(struct aead_request *req, int encrypt, in aead_perform() argument
1109 if (encrypt) { in aead_perform()
1110 dir = &ctx->encrypt; in aead_perform()
1163 if (encrypt) { in aead_perform()
1178 if (!encrypt) { in aead_perform()
1182 req_ctx->encrypt = encrypt; in aead_perform()
1211 reset_sa_dir(&ctx->encrypt); in aead_setup()
1395 .encrypt = ablk_rfc3686_crypt,
1510 if (!cra->encrypt) in ixp_crypto_probe()
1511 cra->encrypt = ablk_encrypt; in ixp_crypto_probe()
1544 cra->encrypt = aead_encrypt; in ixp_crypto_probe()