aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/sae.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2020-08-05 14:44:32 (GMT)
committerJouni Malinen <j@w1.fi>2020-08-05 19:05:20 (GMT)
commit0a9d7b169ed7bbbc0c73d57af231c49b2f43ed6f (patch)
tree455df2855e1332980802d7224d039ee33ced4691 /src/common/sae.h
parent02f4946172dea335d1ed7fde7e8de3ebbdef859a (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
SAE-PK: Update design for fingerprint encoding into passwordHEADpendingmaster
Update the SAE-PK implementation to match the changes in the protocol design: - allow only Sec values 3 and 5 and encode this as a single bit field with multiple copies - add a checksum character Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/common/sae.h')
-rw-r--r--src/common/sae.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/sae.h b/src/common/sae.h
index ee3c662..2243c0f 100644
--- a/src/common/sae.h
+++ b/src/common/sae.h
@@ -70,9 +70,11 @@ struct sae_temporary_data {
const struct sae_pk *ap_pk;
u8 own_addr[ETH_ALEN];
u8 peer_addr[ETH_ALEN];
- u8 *pw;
- size_t pw_len;
+ u8 fingerprint[SAE_MAX_HASH_LEN];
+ size_t fingerprint_bytes;
+ size_t fingerprint_bits;
size_t lambda;
+ unsigned int sec;
u8 ssid[32];
size_t ssid_len;
#ifdef CONFIG_TESTING_OPTIONS
@@ -164,5 +166,7 @@ struct sae_pk * sae_parse_pk(const char *val);
int sae_write_confirm_pk(struct sae_data *sae, struct wpabuf *buf);
int sae_check_confirm_pk(struct sae_data *sae, const u8 *ies, size_t ies_len);
int sae_hash(size_t hash_len, const u8 *data, size_t len, u8 *hash);
+u32 sae_pk_get_be19(const u8 *buf);
+void sae_pk_buf_shift_left_19(u8 *buf, size_t len);
#endif /* SAE_H */