Lines Matching refs:encrypt
154 bool encrypt; member
164 int encrypt; member
180 struct ix_sa_dir encrypt; member
358 if (req_ctx->encrypt) { in finish_scattered_hmac()
398 if (req_ctx->encrypt) { in one_packet()
619 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
624 free_sa_dir(&ctx->encrypt); in init_tfm()
661 free_sa_dir(&ctx->encrypt); in exit_tfm()
735 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
746 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
771 if (!encrypt) in setup_auth()
810 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key, in setup_cipher() argument
820 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_cipher()
823 if (encrypt) { in setup_cipher()
862 if ((cipher_cfg & MOD_AES) && !encrypt) in setup_cipher()
909 reset_sa_dir(&ctx->encrypt); in ablk_setkey()
912 ctx->encrypt.npe_mode = NPE_OP_HMAC_DISABLE; in ablk_setkey()
953 static int ixp4xx_cipher_fallback(struct skcipher_request *areq, int encrypt) in ixp4xx_cipher_fallback() argument
965 if (encrypt) in ixp4xx_cipher_fallback()
972 static int ablk_perform(struct skcipher_request *req, int encrypt) in ablk_perform() argument
989 return ixp4xx_cipher_fallback(req, encrypt); in ablk_perform()
996 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in ablk_perform()
997 req_ctx->encrypt = encrypt; in ablk_perform()
1013 if (ivsize > 0 && !encrypt) { in ablk_perform()
1087 static int aead_perform(struct aead_request *req, int encrypt, in aead_perform() argument
1110 if (encrypt) { in aead_perform()
1111 dir = &ctx->encrypt; in aead_perform()
1164 if (encrypt) { in aead_perform()
1179 if (!encrypt) { in aead_perform()
1183 req_ctx->encrypt = encrypt; in aead_perform()
1212 reset_sa_dir(&ctx->encrypt); in aead_setup()
1396 .encrypt = ablk_rfc3686_crypt,
1511 if (!cra->encrypt) in ixp_crypto_probe()
1512 cra->encrypt = ablk_encrypt; in ixp_crypto_probe()
1545 cra->encrypt = aead_encrypt; in ixp_crypto_probe()