• Home
  • Raw
  • Download

Lines Matching refs:u

34 	if (ctx->u.aes.mode != CCP_AES_MODE_ECB)  in ccp_aes_complete()
49 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_setkey()
52 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_setkey()
55 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_setkey()
61 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey()
62 ctx->u.aes.key_len = key_len; in ccp_aes_setkey()
64 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_setkey()
65 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_setkey()
78 if (!ctx->u.aes.key_len) in ccp_aes_crypt()
81 if (((ctx->u.aes.mode == CCP_AES_MODE_ECB) || in ccp_aes_crypt()
82 (ctx->u.aes.mode == CCP_AES_MODE_CBC) || in ccp_aes_crypt()
83 (ctx->u.aes.mode == CCP_AES_MODE_CFB)) && in ccp_aes_crypt()
87 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) { in ccp_aes_crypt()
100 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_aes_crypt()
101 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_crypt()
102 rctx->cmd.u.aes.action = in ccp_aes_crypt()
104 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_aes_crypt()
105 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_aes_crypt()
106 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_crypt()
107 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_crypt()
108 rctx->cmd.u.aes.src = req->src; in ccp_aes_crypt()
109 rctx->cmd.u.aes.src_len = req->nbytes; in ccp_aes_crypt()
110 rctx->cmd.u.aes.dst = req->dst; in ccp_aes_crypt()
132 ctx->u.aes.key_len = 0; in ccp_aes_cra_init()
164 memcpy(ctx->u.aes.nonce, key + key_len, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_setkey()
177 memcpy(iv, ctx->u.aes.nonce, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_crypt()
207 ctx->u.aes.key_len = 0; in ccp_aes_rfc3686_cra_init()