Lines Matching refs:RC4_CHUNK
81 #if defined(RC4_CHUNK)
104 * - RC4_CHUNK="unsigned long long" should be a #1 choice for
108 * always be told that RC4_CHUNK="unsigned long".
120 (RC4_CHUNK)d[(tx+ty)&0xff]\
123 if ( ( ((unsigned long)indata & (sizeof(RC4_CHUNK)-1)) |
124 ((unsigned long)outdata & (sizeof(RC4_CHUNK)-1)) ) == 0 )
126 RC4_CHUNK ichunk,otp;
145 * by "if (sizeof(RC4_CHUNK)==8)" or the condition
149 * sizeof(RC4_CHUNK)!=8 be (were also #ifdefed
151 * - in case you wonder "&(sizeof(RC4_CHUNK)*8-1)" in
153 * warnings when sizeof(RC4_CHUNK)!=8
159 # define BESHFT(c) (((sizeof(RC4_CHUNK)-(c)-1)*8)&(sizeof(RC4_CHUNK)*8-1))
160 for (;len&~(sizeof(RC4_CHUNK)-1);len-=sizeof(RC4_CHUNK))
162 ichunk = *(RC4_CHUNK *)indata;
167 if (sizeof(RC4_CHUNK)==8)
174 *(RC4_CHUNK *)outdata = otp^ichunk;
175 indata += sizeof(RC4_CHUNK);
176 outdata += sizeof(RC4_CHUNK);
180 RC4_CHUNK mask=(RC4_CHUNK)-1, ochunk;
182 ichunk = *(RC4_CHUNK *)indata;
183 ochunk = *(RC4_CHUNK *)outdata;
186 mask <<= (sizeof(RC4_CHUNK)-len)<<3;
187 switch (len&(sizeof(RC4_CHUNK)-1))
204 *(RC4_CHUNK *)outdata = ochunk;
212 # define LESHFT(c) (((c)*8)&(sizeof(RC4_CHUNK)*8-1))
213 for (;len&~(sizeof(RC4_CHUNK)-1);len-=sizeof(RC4_CHUNK))
215 ichunk = *(RC4_CHUNK *)indata;
220 if (sizeof(RC4_CHUNK)==8)
227 *(RC4_CHUNK *)outdata = otp^ichunk;
228 indata += sizeof(RC4_CHUNK);
229 outdata += sizeof(RC4_CHUNK);
233 RC4_CHUNK mask=(RC4_CHUNK)-1, ochunk;
235 ichunk = *(RC4_CHUNK *)indata;
236 ochunk = *(RC4_CHUNK *)outdata;
239 mask >>= (sizeof(RC4_CHUNK)-len)<<3;
240 switch (len&(sizeof(RC4_CHUNK)-1))
257 *(RC4_CHUNK *)outdata = ochunk;