Lines Matching refs:prime_len
33 tmp->prime_len = crypto_ec_prime_len(tmp->ec);
43 tmp->prime_len = tmp->dh->prime_len;
44 if (tmp->prime_len > SAE_MAX_PRIME_LEN) {
50 tmp->prime_len);
180 sae->tmp->prime_len) < 0)
188 prime, sae->tmp->prime_len, pwd_value, bits);
192 pwd_value, sae->tmp->prime_len);
194 if (os_memcmp(pwd_value, prime, sae->tmp->prime_len) >= 0)
199 x = crypto_bignum_init_set(pwd_value, sae->tmp->prime_len);
219 size_t bits = sae->tmp->prime_len * 8;
228 sae->tmp->dh->prime, sae->tmp->prime_len, pwd_value,
233 sae->tmp->prime_len);
235 if (os_memcmp(pwd_value, sae->tmp->dh->prime, sae->tmp->prime_len) >= 0)
243 a = crypto_bignum_init_set(pwd_value, sae->tmp->prime_len);
545 wpa_hexdump_key(MSG_DEBUG, "SAE: k", k, sae->tmp->prime_len);
577 crypto_bignum_to_bin(K, k, SAE_MAX_PRIME_LEN, sae->tmp->prime_len) <
583 wpa_hexdump_key(MSG_DEBUG, "SAE: k", k, sae->tmp->prime_len);
611 hmac_sha256(null_key, sizeof(null_key), k, sae->tmp->prime_len,
618 crypto_bignum_to_bin(tmp, val, sizeof(val), sae->tmp->prime_len);
621 val, sae->tmp->prime_len, keys, sizeof(keys));
652 pos = wpabuf_put(buf, sae->tmp->prime_len);
654 sae->tmp->prime_len, sae->tmp->prime_len);
656 pos, sae->tmp->prime_len);
658 pos = wpabuf_put(buf, 2 * sae->tmp->prime_len);
661 pos, pos + sae->tmp->prime_len);
663 pos, sae->tmp->prime_len);
665 pos + sae->tmp->prime_len, sae->tmp->prime_len);
667 pos = wpabuf_put(buf, sae->tmp->prime_len);
669 sae->tmp->prime_len, sae->tmp->prime_len);
671 pos, sae->tmp->prime_len);
718 if (*pos + (sae->tmp->ec ? 3 : 2) * sae->tmp->prime_len < end) {
720 sae->tmp->prime_len);
741 if (*pos + sae->tmp->prime_len > end) {
746 peer_scalar = crypto_bignum_init_set(*pos, sae->tmp->prime_len);
776 *pos, sae->tmp->prime_len);
777 *pos += sae->tmp->prime_len;
788 if (pos + 2 * sae->tmp->prime_len > end) {
795 sae->tmp->prime_len) < 0)
799 if (os_memcmp(pos, prime, sae->tmp->prime_len) >= 0 ||
800 os_memcmp(pos + sae->tmp->prime_len + sae->tmp->prime_len, prime,
801 sae->tmp->prime_len) >= 0) {
808 pos, sae->tmp->prime_len);
810 pos + sae->tmp->prime_len, sae->tmp->prime_len);
833 if (pos + sae->tmp->prime_len > end) {
839 sae->tmp->prime_len);
843 crypto_bignum_init_set(pos, sae->tmp->prime_len);
928 sae->tmp->prime_len);
930 len[1] = sae->tmp->prime_len;
934 sae->tmp->prime_len);
936 len[3] = sae->tmp->prime_len;
955 element_b1 + sae->tmp->prime_len);
957 element_b2 + sae->tmp->prime_len);
959 sae_cn_confirm(sae, sc, scalar1, element_b1, 2 * sae->tmp->prime_len,
960 scalar2, element_b2, 2 * sae->tmp->prime_len, confirm);
975 sae->tmp->prime_len);
977 sae->tmp->prime_len);
979 sae_cn_confirm(sae, sc, scalar1, element_b1, sae->tmp->prime_len,
980 scalar2, element_b2, sae->tmp->prime_len, confirm);