Lines Matching refs:op
110 enum crypto_op op;
124 enum hash_op op;
134 enum hash_op op;
233 struct sec_accel_config op;
235 switch (req_ctx->op) {
237 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_ECB;
241 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_CBC;
242 op.enc_iv = ENC_IV_POINT(SRAM_DATA_IV) |
249 op.config |= CFG_DIR_DEC;
253 op.config |= CFG_DIR_ENC;
260 op.config |= CFG_AES_LEN_128;
263 op.config |= CFG_AES_LEN_192;
266 op.config |= CFG_AES_LEN_256;
269 op.enc_p = ENC_P_SRC(SRAM_DATA_IN_START) |
271 op.enc_key_p = SRAM_DATA_KEY_P;
274 op.enc_len = cpg->p.crypt_len;
275 memcpy(cpg->sram + SRAM_CONFIG, &op,
292 if (req_ctx->op != COP_AES_CBC)
303 struct sec_accel_config op = { 0 };
306 switch (req_ctx->op) {
309 op.config = CFG_OP_MAC_ONLY | CFG_MACM_SHA1;
312 op.config = CFG_OP_MAC_ONLY | CFG_MACM_HMAC_SHA1;
316 op.mac_src_p =
323 op.mac_digest =
325 op.mac_iv =
334 op.config |= CFG_NOT_FRAG;
336 op.config |= CFG_FIRST_FRAG;
341 op.config |= CFG_LAST_FRAG;
343 op.config |= CFG_MID_FRAG;
346 memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config));
632 req_ctx->op = COP_AES_ECB;
643 req_ctx->op = COP_AES_ECB;
654 req_ctx->op = COP_AES_CBC;
665 req_ctx->op = COP_AES_CBC;
678 static void mv_init_hash_req_ctx(struct mv_req_hash_ctx *ctx, int op,
683 ctx->op = op;
700 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 0, 0,
737 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 1,
821 enum hash_op op, int count_add)
829 ctx->op = op;