Lines Matching refs:state
90 unsigned char *state;
95 state = malloc(state_len);
96 if (state == NULL)
101 ctx->state = state;
105 state[i] = i;
110 t = state[i];
112 state[i] = state[k];
113 state[k] = t;
122 unsigned char *state = ctx->state;
134 j = (j + state[i]) % state_len;
135 t = state[j];
136 state[j] = state[i];
137 state[i] = t;
139 dst[k] = src[k] ^ state[(state[i] + state[j]) % state_len];
150 if (ctx->state)
151 free(ctx->state);