Lines Matching refs:rc4
285 int rc4; member
292 } rc4; member
302 int idx, res, rc4 = 0; in crypto_cipher_init() local
319 rc4 = 1; in crypto_cipher_init()
329 if (rc4) { in crypto_cipher_init()
330 ctx->rc4 = 1; in crypto_cipher_init()
331 if (key_len > sizeof(ctx->u.rc4.key)) { in crypto_cipher_init()
335 ctx->u.rc4.keylen = key_len; in crypto_cipher_init()
336 os_memcpy(ctx->u.rc4.key, key, key_len); in crypto_cipher_init()
355 if (ctx->rc4) { in crypto_cipher_encrypt()
358 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, in crypto_cipher_encrypt()
359 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
360 ctx->u.rc4.used_bytes += len; in crypto_cipher_encrypt()
379 if (ctx->rc4) { in crypto_cipher_decrypt()
382 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, in crypto_cipher_decrypt()
383 ctx->u.rc4.used_bytes, plain, len); in crypto_cipher_decrypt()
384 ctx->u.rc4.used_bytes += len; in crypto_cipher_decrypt()
401 if (!ctx->rc4) in crypto_cipher_deinit()