Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 22 of 22) sorted by relevance

/hostap-latest/src/utils/
Dbitfield.c16 u8 *bits; member
28 bf->bits = (u8 *) (bf + 1); in bitfield_alloc()
44 bf->bits[bit / 8] |= BIT(bit % 8); in bitfield_set()
52 bf->bits[bit / 8] &= ~BIT(bit % 8); in bitfield_clear()
60 return !!(bf->bits[bit / 8] & BIT(bit % 8)); in bitfield_is_set()
80 if (bf->bits[i] != 0xff) in bitfield_get_first_zero()
85 i = i * 8 + first_zero(bf->bits[i]); in bitfield_get_first_zero()
Dcommon.c234 void buf_shift_right(u8 *buf, size_t len, size_t bits) in buf_shift_right() argument
239 buf[i] = (buf[i - 1] << (8 - bits)) | (buf[i] >> bits); in buf_shift_right()
240 buf[0] >>= bits; in buf_shift_right()
Dcommon.h526 void buf_shift_right(u8 *buf, size_t len, size_t bits);
/hostap-latest/src/common/
Dsae_pk.c196 static char * add_char(const char *start, char *pos, u8 idx, size_t *bits) in add_char() argument
198 if (*bits == 0) in add_char()
200 if (*bits > 5) in add_char()
201 *bits -= 5; in add_char()
203 *bits = 0; in add_char()
364 int bits; in sae_pk_set_password() local
391 bits = tmp->fingerprint_bits - 8 * tmp->sec; in sae_pk_set_password()
393 while (bits > 0) { in sae_pk_set_password()
402 if (bits < 8) in sae_pk_set_password()
406 bits -= 8; in sae_pk_set_password()
[all …]
Dcommon_module_tests.c551 size_t bits = (pw_len - pw_len / 5) * 5; in sae_pk_tests() local
552 size_t bytes = (bits + 7) / 8; in sae_pk_tests()
582 b32 = sae_pk_base32_encode(val, bits - 5); in sae_pk_tests()
Dsae.c153 size_t bits; in sae_test_pwd_seed_ecc() local
160 bits = crypto_ec_prime_len_bits(sae->tmp->ec); in sae_test_pwd_seed_ecc()
162 prime, sae->tmp->prime_len, pwd_value, bits) < 0) in sae_test_pwd_seed_ecc()
164 if (bits % 8) in sae_test_pwd_seed_ecc()
165 buf_shift_right(pwd_value, sae->tmp->prime_len, 8 - bits % 8); in sae_test_pwd_seed_ecc()
200 size_t bits = sae->tmp->prime_len * 8; in sae_test_pwd_seed_ffc() local
211 bits) < 0) in sae_test_pwd_seed_ffc()
/hostap-latest/src/crypto/
Dmd5-internal.c94 ctx->bits[0] = 0; in MD5Init()
95 ctx->bits[1] = 0; in MD5Init()
108 t = ctx->bits[0]; in MD5Update()
109 if ((ctx->bits[0] = t + ((u32) len << 3)) < t) in MD5Update()
110 ctx->bits[1]++; /* Carry from low to high */ in MD5Update()
111 ctx->bits[1] += len >> 29; in MD5Update()
156 count = (ctx->bits[0] >> 3) & 0x3F; in MD5Final()
182 ((u32 *) aliasing_hide_typecast(ctx->in, u32))[14] = ctx->bits[0]; in MD5Final()
183 ((u32 *) aliasing_hide_typecast(ctx->in, u32))[15] = ctx->bits[1]; in MD5Final()
Daes_i.h70 static inline u32 rotr(u32 val, int bits) in rotr() argument
72 return (val >> bits) | (val << (32 - bits)); in rotr()
Dmd5_i.h14 u32 bits[2]; member
Dsha1-internal.c130 #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) argument
Dtls_openssl.c1536 int bits; in check_server_key_exchange() local
1565 bits = BN_num_bits(p); in check_server_key_exchange()
1568 conn->server_dh_prime_len = bits; in check_server_key_exchange()
/hostap-latest/wlantest/
Dtkip.c173 static inline u32 rotl(u32 val, int bits) in rotl() argument
175 return (val << bits) | (val >> (32 - bits)); in rotl()
179 static inline u32 rotr(u32 val, int bits) in rotr() argument
181 return (val >> bits) | (val << (32 - bits)); in rotr()
/hostap-latest/src/tls/
Dtlsv1_client_read.c643 unsigned int bits; in count_bits() local
653 bits = (len - i - 1) * 8; in count_bits()
656 bits++; in count_bits()
660 return bits; in count_bits()
670 unsigned int bits; in tlsv1_process_diffie_hellman() local
688 bits = count_bits(pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
689 if (bits < 768) { in tlsv1_process_diffie_hellman()
691 bits); in tlsv1_process_diffie_hellman()
Dlibtommath.c2911 int x, bits, res; in mp_montgomery_calc_normalization() local
2914 bits = mp_count_bits (b) % DIGIT_BIT; in mp_montgomery_calc_normalization()
2917 if ((res = mp_2expt (a, (b->used - 1) * DIGIT_BIT + bits - 1)) != MP_OKAY) { in mp_montgomery_calc_normalization()
2922 bits = 1; in mp_montgomery_calc_normalization()
2927 for (x = bits - 1; x < (int)DIGIT_BIT; x++) { in mp_montgomery_calc_normalization()
/hostap-latest/hostapd/
Dhlr_auc_gw.txt27 [-D<DB file>] [-i<IND len in bits>]
37 -i<IND len in bits> = IND length for SQN (default: 5)
DChangeLog119 in REVmd (allow only FFC groups with prime >= 3072 bits and ECC
134 - disallow ECC groups with a prime under 256 bits (groups 25, 26, and
/hostap-latest/src/ap/
Dhostapd.c838 unsigned int i = iface->conf->num_bss, bits = 0, j; in hostapd_validate_bssid_configuration() local
851 bits++; in hostapd_validate_bssid_configuration()
884 if (bits < j) in hostapd_validate_bssid_configuration()
885 bits = j; in hostapd_validate_bssid_configuration()
887 if (bits > 40) { in hostapd_validate_bssid_configuration()
889 bits); in hostapd_validate_bssid_configuration()
894 j = bits / 8; in hostapd_validate_bssid_configuration()
897 j = bits % 8; in hostapd_validate_bssid_configuration()
905 (unsigned long) iface->conf->num_bss, MAC2STR(mask), bits); in hostapd_validate_bssid_configuration()
/hostap-latest/wpa_supplicant/
DREADME-P2P806 bits
824 conncap - always One of: 1 (new), 2 (group client), 4 (group owner) bits
DChangeLog149 in REVmd (allow only FFC groups with prime >= 3072 bits and ECC
162 - disallow ECC groups with a prime under 256 bits (groups 25, 26, and
1419 * fixed EAP-AKA to use RES Length field in AT_RES as length in bits,
DREADME999 further be limited by file owner/group and mode bits. For example:
/hostap-latest/tests/hwsim/
Dtest_ap_wps.py6531 def wsc_kdf(key, label, bits): argument
6534 while len(result) * 8 < bits:
6535 data = struct.pack('>L', i) + label.encode() + struct.pack('>L', bits)
6539 return result[0:bits // 8]
/hostap-latest/doc/
Ddbus.doxygen1143 …<p>Masks to show which bits not to randomize with MAC address randomization. Possible keys are "sc…
2213 <p>Descending ordered array of rates supported by the BSS in bits per second.</p>