Lines Matching refs:rc4
289 int rc4; member
296 } rc4; member
306 int idx, res, rc4 = 0; in crypto_cipher_init() local
323 rc4 = 1; in crypto_cipher_init()
333 if (rc4) { in crypto_cipher_init()
334 ctx->rc4 = 1; in crypto_cipher_init()
335 if (key_len > sizeof(ctx->u.rc4.key)) { in crypto_cipher_init()
339 ctx->u.rc4.keylen = key_len; in crypto_cipher_init()
340 os_memcpy(ctx->u.rc4.key, key, key_len); in crypto_cipher_init()
359 if (ctx->rc4) { in crypto_cipher_encrypt()
362 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, in crypto_cipher_encrypt()
363 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
364 ctx->u.rc4.used_bytes += len; in crypto_cipher_encrypt()
383 if (ctx->rc4) { in crypto_cipher_decrypt()
386 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, in crypto_cipher_decrypt()
387 ctx->u.rc4.used_bytes, plain, len); in crypto_cipher_decrypt()
388 ctx->u.rc4.used_bytes += len; in crypto_cipher_decrypt()
405 if (!ctx->rc4) in crypto_cipher_deinit()