Lines Matching refs:ctx
112 * @ctx: The location where the computed key will be stored.
119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key,
140 ctx->rkey_enc[i + 0] = rk[0];
141 ctx->rkey_enc[i + 1] = rk[1];
142 ctx->rkey_enc[i + 2] = rk[2];
143 ctx->rkey_enc[i + 3] = rk[3];
144 ctx->rkey_dec[31 - 0 - i] = rk[0];
145 ctx->rkey_dec[31 - 1 - i] = rk[1];
146 ctx->rkey_dec[31 - 2 - i] = rk[2];
147 ctx->rkey_dec[31 - 3 - i] = rk[3];