path: root/src/rsn_supp/pmksa_cache.h
diff options
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/rsn_supp/pmksa_cache.h
parentae7d9fbd3d037f7e123f71cbe29f858c901a1532 (diff)
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/rsn_supp/pmksa_cache.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rsn_supp/pmksa_cache.h b/src/rsn_supp/pmksa_cache.h
index f8e040e..7ec09ea 100644
--- a/src/rsn_supp/pmksa_cache.h
+++ b/src/rsn_supp/pmksa_cache.h
@@ -15,7 +15,7 @@
struct rsn_pmksa_cache_entry {
struct rsn_pmksa_cache_entry *next;
u8 pmkid[PMKID_LEN];
- u8 pmk[PMK_LEN];
+ u8 pmk[PMK_LEN_MAX];
size_t pmk_len;
os_time_t expiration;
int akmp; /* WPA_KEY_MGMT_* */