Lines Matching refs:encrypt
153 bool encrypt;
163 int encrypt;
179 struct ix_sa_dir encrypt;
359 if (req_ctx->encrypt) {
399 if (req_ctx->encrypt) {
620 ret = init_sa_dir(&ctx->encrypt);
625 free_sa_dir(&ctx->encrypt);
662 free_sa_dir(&ctx->encrypt);
736 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize,
747 dir = encrypt ? &ctx->encrypt : &ctx->decrypt;
772 if (!encrypt)
811 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key,
821 dir = encrypt ? &ctx->encrypt : &ctx->decrypt;
824 if (encrypt) {
863 if ((cipher_cfg & MOD_AES) && !encrypt)
910 reset_sa_dir(&ctx->encrypt);
913 ctx->encrypt.npe_mode = NPE_OP_HMAC_DISABLE;
954 static int ixp4xx_cipher_fallback(struct skcipher_request *areq, int encrypt)
966 if (encrypt)
973 static int ablk_perform(struct skcipher_request *req, int encrypt)
990 return ixp4xx_cipher_fallback(req, encrypt);
997 dir = encrypt ? &ctx->encrypt : &ctx->decrypt;
998 req_ctx->encrypt = encrypt;
1014 if (ivsize > 0 && !encrypt) {
1088 static int aead_perform(struct aead_request *req, int encrypt,
1111 if (encrypt) {
1112 dir = &ctx->encrypt;
1165 if (encrypt) {
1181 if (!encrypt) {
1185 req_ctx->encrypt = encrypt;
1214 reset_sa_dir(&ctx->encrypt);
1398 .encrypt = ablk_rfc3686_crypt,
1513 if (!cra->encrypt)
1514 cra->encrypt = ablk_encrypt;
1547 cra->encrypt = aead_encrypt;