Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 225) sorted by relevance

123456789

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha1-internal.c178 u32 a, b, c, d, e; in SHA1Transform() local
193 b = state[1]; in SHA1Transform()
198 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform()
199 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform()
200 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform()
201 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform()
202 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform()
203 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform()
204 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform()
205 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform()
[all …]
Dmd5-internal.c210 register u32 a, b, c, d; in MD5Transform() local
213 b = buf[1]; in MD5Transform()
217 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform()
218 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform()
219 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform()
220 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform()
221 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform()
222 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform()
223 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform()
224 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform()
[all …]
Dmd4-internal.c200 u32 a, b, c, d, in[MD4_BLOCK_LENGTH / 4]; in MD4Transform() local
215 b = state[1]; in MD4Transform()
219 MD4STEP(F1, a, b, c, d, in[ 0], 3); in MD4Transform()
220 MD4STEP(F1, d, a, b, c, in[ 1], 7); in MD4Transform()
221 MD4STEP(F1, c, d, a, b, in[ 2], 11); in MD4Transform()
222 MD4STEP(F1, b, c, d, a, in[ 3], 19); in MD4Transform()
223 MD4STEP(F1, a, b, c, d, in[ 4], 3); in MD4Transform()
224 MD4STEP(F1, d, a, b, c, in[ 5], 7); in MD4Transform()
225 MD4STEP(F1, c, d, a, b, in[ 6], 11); in MD4Transform()
226 MD4STEP(F1, b, c, d, a, in[ 7], 19); in MD4Transform()
[all …]
Daes-unwrap.c29 u8 a[8], *r, b[AES_BLOCK_SIZE]; in aes_unwrap() local
53 os_memcpy(b, a, 8); in aes_unwrap()
55 b[7] ^= t; in aes_unwrap()
56 b[6] ^= t >> 8; in aes_unwrap()
57 b[5] ^= t >> 16; in aes_unwrap()
58 b[4] ^= t >> 24; in aes_unwrap()
60 os_memcpy(b + 8, r, 8); in aes_unwrap()
61 aes_decrypt(ctx, b, b); in aes_unwrap()
62 os_memcpy(a, b, 8); in aes_unwrap()
63 os_memcpy(r, b + 8, 8); in aes_unwrap()
Daes-wrap.c28 u8 *a, *r, b[AES_BLOCK_SIZE]; in aes_wrap() local
54 os_memcpy(b, a, 8); in aes_wrap()
55 os_memcpy(b + 8, r, 8); in aes_wrap()
56 aes_encrypt(ctx, b, b); in aes_wrap()
57 os_memcpy(a, b, 8); in aes_wrap()
63 os_memcpy(r, b + 8, 8); in aes_wrap()
/hal_espressif-latest/components/esp_rom/linux/
Desp_rom_md5.c166 register uint32_t a, b, c, d; in MD5Transform() local
169 b = buf[1]; in MD5Transform()
173 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform()
174 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform()
175 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform()
176 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform()
177 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform()
178 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform()
179 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform()
180 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform()
[all …]
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/
Dccm_mode.c154 uint8_t b[Nb * Nk]; in tc_ccm_generation_encryption() local
161 b[0] = ((alen > 0) ? 0x40:0) | (((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_generation_encryption()
163 b[i] = c->nonce[i - 1]; in tc_ccm_generation_encryption()
165 b[14] = (uint8_t)(plen >> 8); in tc_ccm_generation_encryption()
166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption()
169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption()
180 b[0] = 1; /* q - 1 = 2 - 1 = 1 */ in tc_ccm_generation_encryption()
181 b[14] = b[15] = TC_ZERO_BYTE; in tc_ccm_generation_encryption()
184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption()
186 b[14] = b[15] = TC_ZERO_BYTE; /* restoring initial counter for ctr_mode (0):*/ in tc_ccm_generation_encryption()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Dccm_mode.c154 uint8_t b[Nb * Nk]; in tc_ccm_generation_encryption() local
161 b[0] = ((alen > 0) ? 0x40 : 0) | (((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_generation_encryption()
163 b[i] = c->nonce[i - 1]; in tc_ccm_generation_encryption()
165 b[14] = (uint8_t)(plen >> 8); in tc_ccm_generation_encryption()
166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption()
169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption()
180 b[0] = 1; /* q - 1 = 2 - 1 = 1 */ in tc_ccm_generation_encryption()
181 b[14] = b[15] = TC_ZERO_BYTE; in tc_ccm_generation_encryption()
184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption()
186 b[14] = b[15] = TC_ZERO_BYTE; /* restoring initial counter for ctr_mode (0):*/ in tc_ccm_generation_encryption()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dlibtommath.h130 #define s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1) argument
132 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
133 static int s_mp_sqr(mp_int * a, mp_int * b);
134 static int s_mp_mul_high_digs(mp_int * a, mp_int * b, mp_int * c, int digs);
136 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
144 static int mp_lshd(mp_int * a, int b);
145 static void mp_set(mp_int * a, mp_digit b);
147 static void mp_exch(mp_int * a, mp_int * b);
148 static void mp_rshd(mp_int * a, int b);
150 static int mp_mod_2d(mp_int * a, int b, mp_int * c);
[all …]
Dbignum.c115 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp() argument
117 return mp_cmp((mp_int *) a, (mp_int *) b); in bignum_cmp()
127 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d() argument
129 return mp_cmp_d((mp_int *) a, b); in bignum_cmp_d()
140 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add() argument
143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()
158 int bignum_sub(const struct bignum *a, const struct bignum *b, in bignum_sub() argument
161 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_sub()
176 int bignum_mul(const struct bignum *a, const struct bignum *b, in bignum_mul() argument
179 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_mul()
[all …]
Dbignum.h19 int bignum_cmp(const struct bignum *a, const struct bignum *b);
20 int bignum_cmp_d(const struct bignum *a, unsigned long b);
21 int bignum_add(const struct bignum *a, const struct bignum *b,
23 int bignum_sub(const struct bignum *a, const struct bignum *b,
25 int bignum_mul(const struct bignum *a, const struct bignum *b,
27 int bignum_mulmod(const struct bignum *a, const struct bignum *b,
29 int bignum_exptmod(const struct bignum *a, const struct bignum *b,
/hal_espressif-latest/tools/idf_monitor/idf_monitor_base/
Dansi_color_converter.py32 RE_ANSI_COLOR = re.compile(b'\033\\[([01]);3([0-7])m')
69 self.matched = b''
94 for b in data:
95 b = bytes([b])
97 if b == b'\033': # ESC
98 self.matched = b
99 elif (length == 1 and b == b'[') or (1 < length < 7):
100 self.matched += b
105 self.matched = b''
110 if m.group(1) == b'1':
[all …]
Dcoredump.py15 COREDUMP_UART_START = b'================= CORE DUMP START ================='
16 COREDUMP_UART_END = b'================= CORE DUMP END ================='
17 COREDUMP_UART_PROMPT = b'Press Enter to print core dump to UART...'
33 self._coredump_buffer = b''
80 self.logger.print(COREDUMP_UART_START + b'\n')
100 self._coredump_buffer = b''
111 self._coredump_buffer += line.replace(b'\r', b'') + b'\n'
124 self._coredump_buffer = b''
/hal_espressif-latest/components/esp_common/include/
Desp_attr.h147 …CE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b
148 …CE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b
149 …CE_INLINE_ATTR constexpr TYPE operator^ (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a ^ (INT_TYPE)b
150 FORCE_INLINE_ATTR constexpr TYPE operator>> (TYPE a, int b) { return (TYPE)((INT_TYPE)a >> b); } \
151 FORCE_INLINE_ATTR constexpr TYPE operator<< (TYPE a, int b) { return (TYPE)((INT_TYPE)a << b); } \
152 FORCE_INLINE_ATTR TYPE& operator|=(TYPE& a, TYPE b) { a = a | b; return a; } \
153 FORCE_INLINE_ATTR TYPE& operator&=(TYPE& a, TYPE b) { a = a & b; return a; } \
154 FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
155 FORCE_INLINE_ATTR TYPE& operator>>=(TYPE& a, int b) { a = a >> b; return a; } \
156 FORCE_INLINE_ATTR TYPE& operator<<=(TYPE& a, int b) { a = a << b; return a; }
/hal_espressif-latest/components/hal/
Dlcd_hal.c24 static inline uint32_t _gcd(uint32_t a, uint32_t b) in _gcd() argument
26 uint32_t c = a % b; in _gcd()
28 a = b; in _gcd()
29 b = c; in _gcd()
30 c = a % b; in _gcd()
32 return b; in _gcd()
45 uint32_t b = 0; in lcd_hal_cal_pclk_freq() local
52 b = delta_hz / gcd; in lcd_hal_cal_pclk_freq()
56 b /= d; in lcd_hal_cal_pclk_freq()
59 HAL_EARLY_LOGD("lcd_hal", "n=%d,a=%d,b=%d,mo=%d", n, a, b, mo); in lcd_hal_cal_pclk_freq()
[all …]
/hal_espressif-latest/components/mbedtls/port/aes/
Desp_aes_xts.c129 #define GET_UINT64_LE(n,b,i) \ argument
131 (n) = ( (uint64_t) (b)[(i) + 7] << 56 ) \
132 | ( (uint64_t) (b)[(i) + 6] << 48 ) \
133 | ( (uint64_t) (b)[(i) + 5] << 40 ) \
134 | ( (uint64_t) (b)[(i) + 4] << 32 ) \
135 | ( (uint64_t) (b)[(i) + 3] << 24 ) \
136 | ( (uint64_t) (b)[(i) + 2] << 16 ) \
137 | ( (uint64_t) (b)[(i) + 1] << 8 ) \
138 | ( (uint64_t) (b)[(i) ] ); \
143 #define PUT_UINT64_LE(n,b,i) \ argument
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_buf.h794 struct net_buf_simple b; member
999 #define net_buf_reserve(buf, reserve) net_buf_simple_reserve(&(buf)->b, reserve)
1075 #define net_buf_add(buf, len) net_buf_simple_add(&(buf)->b, len)
1090 #define net_buf_add_mem(buf, mem, len) net_buf_simple_add_mem(&(buf)->b, mem, len)
1104 #define net_buf_add_u8(buf, val) net_buf_simple_add_u8(&(buf)->b, val)
1117 #define net_buf_add_le16(buf, val) net_buf_simple_add_le16(&(buf)->b, val)
1130 #define net_buf_add_be16(buf, val) net_buf_simple_add_be16(&(buf)->b, val)
1143 #define net_buf_add_le24(buf, val) net_buf_simple_add_le24(&(buf)->b, val)
1156 #define net_buf_add_be24(buf, val) net_buf_simple_add_be24(&(buf)->b, val)
1169 #define net_buf_add_le32(buf, val) net_buf_simple_add_le32(&(buf)->b, val)
[all …]
/hal_espressif-latest/components/wpa_supplicant/port/include/
Dos.h71 #define os_time_before(a, b) \ argument
72 ((a)->sec < (b)->sec || \
73 ((a)->sec == (b)->sec && (a)->usec < (b)->usec))
76 #define os_time_sub(a, b, res) do { \ argument
77 (res)->sec = (a)->sec - (b)->sec; \
78 (res)->usec = (a)->usec - (b)->usec; \
363 #define os_queue_create(a, b) wifi_funcs->_queue_create((a), (b)) argument
365 #define os_queue_send(a, b, c) wifi_funcs->_queue_send((a), (b), (c)) argument
366 #define os_queue_send_to_front(a, b, c) wifi_funcs->_queue_send_to_front((a), (b), (c)) argument
367 #define os_queue_recv(a, b, c) wifi_funcs->_queue_recv((a), (b), (c)) argument
[all …]
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-bignum.c107 const struct crypto_bignum *b, in crypto_bignum_add() argument
110 … return mbedtls_mpi_add_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? in crypto_bignum_add()
116 const struct crypto_bignum *b, in crypto_bignum_mod() argument
119 …return mbedtls_mpi_mod_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? … in crypto_bignum_mod()
124 const struct crypto_bignum *b, in crypto_bignum_exptmod() argument
128 …return mbedtls_mpi_exp_mod((mbedtls_mpi *) d, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b, (… in crypto_bignum_exptmod()
134 const struct crypto_bignum *b, in crypto_bignum_inverse() argument
138 (const mbedtls_mpi *) b) ? -1 : 0; in crypto_bignum_inverse()
143 const struct crypto_bignum *b, in crypto_bignum_sub() argument
146 … return mbedtls_mpi_sub_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? in crypto_bignum_sub()
[all …]
/hal_espressif-latest/components/esp_rom/esp32s2/
Dusb_patches.c38 static inline uint16_t nibble_to_hex_u16(uint8_t b) in nibble_to_hex_u16() argument
40 if (b < 0xa) { in nibble_to_hex_u16()
41 return '0' + b; in nibble_to_hex_u16()
43 return 'a' + b - 0xa; in nibble_to_hex_u16()
58 uint8_t b = mac_bytes[5 - i]; /* printing from the MSB */ in rom_usb_cdc_set_descriptor_patch() local
59 *dst++ = nibble_to_hex_u16(b >> 4); in rom_usb_cdc_set_descriptor_patch()
60 *dst++ = nibble_to_hex_u16(b & 0xf); in rom_usb_cdc_set_descriptor_patch()
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/
Dp_256_curvepara.c50 ec->b[7] = 0x5ac635d8; in p_256_init_curve()
51 ec->b[6] = 0xaa3a93e7; in p_256_init_curve()
52 ec->b[5] = 0xb3ebbd55; in p_256_init_curve()
53 ec->b[4] = 0x769886bc; in p_256_init_curve()
54 ec->b[3] = 0x651d06b0; in p_256_init_curve()
55 ec->b[2] = 0xcc53b0f6; in p_256_init_curve()
56 ec->b[1] = 0x3bce3c3e; in p_256_init_curve()
57 ec->b[0] = 0x27d2604b; in p_256_init_curve()
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/
Dutil.py11 as_bytes = tuple(b for b in bitstring)
12 return separator.join(("%02x" % b) for b in as_bytes)
15 def popcnt(b): argument
17 return len([x for x in bin(b) if x == "1"])
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dconst_time.h48 static inline unsigned int const_time_eq(unsigned int a, unsigned int b) in const_time_eq() argument
50 return const_time_is_zero(a ^ b); in const_time_eq()
55 static inline u8 const_time_eq_u8(unsigned int a, unsigned int b) in const_time_eq_u8() argument
57 return (u8) const_time_eq(a, b); in const_time_eq_u8()
77 static inline unsigned int const_time_eq_bin(const void *a, const void *b, in const_time_eq_bin() argument
81 const u8 *bb = b; in const_time_eq_bin()
172 static inline int const_time_memcmp(const void *a, const void *b, size_t len) in const_time_memcmp() argument
175 const u8 *bb = b; in const_time_memcmp()
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/include/
Dp_256_multprecision.h39 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength);
47 DWORD multiprecision_add(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a+b
48 void multiprecision_add_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
49 DWORD multiprecision_sub(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a-b
50 void multiprecision_sub_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
54 void multiprecision_mult(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a*b
55 void multiprecision_mersenns_mult_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
58 void multiprecision_mult(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
/hal_espressif-latest/components/mbedtls/port/sha/dma/
Desp_sha256.c48 #define GET_UINT32_BE(n,b,i) \ argument
50 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \
51 | ( (uint32_t) (b)[(i) + 1] << 16 ) \
52 | ( (uint32_t) (b)[(i) + 2] << 8 ) \
53 | ( (uint32_t) (b)[(i) + 3] ); \
58 #define PUT_UINT32_BE(n,b,i) \ argument
60 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \
61 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \
62 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \
63 (b)[(i) + 3] = (unsigned char) ( (n) ); \

123456789