Lines Matching refs:pwd_value
147 u8 *pwd_value) in sae_test_pwd_seed_ecc() argument
160 prime, sae->tmp->prime_len, pwd_value, bits) < 0) in sae_test_pwd_seed_ecc()
163 buf_shift_right(pwd_value, sae->tmp->prime_len, 8 - bits % 8); in sae_test_pwd_seed_ecc()
165 pwd_value, sae->tmp->prime_len); in sae_test_pwd_seed_ecc()
167 cmp_prime = const_time_memcmp(pwd_value, prime, sae->tmp->prime_len); in sae_test_pwd_seed_ecc()
175 x_cand = crypto_bignum_init_set(pwd_value, sae->tmp->prime_len); in sae_test_pwd_seed_ecc()
197 u8 pwd_value[SAE_MAX_PRIME_LEN]; in sae_test_pwd_seed_ffc() local
208 sae->tmp->dh->prime, sae->tmp->prime_len, pwd_value, in sae_test_pwd_seed_ffc()
211 wpa_hexdump_key(MSG_DEBUG, "SAE: pwd-value", pwd_value, in sae_test_pwd_seed_ffc()
215 res = const_time_memcmp(pwd_value, sae->tmp->dh->prime, in sae_test_pwd_seed_ffc()
225 pwd_value[0] = const_time_select_u8(pwd_value_valid, pwd_value[0], 0); in sae_test_pwd_seed_ffc()
230 a = crypto_bignum_init_set(pwd_value, sae->tmp->prime_len); in sae_test_pwd_seed_ffc()
879 u8 pwd_value[SAE_MAX_ECC_PRIME_LEN * 2]; in sae_derive_pt_ecc() local
901 "SAE Hash to Element u1 P1", pwd_value, pwd_value_len) < in sae_derive_pt_ecc()
905 pwd_value, pwd_value_len); in sae_derive_pt_ecc()
908 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
910 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
913 wpa_hexdump_key(MSG_DEBUG, "SAE: u1", pwd_value, prime_len); in sae_derive_pt_ecc()
923 "SAE Hash to Element u2 P2", pwd_value, in sae_derive_pt_ecc()
927 pwd_value, pwd_value_len); in sae_derive_pt_ecc()
931 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
933 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
936 wpa_hexdump_key(MSG_DEBUG, "SAE: u2", pwd_value, prime_len); in sae_derive_pt_ecc()
954 forced_memzero(pwd_value, sizeof(pwd_value)); in sae_derive_pt_ecc()
983 u8 pwd_value[SAE_MAX_PRIME_LEN + SAE_MAX_PRIME_LEN / 2]; in sae_derive_pt_ffc() local
996 if (pwd_value_len > sizeof(pwd_value)) in sae_derive_pt_ffc()
1005 "SAE Hash to Element", pwd_value, pwd_value_len) < 0) in sae_derive_pt_ffc()
1008 pwd_value, pwd_value_len); in sae_derive_pt_ffc()
1011 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ffc()
1019 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ffc()
1023 pwd_value, prime_len); in sae_derive_pt_ffc()
1039 forced_memzero(pwd_value, sizeof(pwd_value)); in sae_derive_pt_ffc()