rc4.h File Reference

RC4 stream cipher. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void rc4_skip (const u8 *key, size_t keylen, size_t skip, u8 *data, size_t data_len)
 XOR RC4 stream to given data with skip-stream-start.
void rc4 (u8 *buf, size_t len, const u8 *key, size_t key_len)
 XOR RC4 stream to given data.


Detailed Description

RC4 stream cipher.

Copyright
Copyright (c) 2002-2005, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file rc4.h.


Function Documentation

void rc4 u8 *  buf,
size_t  len,
const u8 *  key,
size_t  key_len
 

XOR RC4 stream to given data.

Parameters:
buf data to be XOR'ed with RC4 stream
len buf length
key RC4 key
key_len RC4 key length
Generate RC4 pseudo random stream for the given key and XOR this with the data buffer to perform RC4 encryption/decryption.

Definition at line 86 of file rc4.c.

Here is the call graph for this function:

void rc4_skip const u8 *  key,
size_t  keylen,
size_t  skip,
u8 *  data,
size_t  data_len
 

XOR RC4 stream to given data with skip-stream-start.

Parameters:
key RC4 key
keylen RC4 key length
skip number of bytes to skip from the beginning of the RC4 stream
data data to be XOR'ed with RC4 stream
data_len buf length
Generate RC4 pseudo random stream for the given key, skip beginning of the stream, and XOR the end result with the data buffer to perform RC4 encryption/decryption.

Definition at line 36 of file rc4.c.


Generated on Sun Dec 31 13:53:33 2006 for wpa_supplicant by  doxygen 1.4.2