aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-10-13 22:18:11 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-14 15:43:26 (GMT)
commit207976f053997a604b50733f874b88651b453905 (patch)
tree51d5fdafb69d3cc608689ddc4580a76098190cf7 /src/common/wpa_common.h
parentae7d9fbd3d037f7e123f71cbe29f858c901a1532 (diff)
downloadhostap-207976f053997a604b50733f874b88651b453905.zip
hostap-207976f053997a604b50733f874b88651b453905.tar.gz
hostap-207976f053997a604b50733f874b88651b453905.tar.bz2
Fix Suite B 192-bit AKM to use proper PMK length
In addition to the PTK length increasing, the length of the PMK was increased (from 256 to 384 bits) for the 00-0f-ac:12 AKM. This part was missing from the initial implementation and a fixed length (256-bit) PMK was used for all AKMs. Fix this by adding more complete support for variable length PMK and use 384 bits from MSK instead of 256 bits when using this AKM. This is not backwards compatible with the earlier implementations. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index c08f651..ee71bfc 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -12,6 +12,8 @@
/* IEEE 802.11i */
#define PMKID_LEN 16
#define PMK_LEN 32
+#define PMK_LEN_SUITE_B_192 48
+#define PMK_LEN_MAX 48
#define WPA_REPLAY_COUNTER_LEN 8
#define WPA_NONCE_LEN 32
#define WPA_KEY_RSC_LEN 8