Lines Matching refs:rc4
19 #include "rc4.h"
292 int rc4;
299 } rc4;
309 int idx, res, rc4 = 0;
326 rc4 = 1;
336 if (rc4) {
337 ctx->rc4 = 1;
338 if (key_len > sizeof(ctx->u.rc4.key)) {
342 ctx->u.rc4.keylen = key_len;
343 os_memcpy(ctx->u.rc4.key, key, key_len);
362 if (ctx->rc4) {
365 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen,
366 ctx->u.rc4.used_bytes, crypt, len);
367 ctx->u.rc4.used_bytes += len;
386 if (ctx->rc4) {
389 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen,
390 ctx->u.rc4.used_bytes, plain, len);
391 ctx->u.rc4.used_bytes += len;
408 if (!ctx->rc4)