diff options
author | 2007-07-24 19:35:20 +0000 | |
---|---|---|
committer | 2007-07-24 19:35:20 +0000 | |
commit | c5823ff2899dc23bf01c945069e4bb125c7ccd19 (patch) | |
tree | c05e796172cce0f2b9f8f6f26a4925d77652ba8c /sys/net80211/ieee80211_crypto.c | |
parent | reformat to 8 chars tab, zap unneeded comment (no binary change) (diff) | |
download | wireguard-openbsd-c5823ff2899dc23bf01c945069e4bb125c7ccd19.tar.xz wireguard-openbsd-c5823ff2899dc23bf01c945069e4bb125c7ccd19.zip |
add rc4_skip() function that can be used to discard bytes from
the arc4 key stream.
rc4_skip(ctx, len);
is equivalent to:
u_int8_t dummy[len];
rc4_crypt(ctx, dummy, dummy, len);
except that is does not require storage space and that it saves
some cpu cycles.
ok deraadt@
Diffstat (limited to 'sys/net80211/ieee80211_crypto.c')
0 files changed, 0 insertions, 0 deletions