Home | History | Annotate | Download | only in prngs

Lines Matching refs:rc4

14   @file rc4.c
15 RC4 PRNG, Tom St Denis
18 #ifdef RC4
22 "rc4", 32,
43 prng->rc4.x = 0;
61 if (prng->rc4.x + inlen > 256) {
62 if (prng->rc4.x == 256) {
67 inlen = 256 - prng->rc4.x;
72 prng->rc4.buf[prng->rc4.x++] = *in++;
92 s = prng->rc4.buf;
94 keylen = prng->rc4.x;
96 /* make RC4 perm and shuffle */
102 y = (y + prng->rc4.buf[x] + key[j++]) & 255;
108 prng->rc4.x = 0;
109 prng->rc4.y = 0;
138 x = prng->rc4.x;
139 y = prng->rc4.y;
140 s = prng->rc4.buf;
148 prng->rc4.x = x;
149 prng->rc4.y = y;
267 /* $Source: /cvs/libtom/libtomcrypt/src/prngs/rc4.c,v $ */