commit 8e7da821f9eae5a8609979103b444b1b6e7ed630
parent f87159964cf8fd9f85b0699d50e4a051d4f7c948
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Mon, 14 Jan 2019 12:54:17 -0800
handshake: store PMK length
Non-802.11 AKMs can define their own key lengths. Currently only OWE does
this, and the MIC/KEK/KCK lengths will be determined by the PMK length so
we need to save it.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/handshake.c b/src/handshake.c
@@ -108,6 +108,7 @@ void handshake_state_set_pmk(struct handshake_state *s, const uint8_t *pmk,
size_t pmk_len)
{
memcpy(s->pmk, pmk, pmk_len);
+ s->pmk_len = pmk_len;
s->have_pmk = true;
}
diff --git a/src/handshake.h b/src/handshake.h
@@ -87,6 +87,7 @@ struct handshake_state {
enum ie_rsn_cipher_suite group_management_cipher;
enum ie_rsn_akm_suite akm_suite;
uint8_t pmk[64];
+ size_t pmk_len;
uint8_t snonce[32];
uint8_t anonce[32];
uint8_t ptk[64];