Home
last modified time | relevance | path

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

12345678910>>...13

/hal_espressif-2.7.6/components/openssl/library/
Dssl_bio.c25 BIO *b = BIO_new(&m); in BIO_new_mem_buf() local
26 if (b) { in BIO_new_mem_buf()
27 b->dlen = len; in BIO_new_mem_buf()
28 b->data = buf; in BIO_new_mem_buf()
30 return b; in BIO_new_mem_buf()
38 BIO *b = (BIO *)ssl_mem_zalloc(sizeof(BIO)); in BIO_new() local
39 if (!b) { in BIO_new()
44 b->size = method->size; in BIO_new()
45 b->type = method->type; in BIO_new()
47 b->type = BIO_TYPE_NONE; in BIO_new()
[all …]
/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/
Dsha1-internal.c229 u32 a, b, c, d, e; in SHA1Transform() local
244 b = state[1]; in SHA1Transform()
249 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()
250 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()
251 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()
252 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()
253 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()
254 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()
255 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()
256 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.c218 register u32 a, b, c, d; in MD5Transform() local
221 b = buf[1]; in MD5Transform()
225 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform()
226 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform()
227 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform()
228 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform()
229 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform()
230 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform()
231 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform()
232 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform()
[all …]
Dmd4-internal.c137 u32 a, b, c, d, in[MD4_BLOCK_LENGTH / 4]; in MD4Transform() local
142 b = state[1]; in MD4Transform()
146 MD4SETP(F1, a, b, c, d, in[ 0], 3); in MD4Transform()
147 MD4SETP(F1, d, a, b, c, in[ 1], 7); in MD4Transform()
148 MD4SETP(F1, c, d, a, b, in[ 2], 11); in MD4Transform()
149 MD4SETP(F1, b, c, d, a, in[ 3], 19); in MD4Transform()
150 MD4SETP(F1, a, b, c, d, in[ 4], 3); in MD4Transform()
151 MD4SETP(F1, d, a, b, c, in[ 5], 7); in MD4Transform()
152 MD4SETP(F1, c, d, a, b, in[ 6], 11); in MD4Transform()
153 MD4SETP(F1, b, c, d, a, in[ 7], 19); in MD4Transform()
[all …]
Dlibtommath.h132 #define s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1) argument
134 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
135 static int s_mp_sqr(mp_int * a, mp_int * b);
136 static int s_mp_mul_high_digs(mp_int * a, mp_int * b, mp_int * c, int digs);
138 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
146 static int mp_lshd(mp_int * a, int b);
147 static void mp_set(mp_int * a, mp_digit b);
149 static void mp_exch(mp_int * a, mp_int * b);
150 static void mp_rshd(mp_int * a, int b);
152 static int mp_mod_2d(mp_int * a, int b, mp_int * c);
[all …]
Dbignum.c129 bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp() argument
131 return mp_cmp((mp_int *) a, (mp_int *) b); in bignum_cmp()
142 bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d() argument
144 return mp_cmp_d((mp_int *) a, b); in bignum_cmp_d()
156 bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add() argument
159 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()
175 bignum_sub(const struct bignum *a, const struct bignum *b, in bignum_sub() argument
178 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_sub()
194 bignum_mul(const struct bignum *a, const struct bignum *b, in bignum_mul() argument
197 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_mul()
[all …]
Daes-unwrap.c53 u8 a[8], *r, b[16]; in aes_unwrap() local
90 os_memcpy(b, a, 8); in aes_unwrap()
91 b[7] ^= n * j + i; in aes_unwrap()
93 os_memcpy(b + 8, r, 8); in aes_unwrap()
95 ret = mbedtls_internal_aes_decrypt(&ctx, b, b); in aes_unwrap()
97 aes_decrypt(ctx, b, b); in aes_unwrap()
99 os_memcpy(a, b, 8); in aes_unwrap()
100 os_memcpy(r, b + 8, 8); in aes_unwrap()
Dcrypto_mbedtls-bignum.c92 const struct crypto_bignum *b, in crypto_bignum_add() argument
95 … return mbedtls_mpi_add_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? in crypto_bignum_add()
101 const struct crypto_bignum *b, in crypto_bignum_mod() argument
104 …return mbedtls_mpi_mod_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? … in crypto_bignum_mod()
109 const struct crypto_bignum *b, in crypto_bignum_exptmod() argument
113 …return mbedtls_mpi_exp_mod((mbedtls_mpi *) d, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b, (… in crypto_bignum_exptmod()
119 const struct crypto_bignum *b, in crypto_bignum_inverse() argument
123 (const mbedtls_mpi *) b) ? -1 : 0; in crypto_bignum_inverse()
128 const struct crypto_bignum *b, in crypto_bignum_sub() argument
131 … return mbedtls_mpi_sub_mpi((mbedtls_mpi *) c, (const mbedtls_mpi *) a, (const mbedtls_mpi *) b) ? in crypto_bignum_sub()
[all …]
Daes-wrap.c45 u8 *a, *r, b[16]; in aes_wrap() local
84 os_memcpy(b, a, 8); in aes_wrap()
85 os_memcpy(b + 8, r, 8); in aes_wrap()
87 ret = mbedtls_internal_aes_encrypt(&ctx, b, b); in aes_wrap()
91 aes_encrypt(ctx, b, b); in aes_wrap()
93 os_memcpy(a, b, 8); in aes_wrap()
95 os_memcpy(r, b + 8, 8); in aes_wrap()
/hal_espressif-2.7.6/components/partition_table/test_gen_esp32part_host/
Dgen_esp32part_tests.py24 LONGER_BINARY_TABLE = b''
27 LONGER_BINARY_TABLE += b'\xAA\x50\x00\x00' + \
28 b'\x00\x00\x01\x00' + \
29 b'\x00\x00\x10\x00' + \
30 b'factory\0' + (b'\0' * 8) + \
31 b'\x00\x00\x00\x00'
34 LONGER_BINARY_TABLE += b'\xAA\x50\x01\x20' + \
35 b'\x00\x00\x11\x00' + \
36 b'\x00\x02\x00\x00' + \
37 b'data' + (b'\0' * 12) + \
[all …]
/hal_espressif-2.7.6/examples/protocols/pppos_client/
Dexample_test.py18 AT_FSM = {b'AT+CGMM': b'0G Dummy Model',
19 b'AT+CGSN': b'0123456789',
20 b'AT+CIMI': b'ESP',
21 b'AT+COPS?': b'+COPS: 0,0,"ESP Network"',
22 b'AT+CSQ': b'+CSQ: 4,0',
23 b'AT+CBC': b'+CBC: 0,50',
24 b'ATD*99***1#': b'CONNECT',
29 buff = b''
33 if not buff.endswith(b'\r'):
35 cmd_list = buff.split(b'\r')
[all …]
/hal_espressif-2.7.6/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-2.7.6/tools/esp_app_trace/test/sysview/
Dblink.c32 void *b = malloc(97); in blink_task2() local
33 printf("Alloced 97 bytes @ %p\n", b); in blink_task2()
36 b = malloc(11); in blink_task2()
37 printf("Alloced 11 bytes @ %p\n", b); in blink_task2()
38 b = malloc(24); in blink_task2()
39 printf("Alloced 24 bytes @ %p\n", b); in blink_task2()
40 free(b); in blink_task2()
41 printf("Freed @ %p\n", b); in blink_task2()
67 void *b = malloc(96); in blink_task() local
68 printf("Alloced 96 bytes @ %p\n", b); in blink_task()
[all …]
/hal_espressif-2.7.6/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.c129 bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp() argument
131 return mp_cmp((mp_int *) a, (mp_int *) b); in bignum_cmp()
142 bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d() argument
144 return mp_cmp_d((mp_int *) a, b); in bignum_cmp_d()
156 bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add() argument
159 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()
175 bignum_sub(const struct bignum *a, const struct bignum *b, in bignum_sub() argument
178 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_sub()
194 bignum_mul(const struct bignum *a, const struct bignum *b, in bignum_mul() argument
197 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_mul()
[all …]
/hal_espressif-2.7.6/components/riscv/include/
Desp_attr.h90 …CE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b
91 …CE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b
92 …CE_INLINE_ATTR constexpr TYPE operator^ (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a ^ (INT_TYPE)b
93 FORCE_INLINE_ATTR constexpr TYPE operator>> (TYPE a, int b) { return (TYPE)((INT_TYPE)a >> b); } \
94 FORCE_INLINE_ATTR constexpr TYPE operator<< (TYPE a, int b) { return (TYPE)((INT_TYPE)a << b); } \
95 FORCE_INLINE_ATTR TYPE& operator|=(TYPE& a, TYPE b) { a = a | b; return a; } \
96 FORCE_INLINE_ATTR TYPE& operator&=(TYPE& a, TYPE b) { a = a & b; return a; } \
97 FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
98 FORCE_INLINE_ATTR TYPE& operator>>=(TYPE& a, int b) { a >>= b; return a; } \
99 FORCE_INLINE_ATTR TYPE& operator<<=(TYPE& a, int b) { a <<= b; return a; }
/hal_espressif-2.7.6/components/xtensa/include/
Desp_attr.h112 …CE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b
113 …CE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b
114 …CE_INLINE_ATTR constexpr TYPE operator^ (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a ^ (INT_TYPE)b
115 FORCE_INLINE_ATTR constexpr TYPE operator>> (TYPE a, int b) { return (TYPE)((INT_TYPE)a >> b); } \
116 FORCE_INLINE_ATTR constexpr TYPE operator<< (TYPE a, int b) { return (TYPE)((INT_TYPE)a << b); } \
117 FORCE_INLINE_ATTR TYPE& operator|=(TYPE& a, TYPE b) { a = a | b; return a; } \
118 FORCE_INLINE_ATTR TYPE& operator&=(TYPE& a, TYPE b) { a = a & b; return a; } \
119 FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
120 FORCE_INLINE_ATTR TYPE& operator>>=(TYPE& a, int b) { a >>= b; return a; } \
121 FORCE_INLINE_ATTR TYPE& operator<<=(TYPE& a, int b) { a <<= b; return a; }
/hal_espressif-2.7.6/components/spi_flash/sim/stubs/xtensa/
Desp_attr.h111 …CE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b
112 …CE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b
113 …CE_INLINE_ATTR constexpr TYPE operator^ (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a ^ (INT_TYPE)b
114 FORCE_INLINE_ATTR constexpr TYPE operator>> (TYPE a, int b) { return (TYPE)((INT_TYPE)a >> b); } \
115 FORCE_INLINE_ATTR constexpr TYPE operator<< (TYPE a, int b) { return (TYPE)((INT_TYPE)a << b); } \
116 FORCE_INLINE_ATTR TYPE& operator|=(TYPE& a, TYPE b) { a = a | b; return a; } \
117 FORCE_INLINE_ATTR TYPE& operator&=(TYPE& a, TYPE b) { a = a & b; return a; } \
118 FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
119 FORCE_INLINE_ATTR TYPE& operator>>=(TYPE& a, int b) { a >>= b; return a; } \
120 FORCE_INLINE_ATTR TYPE& operator<<=(TYPE& a, int b) { a <<= b; return a; }
/hal_espressif-2.7.6/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-2.7.6/examples/peripherals/i2c/i2c_self_test/
DREADME.md82 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
83 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
84 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
85 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
86 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
87 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
88 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
89 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
92 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
93 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
[all …]
/hal_espressif-2.7.6/docs/zh_CN/api-guides/
Dblufi.rst152 **1.1 控制帧 (0x0 b’00)**
157 …| 0x0 (b’000000) | Ack | 用来回复对方发的帧, …
160 …| 0x1 (b’000001) | Set ESP32 to the security mode. | 通知 ESP32 发送数据时使用的安全模式, …
163 … | 手机到 ESP32 方向依赖于帧 Control 域。 | b’0000:无校验、无加密; …
165 … | | b’0001:有校验、无加密; …
167 … | | b’0010:无校验、有加密; …
169 … | | b’0011:有校验、有加密。 …
171 …| 0x2 (b’000010) | Set the Wi-Fi opmode of ESP32. | 设置 ESP32 的 Wi-Fi 模式,帧包含 opmode 信息。 …
184 …| 0x3 (b’000011) | Connect ESP32 to the AP. | 通知 ESP32,必要的信息已经发送完毕,可以连接 AP。 …
186 …| 0x4 (b’000100) | Disconnect ESP32 from the AP. | 通知 ESP32 断开与 AP 的连接 …
[all …]
/hal_espressif-2.7.6/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-2.7.6/components/esp32/test/
Dtest_fp.c14 static float addsf(float a, float b) in addsf() argument
22 :"=r"(result):"r"(a), "r"(b) in addsf()
27 static float mulsf(float a, float b) in mulsf() argument
35 :"=r"(result):"r"(a), "r"(b) in mulsf()
40 static float divsf(float a, float b) in divsf() argument
72 :"=r"(result):"r"(a), "r"(b) in divsf()
120 float b = 0.5f; variable
121 float c = addsf(a, b);
123 printf("a=%g b=%g c=%g eps=%g\r\n", a, b, c, eps);
130 float b = 0.05f; variable
[all …]
/hal_espressif-2.7.6/components/esp_rom/esp32s2/
Dusb_descriptors.c46 static inline uint16_t nibble_to_hex_u16(uint8_t b) in nibble_to_hex_u16() argument
48 if (b < 0xa) { in nibble_to_hex_u16()
49 return '0' + b; in nibble_to_hex_u16()
51 return 'a' + b - 0xa; in nibble_to_hex_u16()
67 uint8_t b = mac_bytes[5 - i]; /* printing from the MSB */ in rom_usb_cdc_set_descriptor_patch() local
68 *dst++ = nibble_to_hex_u16(b >> 4); in rom_usb_cdc_set_descriptor_patch()
69 *dst++ = nibble_to_hex_u16(b & 0xf); in rom_usb_cdc_set_descriptor_patch()
/hal_espressif-2.7.6/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()

12345678910>>...13