Lines Matching full:rc4
2 * RC4 stream cipher
18 #include "rc4.h"
23 * rc4 - XOR RC4 stream to given data with skip-stream-start
24 * @key: RC4 key
25 * @keylen: RC4 key length
26 * @skip: number of bytes to skip from the beginning of the RC4 stream
27 * @data: data to be XOR'ed with RC4 stream
30 * Generate RC4 pseudo random stream for the given key, skip beginning of the
31 * stream, and XOR the end result with the data buffer to perform RC4
41 /* Setup RC4 state */
62 /* Apply RC4 to data */
74 * rc4 - XOR RC4 stream to given data
75 * @buf: data to be XOR'ed with RC4 stream
77 * @key: RC4 key
78 * @key_len: RC4 key length
80 * Generate RC4 pseudo random stream for the given key and XOR this with the
81 * data buffer to perform RC4 encryption/decryption.
83 void rc4(u8 *buf, size_t len, const u8 *key, size_t key_len)