| /lib/ |
| A D | aes.c | 333 state[0] = sbox[state[0]]; in shift_rows() 334 state[4] = sbox[state[4]]; in shift_rows() 335 state[8] = sbox[state[8]]; in shift_rows() 336 state[12] = sbox[state[12]]; in shift_rows() 340 state[1] = sbox[state[5]]; in shift_rows() 341 state[5] = sbox[state[9]]; in shift_rows() 342 state[9] = sbox[state[13]]; in shift_rows() 347 state[2] = sbox[state[10]]; in shift_rows() 350 state[6] = sbox[state[14]]; in shift_rows() 356 state[11] = sbox[state[7]]; in shift_rows() [all …]
|
| A D | xxhash.c | 217 memset(&state, 0, sizeof(state)); in xxh32_reset() 222 memcpy(statePtr, &state, sizeof(state)); in xxh32_reset() 231 memset(&state, 0, sizeof(state)); in xxh64_reset() 236 memcpy(statePtr, &state, sizeof(state)); in xxh64_reset() 260 memcpy((uint8_t *)(state->mem32) + state->memsize, input, in xxh32_update() 263 state->v1 = xxh32_round(state->v1, get_unaligned_le32(p32)); in xxh32_update() 265 state->v2 = xxh32_round(state->v2, get_unaligned_le32(p32)); in xxh32_update() 267 state->v3 = xxh32_round(state->v3, get_unaligned_le32(p32)); in xxh32_update() 269 state->v4 = xxh32_round(state->v4, get_unaligned_le32(p32)); in xxh32_update() 317 h32 = xxh_rotl32(state->v1, 1) + xxh_rotl32(state->v2, 7) + in xxh32_digest() [all …]
|
| A D | sha512.c | 146 a=state[0]; b=state[1]; c=state[2]; d=state[3]; in sha512_transform() 147 e=state[4]; f=state[5]; g=state[6]; h=state[7]; in sha512_transform() 183 state[0] += a; state[1] += b; state[2] += c; state[3] += d; in sha512_transform() 184 state[4] += e; state[5] += f; state[6] += g; state[7] += h; in sha512_transform() 258 ctx->state[0] = SHA384_H0; in sha384_starts() 259 ctx->state[1] = SHA384_H1; in sha384_starts() 260 ctx->state[2] = SHA384_H2; in sha384_starts() 261 ctx->state[3] = SHA384_H3; in sha384_starts() 262 ctx->state[4] = SHA384_H4; in sha384_starts() 263 ctx->state[5] = SHA384_H5; in sha384_starts() [all …]
|
| A D | sha256.c | 104 A = ctx->state[0]; in sha256_process_one() 105 B = ctx->state[1]; in sha256_process_one() 106 C = ctx->state[2]; in sha256_process_one() 107 D = ctx->state[3]; in sha256_process_one() 108 E = ctx->state[4]; in sha256_process_one() 109 F = ctx->state[5]; in sha256_process_one() 110 G = ctx->state[6]; in sha256_process_one() 111 H = ctx->state[7]; in sha256_process_one() 178 ctx->state[0] += A; in sha256_process_one() 179 ctx->state[1] += B; in sha256_process_one() [all …]
|
| /lib/zlib/ |
| A D | inflate.c | 15 state = (struct inflate_state FAR *)strm->state; in inflateReset() 29 state->lencode = state->distcode = state->next = state->codes; in inflateReset() 116 state->wsize = 1U << state->wbits; in updatewindow() 124 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize); in updatewindow() 126 state->whave = state->wsize; in updatewindow() 129 dist = state->wsize - state->wnext; in updatewindow() 136 state->whave = state->wsize; in updatewindow() 140 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow() 141 if (state->whave < state->wsize) state->whave += dist; in updatewindow() 648 state->next = state->codes; in inflate() [all …]
|
| A D | inffast.c | 81 state = (struct inflate_state FAR *)strm->state; 96 dmax = state->dmax; 98 wsize = state->wsize; 99 whave = state->whave; 100 wnext = state->wnext; 101 window = state->window; 102 hold = state->hold; 103 bits = state->bits; 104 lcode = state->lencode; 320 state->hold = hold; [all …]
|
| /lib/lwip/lwip/src/netif/ppp/ |
| A D | mppe.c | 72 lwip_sha1_update(&sha1_ctx, state->master_key, state->keylen); in mppe_rekey() 74 lwip_sha1_update(&sha1_ctx, state->session_key, state->keylen); in mppe_rekey() 78 MEMCPY(state->session_key, sha1_digest, state->keylen); in mppe_rekey() 82 lwip_arc4_setup(&state->arc4, sha1_digest, state->keylen); in mppe_rekey() 83 lwip_arc4_crypt(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 93 lwip_arc4_setup(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 119 MEMCPY(state->session_key, state->master_key, sizeof(state->master_key)); in mppe_init() 124 state->keylen = 8; in mppe_init() 223 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress() 336 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress() [all …]
|
| A D | fsm.c | 92 switch( f->state ){ in fsm_lowerup() 120 switch( f->state ){ in fsm_lowerdown() 161 switch( f->state ){ in fsm_open() 240 switch( f->state ){ in fsm_close() 270 switch (f->state) { in fsm_timeout() 345 if( f->state == PPP_FSM_INITIAL || f->state == PPP_FSM_STARTING ){ in fsm_input() 395 switch( f->state ){ in fsm_rconfreq() 473 switch (f->state) { in fsm_rconfack() 541 switch (f->state) { in fsm_rconfnakrej() 583 switch (f->state) { in fsm_rtermreq() [all …]
|
| /lib/mbedtls/external/mbedtls/library/ |
| A D | chacha20.c | 56 state[a] += state[b]; in chacha20_quarter_round() 57 state[d] ^= state[a]; in chacha20_quarter_round() 58 state[d] = ROTL32(state[d], 16); in chacha20_quarter_round() 61 state[c] += state[d]; in chacha20_quarter_round() 62 state[b] ^= state[c]; in chacha20_quarter_round() 66 state[a] += state[b]; in chacha20_quarter_round() 67 state[d] ^= state[a]; in chacha20_quarter_round() 68 state[d] = ROTL32(state[d], 8); in chacha20_quarter_round() 71 state[c] += state[d]; in chacha20_quarter_round() 72 state[b] ^= state[c]; in chacha20_quarter_round() [all …]
|
| A D | aesni.c | 91 __m128i state; in mbedtls_aesni_crypt_ecb() local 93 state = _mm_xor_si128(state, rk[0]); // state ^= *rk; in mbedtls_aesni_crypt_ecb() 100 state = _mm_aesdec_si128(state, *rk); in mbedtls_aesni_crypt_ecb() 104 state = _mm_aesdeclast_si128(state, *rk); in mbedtls_aesni_crypt_ecb() 111 state = _mm_aesenc_si128(state, *rk); in mbedtls_aesni_crypt_ecb() 115 state = _mm_aesenclast_si128(state, *rk); in mbedtls_aesni_crypt_ecb() 258 state = _mm_slli_si128(state, 4); // r2:r1:r0:0 in aesni_set_rk_128() 260 state = _mm_slli_si128(state, 4); // r1:r0:0:0 in aesni_set_rk_128() 262 state = _mm_slli_si128(state, 4); // r0:0:0:0 in aesni_set_rk_128() 263 state = _mm_xor_si128(xword, state); // r7:r6:r5:r4 in aesni_set_rk_128() [all …]
|
| A D | cmac.c | 193 mbedtls_platform_zeroize(cmac_ctx->state, sizeof(cmac_ctx->state)); in mbedtls_cipher_cmac_starts() 202 unsigned char *state; in mbedtls_cipher_cmac_update() local 213 state = ctx->cmac_ctx->state; in mbedtls_cipher_cmac_update() 227 mbedtls_xor_no_simd(state, cmac_ctx->unprocessed_block, state, block_size); in mbedtls_cipher_cmac_update() 229 if ((ret = mbedtls_cipher_update(ctx, state, block_size, state, in mbedtls_cipher_cmac_update() 245 mbedtls_xor_no_simd(state, input, state, block_size); in mbedtls_cipher_cmac_update() 247 if ((ret = mbedtls_cipher_update(ctx, state, block_size, state, in mbedtls_cipher_cmac_update() 272 unsigned char *state, *last_block; in mbedtls_cipher_cmac_finish() local 287 state = cmac_ctx->state; in mbedtls_cipher_cmac_finish() 305 mbedtls_xor(state, M_last, state, block_size); in mbedtls_cipher_cmac_finish() [all …]
|
| /lib/lwip/lwip/src/apps/altcp_tls/ |
| A D | altcp_tls_mbedtls.c | 192 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_lower_connected() 232 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_lower_recv() 250 if ((state->rx != NULL) || (state->rx_app != NULL)) { in altcp_mbedtls_lower_recv() 379 if (conn->state != state) { in altcp_mbedtls_pass_rx_data() 487 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_bio_recv() 656 conn->state = state; in altcp_mbedtls_setup() 1105 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_recved() 1196 state = (altcp_mbedtls_state_t*)conn->state; in altcp_mbedtls_sndbuf() 1242 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_write() 1301 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_bio_send() [all …]
|
| /lib/lwip/lwip/contrib/ports/win32/ |
| A D | pcapif_helper.c | 35 if (state != NULL) { in pcapifh_linkstate_init() 39 free(state); in pcapifh_linkstate_init() 40 state = NULL; in pcapifh_linkstate_init() 45 free(state); in pcapifh_linkstate_init() 46 state = NULL; in pcapifh_linkstate_init() 50 return state; in pcapifh_linkstate_init() 56 if (state != NULL) { in pcapifh_linkstate_get() 59 if (PacketRequest(state->lpAdapter, FALSE, state->ppacket_oid_data)) { in pcapifh_linkstate_get() 70 if (state != NULL) { in pcapifh_linkstate_close() 77 free(state); in pcapifh_linkstate_close() [all …]
|
| /lib/lwip/lwip/src/netif/ |
| A D | zepif.c | 183 state = (struct zepif_state *)netif->state; in zepif_linkoutput() 201 state->seqno++; in zepif_linkoutput() 209 err = udp_sendto(state->pcb, q, state->init.zep_dst_ip_addr, state->init.zep_dst_udp_port); in zepif_linkoutput() 230 if (state == NULL) { in zepif_init() 250 netif->state = NULL; in zepif_init() 253 if (state->pcb == NULL) { in zepif_init() 257 err = udp_bind(state->pcb, state->init.zep_src_ip_addr, state->init.zep_src_udp_port); in zepif_init() 262 udp_bind_netif(state->pcb, state->init.zep_netif); in zepif_init() 271 netif->state = state; in zepif_init() 293 if (state->pcb != NULL) { in zepif_init() [all …]
|
| A D | slipif.c | 99 u8_t state; member 128 priv = (struct slipif_priv *)netif->state; in slipif_output() 215 priv = (struct slipif_priv *)netif->state; in slipif_rxbyte() 217 switch (priv->state) { in slipif_rxbyte() 236 priv->state = SLIP_RECV_ESCAPE; in slipif_rxbyte() 255 priv->state = SLIP_RECV_NORMAL; in slipif_rxbyte() 368 sio_num = LWIP_PTR_NUMERIC_CAST(u8_t, netif->state); in slipif_init() 399 priv->state = SLIP_RECV_NORMAL; in slipif_init() 406 netif->state = priv; in slipif_init() 434 priv = (struct slipif_priv *)netif->state; in slipif_poll() [all …]
|
| /lib/lwip/lwip/src/apps/http/ |
| A D | altcp_proxyconnect.c | 89 mem_free(state); in altcp_proxyconnect_state_free() 117 if (!state) { in altcp_proxyconnect_send_request() 203 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_lower_recv() 205 if (!state) { in altcp_proxyconnect_lower_recv() 327 if (state == NULL) { in altcp_proxyconnect_setup() 330 state->flags = 0; in altcp_proxyconnect_setup() 335 conn->state = state; in altcp_proxyconnect_setup() 448 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_recved() 466 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_connect() 533 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_write() [all …]
|
| /lib/lwip/lwip/contrib/addons/dhcp_extra_opts/ |
| A D | dhcp_extra_opts.c | 36 void dhcp_parse_extra_opts(struct dhcp *dhcp, uint8_t state, uint8_t option, uint8_t len, struct pb… in dhcp_parse_extra_opts() argument 39 LWIP_UNUSED_ARG(state); in dhcp_parse_extra_opts() 46 (state == DHCP_STATE_REBOOTING || state == DHCP_STATE_REBINDING || in dhcp_parse_extra_opts() 47 state == DHCP_STATE_RENEWING || state == DHCP_STATE_REQUESTING)) { in dhcp_parse_extra_opts() 68 void dhcp_append_extra_opts(struct netif *netif, uint8_t state, struct dhcp_msg *msg_out, uint16_t … in dhcp_append_extra_opts() argument 71 LWIP_UNUSED_ARG(state); in dhcp_append_extra_opts() 75 if (state == DHCP_STATE_RENEWING || state == DHCP_STATE_REBINDING || in dhcp_append_extra_opts() 76 state == DHCP_STATE_REBOOTING || state == DHCP_STATE_OFF || in dhcp_append_extra_opts() 77 …state == DHCP_STATE_REQUESTING || state == DHCP_STATE_BACKING_OFF || state == DHCP_STATE_SELECTING… in dhcp_append_extra_opts()
|
| /lib/lwip/lwip/src/core/ |
| A D | altcp_tcp.c | 165 if (tpcb->state != LISTEN) { in altcp_tcp_remove_callbacks() 178 if (tpcb->state != LISTEN) { in altcp_tcp_setup_callbacks() 190 conn->state = tpcb; in altcp_tcp_setup() 267 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_bind() 296 conn->state = lpcb; in altcp_tcp_listen() 417 if (conn && conn->state) { in altcp_tcp_nagle_disable() 427 if (conn && conn->state) { in altcp_tcp_nagle_enable() 437 if (conn && conn->state) { in altcp_tcp_nagle_disabled() 459 if (conn && conn->state) { in altcp_tcp_keepalive_disable() 469 if (conn && conn->state) { in altcp_tcp_keepalive_enable() [all …]
|
| A D | tcp.c | 378 switch (pcb->state) { in tcp_close_shutdown() 414 switch (pcb->state) { in tcp_close_shutdown_fin() 493 if (pcb->state != LISTEN) { in tcp_close() 521 if (pcb->state == LISTEN) { in tcp_shutdown() 540 switch (pcb->state) { in tcp_shutdown() 620 last_state = pcb->state; in tcp_abandon() 890 lpcb->state = LISTEN; in tcp_listen_with_backlog_and_err() 1176 pcb->state = SYN_SENT; in tcp_connect() 1761 LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); in tcp_kill_state() 1768 if (pcb->state == state) { in tcp_kill_state() [all …]
|
| /lib/lwip/lwip/src/core/ipv4/ |
| A D | etharp.c | 103 u8_t state; member 181 arp_table[i].state = ETHARP_STATE_EMPTY; in etharp_free_entry() 205 u8_t state = arp_table[i].state; in etharp_tmr() local 206 if (state != ETHARP_STATE_EMPTY in etharp_tmr() 208 && (state != ETHARP_STATE_STATIC) in etharp_tmr() 285 u8_t state = arp_table[i].state; in etharp_find_entry() local 291 } else if (state != ETHARP_STATE_EMPTY) { in etharp_find_entry() 293 state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE); in etharp_find_entry() 305 if (state == ETHARP_STATE_PENDING) { in etharp_find_entry() 324 if (state < ETHARP_STATE_STATIC) in etharp_find_entry() [all …]
|
| A D | autoip.c | 87 acd_callback_enum_t state); 190 autoip->state = AUTOIP_STATE_BOUND; in autoip_bind() 214 autoip_conflict_callback(struct netif *netif, acd_callback_enum_t state) in autoip_conflict_callback() argument 218 switch (state) { in autoip_conflict_callback() 266 if (autoip->state == AUTOIP_STATE_OFF) { in autoip_start() 281 autoip->state = AUTOIP_STATE_CHECKING; in autoip_start() 308 autoip->state = AUTOIP_STATE_CHECKING; in autoip_network_changed_link_up() 326 if (autoip && (autoip->state != AUTOIP_STATE_OFF) && LWIP_DHCP_AUTOIP_COOP) { in autoip_network_changed_link_down() 346 autoip->state = AUTOIP_STATE_OFF; in autoip_stop() 367 && (autoip->state == AUTOIP_STATE_BOUND); in autoip_supplied_address() [all …]
|
| /lib/lwip/lwip/src/apps/snmp/ |
| A D | snmp_mib2_tcp.c | 172 value->u32 = pcb->state + 1; in tcp_ConnTable_get_cell_value_core() 181 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 188 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 233 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value() 260 struct snmp_next_oid_state state; in tcp_ConnTable_get_next_cell_instance_and_value() local 277 if (pcb->state == LISTEN) { in tcp_ConnTable_get_next_cell_instance_and_value() 298 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnTable_get_next_cell_instance_and_value() 317 value->u32 = pcb->state + 1; in tcp_ConnectionTable_get_cell_value_core() 377 struct snmp_next_oid_state state; in tcp_ConnectionTable_get_next_cell_instance_and_value() local 412 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnectionTable_get_next_cell_instance_and_value() [all …]
|
| /lib/lwip/lwip/src/netif/ppp/polarssl/ |
| A D | md4.c | 80 ctx->state[0] = 0x67452301; in md4_starts() 81 ctx->state[1] = 0xEFCDAB89; in md4_starts() 82 ctx->state[2] = 0x98BADCFE; in md4_starts() 109 A = ctx->state[0]; in md4_process() 110 B = ctx->state[1]; in md4_process() 111 C = ctx->state[2]; in md4_process() 112 D = ctx->state[3]; in md4_process() 183 ctx->state[0] += A; in md4_process() 184 ctx->state[1] += B; in md4_process() 185 ctx->state[2] += C; in md4_process() [all …]
|
| A D | md5.c | 79 ctx->state[0] = 0x67452301; in md5_starts() 80 ctx->state[1] = 0xEFCDAB89; in md5_starts() 81 ctx->state[2] = 0x98BADCFE; in md5_starts() 113 A = ctx->state[0]; in md5_process() 114 B = ctx->state[1]; in md5_process() 115 C = ctx->state[2]; in md5_process() 116 D = ctx->state[3]; in md5_process() 202 ctx->state[0] += A; in md5_process() 203 ctx->state[1] += B; in md5_process() 204 ctx->state[2] += C; in md5_process() [all …]
|
| /lib/lzma/ |
| A D | LzmaDec.c | 135 unsigned state = p->state; in LzmaDec_DecodeReal() local 176 state -= (state < 4) ? state : 3; in LzmaDec_DecodeReal() 185 state -= (state < 10) ? 3 : 6; in LzmaDec_DecodeReal() 210 state += kNumStates; in LzmaDec_DecodeReal() 229 state = state < kNumLitStates ? 9 : 11; in LzmaDec_DecodeReal() 264 state = state < kNumLitStates ? 8 : 11; in LzmaDec_DecodeReal() 436 p->state = state; in LzmaDec_DecodeReal() 506 unsigned state = p->state; in LzmaDec_TryDummy() local 561 state = 0; in LzmaDec_TryDummy() 643 if (state < 4) in LzmaDec_TryDummy() [all …]
|