Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 139) sorted by relevance

123456

/openthread-latest/third_party/mbedtls/repo/library/
Dchacha20.c49 static inline void chacha20_quarter_round(uint32_t state[16], in chacha20_quarter_round()
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()
63 state[b] = ROTL32(state[b], 12); 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()
[all …]
Daesni.c91 __m128i state; in mbedtls_aesni_crypt_ecb() local
92 memcpy(&state, input, 16); in mbedtls_aesni_crypt_ecb()
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()
118 memcpy(output, &state, 16); in mbedtls_aesni_crypt_ecb()
244 static __m128i aesni_set_rk_128(__m128i state, __m128i xword) in aesni_set_rk_128() argument
257 xword = _mm_xor_si128(xword, state); // X+r3:X+r2:X+r1:r4 in aesni_set_rk_128()
[all …]
Dcmac.c193 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 …]
Dsha256.c265 ctx->state[0] = 0x6A09E667; in mbedtls_sha256_starts()
266 ctx->state[1] = 0xBB67AE85; in mbedtls_sha256_starts()
267 ctx->state[2] = 0x3C6EF372; in mbedtls_sha256_starts()
268 ctx->state[3] = 0xA54FF53A; in mbedtls_sha256_starts()
269 ctx->state[4] = 0x510E527F; in mbedtls_sha256_starts()
270 ctx->state[5] = 0x9B05688C; in mbedtls_sha256_starts()
271 ctx->state[6] = 0x1F83D9AB; in mbedtls_sha256_starts()
272 ctx->state[7] = 0x5BE0CD19; in mbedtls_sha256_starts()
276 ctx->state[0] = 0xC1059ED8; in mbedtls_sha256_starts()
277 ctx->state[1] = 0x367CD507; in mbedtls_sha256_starts()
[all …]
Dchachapoly.c76 ctx->state = CHACHAPOLY_STATE_INIT; in mbedtls_chachapoly_init()
90 ctx->state = CHACHAPOLY_STATE_INIT; in mbedtls_chachapoly_free()
134 ctx->state = CHACHAPOLY_STATE_AAD; in mbedtls_chachapoly_starts()
147 if (ctx->state != CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_update_aad()
163 if ((ctx->state != CHACHAPOLY_STATE_AAD) && in mbedtls_chachapoly_update()
164 (ctx->state != CHACHAPOLY_STATE_CIPHERTEXT)) { in mbedtls_chachapoly_update()
168 if (ctx->state == CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_update()
169 ctx->state = CHACHAPOLY_STATE_CIPHERTEXT; in mbedtls_chachapoly_update()
210 if (ctx->state == CHACHAPOLY_STATE_INIT) { in mbedtls_chachapoly_finish()
214 if (ctx->state == CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_finish()
[all …]
Dccm.c138 ctx->state |= CCM_STATE__ERROR; in mbedtls_ccm_crypt()
151 ctx->state = CCM_STATE__CLEAR; in mbedtls_ccm_clear_state()
168 if (!(ctx->state & CCM_STATE__STARTED) || !(ctx->state & CCM_STATE__LENGTHS_SET)) { in ccm_calculate_first_block_if_ready()
204 ctx->state |= CCM_STATE__ERROR; in ccm_calculate_first_block_if_ready()
215 ctx->state |= CCM_STATE__ERROR; in ccm_calculate_first_block_if_ready()
256 ctx->state |= CCM_STATE__STARTED; in mbedtls_ccm_starts()
285 ctx->state |= CCM_STATE__LENGTHS_SET; in mbedtls_ccm_set_lengths()
299 if (ctx->state & CCM_STATE__ERROR) { in mbedtls_ccm_update_ad()
304 if (ctx->state & CCM_STATE__AUTH_DATA_FINISHED) { in mbedtls_ccm_update_ad()
308 if (!(ctx->state & CCM_STATE__AUTH_DATA_STARTED)) { in mbedtls_ccm_update_ad()
[all …]
Dsha512.c265 ctx->state[0] = UL64(0x6A09E667F3BCC908); in mbedtls_sha512_starts()
266 ctx->state[1] = UL64(0xBB67AE8584CAA73B); in mbedtls_sha512_starts()
267 ctx->state[2] = UL64(0x3C6EF372FE94F82B); in mbedtls_sha512_starts()
268 ctx->state[3] = UL64(0xA54FF53A5F1D36F1); in mbedtls_sha512_starts()
269 ctx->state[4] = UL64(0x510E527FADE682D1); in mbedtls_sha512_starts()
270 ctx->state[5] = UL64(0x9B05688C2B3E6C1F); in mbedtls_sha512_starts()
271 ctx->state[6] = UL64(0x1F83D9ABFB41BD6B); in mbedtls_sha512_starts()
272 ctx->state[7] = UL64(0x5BE0CD19137E2179); in mbedtls_sha512_starts()
276 ctx->state[0] = UL64(0xCBBB9D5DC1059ED8); in mbedtls_sha512_starts()
277 ctx->state[1] = UL64(0x629A292A367CD507); in mbedtls_sha512_starts()
[all …]
Dripemd160.c56 ctx->state[0] = 0x67452301; in mbedtls_ripemd160_starts()
57 ctx->state[1] = 0xEFCDAB89; in mbedtls_ripemd160_starts()
58 ctx->state[2] = 0x98BADCFE; in mbedtls_ripemd160_starts()
59 ctx->state[3] = 0x10325476; in mbedtls_ripemd160_starts()
60 ctx->state[4] = 0xC3D2E1F0; in mbedtls_ripemd160_starts()
93 local.A = local.Ap = ctx->state[0]; in mbedtls_internal_ripemd160_process()
94 local.B = local.Bp = ctx->state[1]; in mbedtls_internal_ripemd160_process()
95 local.C = local.Cp = ctx->state[2]; in mbedtls_internal_ripemd160_process()
96 local.D = local.Dp = ctx->state[3]; in mbedtls_internal_ripemd160_process()
97 local.E = local.Ep = ctx->state[4]; in mbedtls_internal_ripemd160_process()
[all …]
Dmd5.c55 ctx->state[0] = 0x67452301; in mbedtls_md5_starts()
56 ctx->state[1] = 0xEFCDAB89; in mbedtls_md5_starts()
57 ctx->state[2] = 0x98BADCFE; in mbedtls_md5_starts()
58 ctx->state[3] = 0x10325476; in mbedtls_md5_starts()
98 local.A = ctx->state[0]; in mbedtls_internal_md5_process()
99 local.B = ctx->state[1]; in mbedtls_internal_md5_process()
100 local.C = ctx->state[2]; in mbedtls_internal_md5_process()
101 local.D = ctx->state[3]; in mbedtls_internal_md5_process()
187 ctx->state[0] += local.A; in mbedtls_internal_md5_process()
188 ctx->state[1] += local.B; in mbedtls_internal_md5_process()
[all …]
Dsha1.c55 ctx->state[0] = 0x67452301; in mbedtls_sha1_starts()
56 ctx->state[1] = 0xEFCDAB89; in mbedtls_sha1_starts()
57 ctx->state[2] = 0x98BADCFE; in mbedtls_sha1_starts()
58 ctx->state[3] = 0x10325476; in mbedtls_sha1_starts()
59 ctx->state[4] = 0xC3D2E1F0; in mbedtls_sha1_starts()
107 local.A = ctx->state[0]; in mbedtls_internal_sha1_process()
108 local.B = ctx->state[1]; in mbedtls_internal_sha1_process()
109 local.C = ctx->state[2]; in mbedtls_internal_sha1_process()
110 local.D = ctx->state[3]; in mbedtls_internal_sha1_process()
111 local.E = ctx->state[4]; in mbedtls_internal_sha1_process()
[all …]
Dpsa_crypto_slot_management.h150 if (slot->state != expected_state) { in psa_key_slot_state_transition()
153 slot->state = new_state; in psa_key_slot_state_transition()
173 if ((slot->state != PSA_SLOT_FULL) || in psa_register_read()
Decdsa.c42 } state; member
52 ctx->state = ecdsa_ver_init; in ecdsa_restart_ver_init()
82 } state; member
94 ctx->state = ecdsa_sig_init; in ecdsa_restart_sig_init()
119 } state; member
128 ctx->state = ecdsa_det_init; in ecdsa_restart_det_init()
281 if (rs_ctx->sig->state == ecdsa_sig_mul) { in mbedtls_ecdsa_sign_restartable()
284 if (rs_ctx->sig->state == ecdsa_sig_modn) { in mbedtls_ecdsa_sign_restartable()
312 rs_ctx->sig->state = ecdsa_sig_mul; in mbedtls_ecdsa_sign_restartable()
326 rs_ctx->sig->state = ecdsa_sig_modn; in mbedtls_ecdsa_sign_restartable()
[all …]
Dpsa_crypto_slot_management.c119 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory()
133 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory()
170 slot->state = PSA_SLOT_PENDING_DELETION; in psa_wipe_all_key_slots()
192 if (slot->state == PSA_SLOT_EMPTY) { in psa_reserve_free_key_slot()
198 (slot->state == PSA_SLOT_FULL) && in psa_reserve_free_key_slot()
455 if ((slot->state != PSA_SLOT_FULL) && in psa_unregister_read()
456 (slot->state != PSA_SLOT_PENDING_DELETION)) { in psa_unregister_read()
462 if ((slot->state == PSA_SLOT_PENDING_DELETION) && in psa_unregister_read()
661 if (slot->state == PSA_SLOT_EMPTY) { in mbedtls_psa_get_stats()
Dssl_ticket.c312 unsigned char *state = state_len_bytes + TICKET_CRYPT_LEN_BYTES; in mbedtls_ssl_ticket_write() local
351 state, (size_t) (end - state), in mbedtls_ssl_ticket_write()
362 state, clear_len, in mbedtls_ssl_ticket_write()
363 state, end - state, in mbedtls_ssl_ticket_write()
373 state, clear_len, in mbedtls_ssl_ticket_write()
374 state, (size_t) (end - state), &ciph_len, in mbedtls_ssl_ticket_write()
/openthread-latest/src/core/backbone_router/
Dbbr_leader.cpp148 State state; in UpdateBackboneRouterPrimary() local
156 state = kStateRemoved; in UpdateBackboneRouterPrimary()
160 state = kStateAdded; in UpdateBackboneRouterPrimary()
165 state = kStateToTriggerRereg; in UpdateBackboneRouterPrimary()
171 state = kStateNone; in UpdateBackboneRouterPrimary()
175 state = kStateToTriggerRereg; in UpdateBackboneRouterPrimary()
179 state = kStateRefreshed; in UpdateBackboneRouterPrimary()
183 state = kStateUnchanged; in UpdateBackboneRouterPrimary()
201 LogBackboneRouterPrimary(state, mConfig); in UpdateBackboneRouterPrimary()
204 Get<BackboneRouter::Local>().HandleBackboneRouterPrimaryUpdate(state, mConfig); in UpdateBackboneRouterPrimary()
[all …]
/openthread-latest/script/
Dupdate-makefiles.py77 state = STATE_SEARCH if search_string else STATE_MATCH_START
80 if state == STATE_SEARCH:
83 state = STATE_MATCH_START
84 elif state == STATE_MATCH_START:
88 state = STATE_MATCH_END
89 elif state == STATE_MATCH_END:
92 state = STATE_DONE
96 if state != STATE_DONE:
/openthread-latest/src/cli/
DREADME_JOINER.md13 - [state](#state)
29 state
80 ### state subsection
82 Usage: `joiner state`
84 Print the Joiner state.
94 > joiner state
DREADME_SRP_CLIENT.md16 - [state](#state)
38 state
101 name:"dev4312", state:Registered, addrs:[fd00:0:0:0:0:0:0:1]
103 instance:"ins2", name:"_test2._udp", state:Registered, port:111, priority:1, weight:1
104 … instance:"ins1", name:"_test1._udp,_sub1,_sub2", state:Registered, port:777, priority:0, weight:0
112 name:"dev4312", state:Registered, addrs:[fd00:0:0:0:0:0:0:1]
114 instance:"ins1", name:"_test1._udp", state:Registered, port:777, priority:0, weight:0
116 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Removed, port:111, priority:1, weight:1
124 name:"dev4312", state:Removed, addrs:[fd00:0:0:0:0:0:0:1]
127 instance:"ins1", name:"_test1._udp", state:Removed, port:777, priority:0, weight:0
[all …]
DREADME_SRP_SERVER.md19 - [state](#state)
41 state
225 ### state subsection
227 Usage: `srp server state`
229 Print the state of the SRP server. It could be `disabled`, `stopped` or `running`.
236 > srp server state
/openthread-latest/third_party/mbedtls/repo/tests/src/
Dthreading_helpers.c207 mutex->state = MUTEX_IDLE; in mbedtls_test_wrap_mutex_init()
220 switch (mutex->state) { in mbedtls_test_wrap_mutex_free()
225 mutex->state = MUTEX_FREED; in mbedtls_test_wrap_mutex_free()
252 switch (mutex->state) { in mbedtls_test_wrap_mutex_lock()
258 mutex->state = MUTEX_LOCKED; in mbedtls_test_wrap_mutex_lock()
283 switch (mutex->state) { in mbedtls_test_wrap_mutex_unlock()
291 mutex->state = MUTEX_IDLE; in mbedtls_test_wrap_mutex_unlock()
/openthread-latest/tests/toranj/ncp/
Dtest-039-address-cache-table-snoop.py144 verify(entry.state == wpan.ADDRESS_CACHE_ENTRY_STATE_QUERY)
159 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY)
184 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY)
203 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_QUERY)
230 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_SNOOPED)
256 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_CACHED)
279 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_CACHED)
298 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_CACHED)
317 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_CACHED)
348 snooped_entries = [entry for entry in cache_table if entry.state == wpan.ADDRESS_CACHE_ENTRY_STATE_…
[all …]
/openthread-latest/src/core/api/
Dborder_agent_api.cpp59 otBorderAgentState state = OT_BORDER_AGENT_STATE_STOPPED; in otBorderAgentGetState() local
66 state = OT_BORDER_AGENT_STATE_STARTED; in otBorderAgentGetState()
70 state = OT_BORDER_AGENT_STATE_ACTIVE; in otBorderAgentGetState()
74 return state; in otBorderAgentGetState()
/openthread-latest/tests/scripts/thread-cert/
DCert_8_3_01_CommissionerPetition.py151 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT
190 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT
204 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT
243 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT
284 p.thread_meshcop.tlv.state == MESHCOP_REJECT
306 p.thread_meshcop.tlv.state == MESHCOP_REJECT
360 p.thread_meshcop.tlv.state == MESHCOP_ACCEPT and\
DCert_9_2_04_ActiveDataset.py216 lambda p: p.thread_meshcop.tlv.state == 1).must_next()
237 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
248 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
260 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
272 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
283 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
293 lambda p: p.thread_meshcop.tlv.state == -1).must_next()
304 lambda p: p.thread_meshcop.tlv.state == 1).must_next()
315 lambda p: p.thread_meshcop.tlv.state == 1).must_next()
/openthread-latest/src/core/meshcop/
Dmeshcop_leader.cpp72 StateTlv::State state = StateTlv::kReject; in HandleTmf() local
93 state = StateTlv::kAccept; in HandleTmf()
97 SendPetitionResponse(aMessage, aMessageInfo, state); in HandleTmf()
133 uint8_t state; in HandleTmf() local
142 SuccessOrExit(Tlv::Find<StateTlv>(aMessage, state)); in HandleTmf()
152 else if (state != StateTlv::kAccept) in HandleTmf()

123456