/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | dragonfly.c | 55 struct crypto_bignum **qnr) in dragonfly_get_random_qr_qnr() 57 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr() 59 while (!(*qr) || !(*qnr)) { in dragonfly_get_random_qr_qnr() 72 else if (res == -1 && !(*qnr)) in dragonfly_get_random_qr_qnr() 73 *qnr = tmp; in dragonfly_get_random_qr_qnr() 78 if (*qr && *qnr) in dragonfly_get_random_qr_qnr() 81 crypto_bignum_deinit(*qnr, 0); in dragonfly_get_random_qr_qnr() 82 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr() 110 const u8 *qr, const u8 *qnr, in dragonfly_is_quadratic_residue_blind() 150 * num = (num * qnr) modul in dragonfly_is_quadratic_residue_blind() 53 dragonfly_get_random_qr_qnr(const struct crypto_bignum *prime, struct crypto_bignum **qr, struct crypto_bignum **qnr) dragonfly_get_random_qr_qnr() argument 109 dragonfly_is_quadratic_residue_blind(struct crypto_ec *ec, const u8 *qr, const u8 *qnr, const struct crypto_bignum *val) dragonfly_is_quadratic_residue_blind() argument [all...] |
H A D | dragonfly.h | 22 struct crypto_bignum **qnr); 24 const u8 *qr, const u8 *qnr,
|
H A D | sae.c | 148 const u8 *prime, const u8 *qr, const u8 *qnr, in sae_test_pwd_seed_ecc() 185 res = dragonfly_is_quadratic_residue_blind(sae->tmp->ec, qr, qnr, in sae_test_pwd_seed_ecc() 295 struct crypto_bignum *x = NULL, *y = NULL, *qr = NULL, *qnr = NULL; in sae_derive_pwe_ecc() local 321 * (qnr) modulo p for blinding purposes during the loop. in sae_derive_pwe_ecc() 323 if (dragonfly_get_random_qr_qnr(sae->tmp->prime, &qr, &qnr) < 0 || in sae_derive_pwe_ecc() 325 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), prime_len) < 0) in sae_derive_pwe_ecc() 437 crypto_bignum_deinit(qnr, 0); in sae_derive_pwe_ecc() 147 sae_test_pwd_seed_ecc(struct sae_data *sae, const u8 *pwd_seed, const u8 *prime, const u8 *qr, const u8 *qnr, u8 *pwd_value) sae_test_pwd_seed_ecc() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A D | dragonfly.c | 55 struct crypto_bignum **qnr) in dragonfly_get_random_qr_qnr() 57 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr() 59 while (!(*qr) || !(*qnr)) { in dragonfly_get_random_qr_qnr() 72 else if (res == -1 && !(*qnr)) in dragonfly_get_random_qr_qnr() 73 *qnr = tmp; in dragonfly_get_random_qr_qnr() 78 if (*qr && *qnr) in dragonfly_get_random_qr_qnr() 81 crypto_bignum_deinit(*qnr, 0); in dragonfly_get_random_qr_qnr() 82 *qr = *qnr = NULL; in dragonfly_get_random_qr_qnr() 110 const u8 *qr, const u8 *qnr, in dragonfly_is_quadratic_residue_blind() 150 * num = (num * qnr) modul in dragonfly_is_quadratic_residue_blind() 53 dragonfly_get_random_qr_qnr(const struct crypto_bignum *prime, struct crypto_bignum **qr, struct crypto_bignum **qnr) dragonfly_get_random_qr_qnr() argument 109 dragonfly_is_quadratic_residue_blind(struct crypto_ec *ec, const u8 *qr, const u8 *qnr, const struct crypto_bignum *val) dragonfly_is_quadratic_residue_blind() argument [all...] |
H A D | dragonfly.h | 22 struct crypto_bignum **qnr); 24 const u8 *qr, const u8 *qnr,
|
H A D | sae.c | 141 const u8 *prime, const u8 *qr, const u8 *qnr, in sae_test_pwd_seed_ecc() 178 res = dragonfly_is_quadratic_residue_blind(sae->tmp->ec, qr, qnr, in sae_test_pwd_seed_ecc() 289 struct crypto_bignum *x = NULL, *y = NULL, *qr = NULL, *qnr = NULL; in sae_derive_pwe_ecc() local 315 * (qnr) modulo p for blinding purposes during the loop. in sae_derive_pwe_ecc() 317 if (dragonfly_get_random_qr_qnr(sae->tmp->prime, &qr, &qnr) < 0 || in sae_derive_pwe_ecc() 319 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), prime_len) < 0) in sae_derive_pwe_ecc() 441 crypto_bignum_deinit(qnr, 0); in sae_derive_pwe_ecc() 140 sae_test_pwd_seed_ecc(struct sae_data *sae, const u8 *pwd_seed, const u8 *prime, const u8 *qr, const u8 *qnr, u8 *pwd_value) sae_test_pwd_seed_ecc() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
H A D | eap_pwd_common.c | 124 struct crypto_bignum *qr = NULL, *qnr = NULL; in compute_password_element() local 164 if (dragonfly_get_random_qr_qnr(prime, &qr, &qnr) < 0 || in compute_password_element() 167 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), in compute_password_element() 318 crypto_bignum_deinit(qnr, 1); in compute_password_element()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
H A D | eap_pwd_common.c | 124 struct crypto_bignum *qr = NULL, *qnr = NULL; in compute_password_element() local 164 if (dragonfly_get_random_qr_qnr(prime, &qr, &qnr) < 0 || in compute_password_element() 167 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), in compute_password_element() 318 crypto_bignum_deinit(qnr, 1); in compute_password_element()
|