Lines Matching defs:enc
95 static inline u32 create_ctx_hdr(struct skcipher_request *req, u32 enc,
113 if (enc)
121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type;
122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type;
123 fctx->enc.enc_ctrl.e.iv_source = FROM_DPTR;
126 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2);
128 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len);
129 ctrl_flags = (__be64 *)&fctx->enc.enc_ctrl.flags;
130 *ctrl_flags = cpu_to_be64(fctx->enc.enc_ctrl.flags);
151 static inline u32 create_input_list(struct skcipher_request *req, u32 enc,
158 create_ctx_hdr(req, enc, &argcnt);
193 static inline int cvm_enc_dec(struct skcipher_request *req, u32 enc)
206 create_input_list(req, enc, enc_iv_len);