Page MenuHomeFreeBSD

net80211: document the crypto enmic/demic functions.
Needs ReviewPublic

Authored by adrian on Sun, Mar 16, 6:16 PM.
Referenced Files
F112543734: D49392.diff
Wed, Mar 19, 3:25 PM
F112481850: D49392.id.diff
Tue, Mar 18, 3:43 PM
Unknown Object (File)
Tue, Mar 18, 8:15 AM
Unknown Object (File)
Tue, Mar 18, 7:19 AM

Details

Reviewers
None
Group Reviewers
wireless
Summary

These functions implement what's needed for TKIP Michael MIC - which
is performed over the entire unencrypted MSDU. Each potential
fragmented MPDU is encrypted and has its own ICV/MIC.

CCMP/GCMP encrypts each MPDU separately (including the MPDUs that make
up an A-MPDU), so they'll implement null functions here and instead do
the MIC/ICV insertion inline in the crypto functions themselves.

Hopefully this makes it a bit clearer on how things should behave, and
will help figure out and clean up what further hardware offload
features we need.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62937
Build 59821: arc lint + arc unit

Event Timeline

If both are TKIP-only I keep contemplating if they should be called mmic and we are done ;-)

sys/net80211/ieee80211_crypto.h
219

Can we add a comment here above the two:

/* See ieee80211_crypto_enmic() / ieee80211_crypto_demic() for description. */

Just to make it clearer if we don't rename them to mmic. Or:

/*

  • Currently only used by TKIP.
  • See ieee80211_crypto_enmic() / ieee80211_crypto_demic() for description. */