summaryrefslogtreecommitdiffstats
path: root/contrib/hostapd/rc4.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-03-07 05:47:04 +0000
committersam <sam@FreeBSD.org>2006-03-07 05:47:04 +0000
commit8d55057fb42bf9070fd379acbcb6fc4ef793d2a7 (patch)
treedacc7977efdefefb8b105113edeb5215c0e01234 /contrib/hostapd/rc4.h
parentd1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0 (diff)
downloadFreeBSD-src-8d55057fb42bf9070fd379acbcb6fc4ef793d2a7.zip
FreeBSD-src-8d55057fb42bf9070fd379acbcb6fc4ef793d2a7.tar.gz
Import of hostapd 0.4.8
Diffstat (limited to 'contrib/hostapd/rc4.h')
-rw-r--r--contrib/hostapd/rc4.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/contrib/hostapd/rc4.h b/contrib/hostapd/rc4.h
index 0e77b7e..3873240 100644
--- a/contrib/hostapd/rc4.h
+++ b/contrib/hostapd/rc4.h
@@ -1,7 +1,22 @@
+/*
+ * RC4 stream cipher
+ * Copyright (c) 2002-2005, Jouni Malinen <jkmaline@cc.hut.fi>
+ *
+ * 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.
+ */
+
#ifndef RC4_H
#define RC4_H
-void rc4_skip(u8 *key, size_t keylen, size_t skip, u8 *data, size_t data_len);
-void rc4(u8 *buf, size_t len, u8 *key, size_t key_len);
+void rc4_skip(const u8 *key, size_t keylen, size_t skip,
+ u8 *data, size_t data_len);
+void rc4(u8 *buf, size_t len, const u8 *key, size_t key_len);
#endif /* RC4_H */
OpenPOWER on IntegriCloud