Lines Matching refs:ctx
15 int cifs_arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len)
19 ctx->x = 1;
20 ctx->y = 0;
23 ctx->S[i] = i;
26 u32 a = ctx->S[i];
29 ctx->S[i] = ctx->S[j];
30 ctx->S[j] = a;
39 void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int len)
41 u32 *const S = ctx->S;
48 x = ctx->x;
49 y = ctx->y;
71 ctx->x = x;
72 ctx->y = y;