12 #define SAE_KCK_LEN 32 13 #define SAE_PMK_LEN 32 14 #define SAE_PMKID_LEN 16 15 #define SAE_KEYSEED_KEY_LEN 32 16 #define SAE_MAX_PRIME_LEN 512 17 #define SAE_MAX_ECC_PRIME_LEN 66 18 #define SAE_COMMIT_MAX_LEN (2 + 3 * SAE_MAX_PRIME_LEN) 19 #define SAE_CONFIRM_MAX_LEN (2 + SAE_MAX_PRIME_LEN) 22 #define SAE_SILENTLY_DISCARD 65535 26 struct crypto_bignum *own_commit_scalar;
27 struct crypto_bignum *own_commit_element_ffc;
28 struct crypto_ec_point *own_commit_element_ecc;
29 struct crypto_bignum *peer_commit_element_ffc;
30 struct crypto_ec_point *peer_commit_element_ecc;
31 struct crypto_ec_point *pwe_ecc;
32 struct crypto_bignum *pwe_ffc;
33 struct crypto_bignum *sae_rand;
37 const struct crypto_bignum *prime;
38 const struct crypto_bignum *order;
39 struct crypto_bignum *prime_buf;
40 struct crypto_bignum *order_buf;
41 struct wpabuf *anti_clogging_token;
45 enum { SAE_NOTHING, SAE_COMMITTED, SAE_CONFIRMED, SAE_ACCEPTED } state;
48 u8 pmkid[SAE_PMKID_LEN];
49 struct crypto_bignum *peer_commit_scalar;
55 int sae_set_group(
struct sae_data *sae,
int group);
56 void sae_clear_temp_data(
struct sae_data *sae);
57 void sae_clear_data(
struct sae_data *sae);
59 int sae_prepare_commit(
const u8 *addr1,
const u8 *addr2,
60 const u8 *password,
size_t password_len,
62 int sae_process_commit(
struct sae_data *sae);
64 const struct wpabuf *token);
65 u16 sae_parse_commit(
struct sae_data *sae,
const u8 *data,
size_t len,
66 const u8 **token,
size_t *token_len,
int *allowed_groups);
68 int sae_check_confirm(
struct sae_data *sae,
const u8 *data,
size_t len);
69 u16 sae_group_allowed(
struct sae_data *sae,
int *allowed_groups, u16 group);
Definition: dh_groups.h:12