Lines Matching refs:j
63 int i, j; in arcfour_key_init() local
66 for (i = j = 0; i < 256; i++, j++) { in arcfour_key_init()
67 if (j == keyvallen) in arcfour_key_init()
68 j = 0; in arcfour_key_init()
69 ext_keyval[i] = keyval[j]; in arcfour_key_init()
75 j = 0; in arcfour_key_init()
77 j = (j + key->arr[i] + ext_keyval[i]) & 0xff; in arcfour_key_init()
79 key->arr[i] = key->arr[j]; in arcfour_key_init()
80 key->arr[j] = tmp; in arcfour_key_init()
83 key->j = 0; in arcfour_key_init()
112 uchar_t i, j, ti, tj; in arcfour_crypt() local
136 j = key->j; in arcfour_crypt()
141 j = j + key->arr[i]; in arcfour_crypt()
143 key->arr[i] = key->arr[j]; in arcfour_crypt()
144 key->arr[j] = tmp; in arcfour_crypt()
145 tmp = key->arr[i] + key->arr[j]; in arcfour_crypt()
149 key->j = j; in arcfour_crypt()
161 j = key->j; in arcfour_crypt()
172 j = j + ti; in arcfour_crypt()
173 tj = arr[j]; in arcfour_crypt()
174 arr[j] = ti; in arcfour_crypt()
189 j = j + ti; in arcfour_crypt()
190 tj = arr[j]; in arcfour_crypt()
191 arr[j] = ti; in arcfour_crypt()
199 j = j + ti; in arcfour_crypt()
200 tj = arr[j]; in arcfour_crypt()
201 arr[j] = ti; in arcfour_crypt()
215 key->j = j; in arcfour_crypt()