mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
SAE: Add Rejected Groups element into H2E Commit
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
efd4285299
commit
cf84246ebb
@ -1664,6 +1664,16 @@ void sae_write_commit(struct sae_data *sae, struct wpabuf *buf,
|
|||||||
wpa_printf(MSG_DEBUG, "SAE: own Password Identifier: %s",
|
wpa_printf(MSG_DEBUG, "SAE: own Password Identifier: %s",
|
||||||
identifier);
|
identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sae->tmp->h2e && sae->tmp->own_rejected_groups) {
|
||||||
|
wpa_hexdump_buf(MSG_DEBUG, "SAE: own Rejected Groups",
|
||||||
|
sae->tmp->own_rejected_groups);
|
||||||
|
wpabuf_put_u8(buf, WLAN_EID_EXTENSION);
|
||||||
|
wpabuf_put_u8(buf,
|
||||||
|
1 + wpabuf_len(sae->tmp->own_rejected_groups));
|
||||||
|
wpabuf_put_u8(buf, WLAN_EID_EXT_REJECTED_GROUPS);
|
||||||
|
wpabuf_put_buf(buf, sae->tmp->own_rejected_groups);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#define SAE_MAX_PRIME_LEN 512
|
#define SAE_MAX_PRIME_LEN 512
|
||||||
#define SAE_MAX_ECC_PRIME_LEN 66
|
#define SAE_MAX_ECC_PRIME_LEN 66
|
||||||
#define SAE_MAX_HASH_LEN 64
|
#define SAE_MAX_HASH_LEN 64
|
||||||
#define SAE_COMMIT_MAX_LEN (2 + 3 * SAE_MAX_PRIME_LEN)
|
#define SAE_COMMIT_MAX_LEN (2 + 3 * SAE_MAX_PRIME_LEN + 255)
|
||||||
#define SAE_CONFIRM_MAX_LEN (2 + SAE_MAX_HASH_LEN)
|
#define SAE_CONFIRM_MAX_LEN (2 + SAE_MAX_HASH_LEN)
|
||||||
|
|
||||||
/* Special value returned by sae_parse_commit() */
|
/* Special value returned by sae_parse_commit() */
|
||||||
|
Loading…
Reference in New Issue
Block a user