summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_crypto.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-04-18 09:16:15 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-04-18 09:16:15 +0000
commit9490f7792ea055f8deb63b21074eb1e994861753 (patch)
tree6314ca9a7c3db1e6b3bf70254587530da5564b6c /sys/net80211/ieee80211_crypto.h
parentadd7cd1933b616a68b7facc7786f42ec7a011711 (diff)
extend the if_ethersubr.c crc functions to support updating a running
crc in addition to the existing "oneshot" mode and use them to replace ieee80211_crc_update() with the new ether_crc32_le_update(). Saves 1k kernel bss + some code. Mark the new ether_crc32_[lb]e_update functions as __pure for a ~25x speedup (on my i386 at least). feedback and ok damien@
Diffstat (limited to 'sys/net80211/ieee80211_crypto.h')
-rw-r--r--sys/net80211/ieee80211_crypto.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_crypto.h b/sys/net80211/ieee80211_crypto.h
index 3447da8c0f5..d4e956b64d5 100644
--- a/sys/net80211/ieee80211_crypto.h
+++ b/sys/net80211/ieee80211_crypto.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_crypto.h,v 1.10 2008/04/16 18:32:15 damien Exp $ */
+/* $OpenBSD: ieee80211_crypto.h,v 1.11 2008/04/18 09:16:14 djm Exp $ */
/* $NetBSD: ieee80211_crypto.h,v 1.2 2003/09/14 01:14:55 dyoung Exp $ */
/*-
@@ -100,8 +100,6 @@ extern struct mbuf *ieee80211_encrypt(struct ieee80211com *, struct mbuf *,
extern struct mbuf *ieee80211_decrypt(struct ieee80211com *, struct mbuf *,
struct ieee80211_node *);
-u_int32_t ieee80211_crc_update(u_int32_t, const u_int8_t *, int);
-
int ieee80211_set_key(struct ieee80211com *, struct ieee80211_node *,
struct ieee80211_key *);
void ieee80211_delete_key(struct ieee80211com *, struct ieee80211_node *,