Lines Matching full:encrypt

153 	bool encrypt;  member
163 int encrypt; member
179 struct ix_sa_dir encrypt; member
359 if (req_ctx->encrypt) { in finish_scattered_hmac()
399 if (req_ctx->encrypt) { in one_packet()
623 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
628 free_sa_dir(&ctx->encrypt); in init_tfm()
665 free_sa_dir(&ctx->encrypt); in exit_tfm()
739 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
750 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
775 if (!encrypt) in setup_auth()
814 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key, in setup_cipher() argument
824 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_cipher()
827 if (encrypt) { in setup_cipher()
866 if ((cipher_cfg & MOD_AES) && !encrypt) in setup_cipher()
913 reset_sa_dir(&ctx->encrypt); in ablk_setkey()
916 ctx->encrypt.npe_mode = NPE_OP_HMAC_DISABLE; in ablk_setkey()
957 static int ixp4xx_cipher_fallback(struct skcipher_request *areq, int encrypt) in ixp4xx_cipher_fallback() argument
969 if (encrypt) in ixp4xx_cipher_fallback()
976 static int ablk_perform(struct skcipher_request *req, int encrypt) in ablk_perform() argument
993 return ixp4xx_cipher_fallback(req, encrypt); in ablk_perform()
1000 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in ablk_perform()
1001 req_ctx->encrypt = encrypt; in ablk_perform()
1017 if (ivsize > 0 && !encrypt) { in ablk_perform()
1091 static int aead_perform(struct aead_request *req, int encrypt, in aead_perform() argument
1114 if (encrypt) { in aead_perform()
1115 dir = &ctx->encrypt; in aead_perform()
1168 if (encrypt) { in aead_perform()
1184 if (!encrypt) { in aead_perform()
1188 req_ctx->encrypt = encrypt; in aead_perform()
1217 reset_sa_dir(&ctx->encrypt); in aead_setup()
1401 .encrypt = ablk_rfc3686_crypt,
1516 if (!cra->encrypt) in ixp_crypto_probe()
1517 cra->encrypt = ablk_encrypt; in ixp_crypto_probe()
1550 cra->encrypt = aead_encrypt; in ixp_crypto_probe()