OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Damien Bergamini (damiencvs.openbsd.org)
Date: Wed Aug 01 2007 - 10:40:40 CDT


CVSROOT: /cvs
Module name: src
Changes by: damiencvs.openbsd.org 2007/08/01 09:40:40

Modified files:
        sys/net80211 : ieee80211_crypto.c ieee80211_crypto.h
                         ieee80211_input.c ieee80211_node.h

Log message:
add generic ieee80211_encrypt() and ieee80211_decrypt() functions that
can handle multiple ciphers (the key to use is determined automatically
by these functions based on the frame's destination address).
add ieee80211_ccmp_encrypt() and ieee80211_ccmp_decrypt().
those two functions only do encapsulation/decapsulation of CCMP frames
for now (they don't do SW crypto). they will help to test things with
drivers that can do HW crypto.
add a ni_pairwise_key field to struct ieee80211_node to actually install
the pairwise transient key.
install the GTK in ic_nw_keys[].