Lines Matching refs:u
30 if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) in ccp_des3_complete()
50 ctx->u.des3.type = CCP_DES3_TYPE_168; in ccp_des3_setkey()
51 ctx->u.des3.mode = alg->mode; in ccp_des3_setkey()
52 ctx->u.des3.key_len = key_len; in ccp_des3_setkey()
54 memcpy(ctx->u.des3.key, key, key_len); in ccp_des3_setkey()
55 sg_init_one(&ctx->u.des3.key_sg, ctx->u.des3.key, key_len); in ccp_des3_setkey()
69 if (!ctx->u.des3.key_len) in ccp_des3_crypt()
72 if (((ctx->u.des3.mode == CCP_DES3_MODE_ECB) || in ccp_des3_crypt()
73 (ctx->u.des3.mode == CCP_DES3_MODE_CBC)) && in ccp_des3_crypt()
77 if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) { in ccp_des3_crypt()
90 rctx->cmd.u.des3.type = ctx->u.des3.type; in ccp_des3_crypt()
91 rctx->cmd.u.des3.mode = ctx->u.des3.mode; in ccp_des3_crypt()
92 rctx->cmd.u.des3.action = (encrypt) in ccp_des3_crypt()
95 rctx->cmd.u.des3.key = &ctx->u.des3.key_sg; in ccp_des3_crypt()
96 rctx->cmd.u.des3.key_len = ctx->u.des3.key_len; in ccp_des3_crypt()
97 rctx->cmd.u.des3.iv = iv_sg; in ccp_des3_crypt()
98 rctx->cmd.u.des3.iv_len = iv_len; in ccp_des3_crypt()
99 rctx->cmd.u.des3.src = req->src; in ccp_des3_crypt()
100 rctx->cmd.u.des3.src_len = req->cryptlen; in ccp_des3_crypt()
101 rctx->cmd.u.des3.dst = req->dst; in ccp_des3_crypt()
123 ctx->u.des3.key_len = 0; in ccp_des3_init_tfm()