Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/sae.c b/src/sae.c
- index 62729bd..7e9ad25 100644
- --- a/src/sae.c
- +++ b/src/sae.c
- @@ -266,7 +266,9 @@ static bool sae_compute_pwe(char *password, const uint8_t *addr1,
- /* create qr/qnr prior to beginning hunting-and-pecking loop */
- sae_get_qr(qr);
- + l_debug("after qr\n");
- sae_get_qnr(qnr);
- + l_debug("after qnr\n");
- do {
- /* pwd-seed = H(max(addr1, addr2) || min(addr1, addr2),
- @@ -274,15 +276,19 @@ static bool sae_compute_pwe(char *password, const uint8_t *addr1,
- * pwd-value = KDF-256(pwd-seed, "SAE Hunting and Pecking", p)
- */
- sae_pwd_seed(addr1, addr2, base, base_len, counter, pwd_seed);
- + l_debug("seed\n");
- sae_pwd_value(pwd_seed, pwd_value);
- + l_debug("value\n");
- ecc_be2native(pwd_value);
- /* if (pwd-value < p) { */
- if (vli_cmp(pwd_value, curve_p) < 0) {
- if (sae_is_quadratic_residue(pwd_value, qr, qnr)) {
- + l_debug("is residue\n");
- if (found == false) {
- + l_debug("found\n");
- memcpy(pwe->x, pwd_value, 32);
- memcpy(save, pwd_seed, 32);
- @@ -294,6 +300,7 @@ static bool sae_compute_pwe(char *password, const uint8_t *addr1,
- }
- }
- }
- + l_debug("inc\n");
- counter++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement