History

cfg80211: support bigger kek/kck key length

With some newer AKMs, the KCK and KEK are bigger, so allow that if the driver advertises support for it. In addition, add a new attribute for the AKM so we can use it for offloaded rekeying.

Nathan Errera committed 6 years ago

Commit 093a48d1 parent 07c12d63 files · +32 −7Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+4−0
@@ -5396,6 +5396,8 @@ enum plink_actions { · 5395 unmodified lines
53965396
53975397 #define NL80211_KCK_LEN 16
53985398 #define NL80211_KEK_LEN 16
5399+#define NL80211_KCK_EXT_LEN 24
5400+#define NL80211_KEK_EXT_LEN 32
53995401 #define NL80211_REPLAY_CTR_LEN 8
54005402
54015403 /**
@@ -5404,6 +5406,7 @@ enum plink_actions { · 2 unmodified lines
54045406 * @NL80211_REKEY_DATA_KEK: key encryption key (binary)
54055407 * @NL80211_REKEY_DATA_KCK: key confirmation key (binary)
54065408 * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary)
5409+ * @NL80211_REKEY_DATA_AKM: AKM data (OUI, suite type)
54075410 * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal)
54085411 * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal)
54095412 */
@@ -5412,6 +5415,7 @@ enum nl80211_rekey_data { · 2 unmodified lines
54125415 NL80211_REKEY_DATA_KEK,
54135416 NL80211_REKEY_DATA_KCK,
54145417 NL80211_REKEY_DATA_REPLAY_CTR,
5418+ NL80211_REKEY_DATA_AKM,
54155419
54165420 /* keep last */
54175421 NUM_NL80211_REKEY_DATA,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t