Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 63) sorted by relevance

123

/openthread-latest/tests/unit/
Dtest_link_quality.cpp153 size_t i, j, k; in TestRssAveraging() local
190 for (j = 0; j < sizeof(rssValues); j++) in TestRssAveraging()
193 rss = rssValues[j]; in TestRssAveraging()
211 for (j = 0; j < sizeof(rssValues); j++) in TestRssAveraging()
213 rss = rssValues[j]; in TestRssAveraging()
217 if (k == j) in TestRssAveraging()
238 for (j = 0; j < sizeof(rssValues); j++) in TestRssAveraging()
240 rss = rssValues[j]; in TestRssAveraging()
244 if (k == j) in TestRssAveraging()
272 for (j = 0; j < sizeof(rssValues); j++) in TestRssAveraging()
[all …]
Dtest_spinel_buffer.cpp334 unsigned i, j; in TestBuffer() local
382 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
393 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
404 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
407 …WriteTestFrame1(ncpBuffer, ((j % 5) == 0) ? Spinel::Buffer::kPriorityHigh : Spinel::Buffer::kPrior… in TestBuffer()
434 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
517 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
519 bool frame1IsHighPriority = ((j % 3) == 0); in TestBuffer()
526 …ncpBuffer.InFrameBegin((j % 2) == 0 ? Spinel::Buffer::kPriorityHigh : Spinel::Buffer::kPriorityLow… in TestBuffer()
775 for (j = 0; j < kTestIterationAttemps; j++) in TestBuffer()
[all …]
/openthread-latest/tests/toranj/ncp/
Dtest-031-meshcop-joiner-commissioner.py49 j = wpan.Node() variable
68 joiner_hw_addr = j.get(wpan.WPAN_HW_ADDRESS)[1:-1] # Remove the `[]`
75 j.joiner_join(PSKd)
78 verify(j.get(wpan.WPAN_STATE) == wpan.STATE_COMMISSIONED)
80 j.joiner_attach()
84 verify(j.is_associated())
Dtest-016-neighbor-table.py79 for j in range(NUM_ROUTERS):
80 if i != j:
81 routers[i].allowlist_node(routers[j])
/openthread-latest/third_party/mbedtls/repo/programs/x509/
Dload_roots.c83 unsigned i, j; in main() local
117 for (j = 0; p + j < q; j++) { in main()
118 if (argv[i][j] >= 'A' && argv[i][j] <= 'Z') { in main()
119 argv[i][j] |= 0x20; in main()
Dcert_app.c130 int i, j; in main() local
185 for (j = 0; p + j < q; j++) { in main()
186 if (argv[i][j] >= 'A' && argv[i][j] <= 'Z') { in main()
187 argv[i][j] |= 0x20; in main()
/openthread-latest/third_party/mbedtls/repo/library/
Dbignum.c458 for (size_t j = 0; j < biL; j++, count++) { in mbedtls_mpi_lsb() local
459 if (((X->p[i] >> j) & 1) != 0) { in mbedtls_mpi_lsb()
515 size_t i, j, slen, n; in mbedtls_mpi_read_string() local
548 for (i = slen, j = 0; i > 0; i--, j++) { in mbedtls_mpi_read_string()
550 X->p[j / (2 * ciL)] |= d << ((j % (2 * ciL)) << 2); in mbedtls_mpi_read_string()
660 size_t i, j, k; in mbedtls_mpi_write_string() local
663 for (j = ciL; j > 0; j--) { in mbedtls_mpi_write_string()
664 c = (X->p[i - 1] >> ((j - 1) << 3)) & 0xFF; in mbedtls_mpi_write_string()
666 if (c == 0 && k == 0 && (i + j) != 2) { in mbedtls_mpi_write_string()
895 size_t i, j; in mbedtls_mpi_cmp_abs() local
[all …]
Daria.c325 uint8_t i, j; in aria_rot128() local
331 j = (n / 32) % 4; // initial word offset in aria_rot128()
332 t = ARIA_P3(b[j]); // big endian in aria_rot128()
334 j = (j + 1) % 4; // get next word, big endian in aria_rot128()
335 u = ARIA_P3(b[j]); in aria_rot128()
412 int i, j, k, ret; in mbedtls_aria_setkey_dec() local
420 for (i = 0, j = ctx->nr; i < j; i++, j--) { in mbedtls_aria_setkey_dec()
423 ctx->rk[i][k] = ctx->rk[j][k]; in mbedtls_aria_setkey_dec()
424 ctx->rk[j][k] = t; in mbedtls_aria_setkey_dec()
819 size_t j; in mbedtls_aria_self_test() local
[all …]
Dcmac.c143 size_t j; in cmac_pad() local
145 for (j = 0; j < padded_block_len; j++) { in cmac_pad()
146 if (j < last_block_len) { in cmac_pad()
147 padded_block[j] = last_block[j]; in cmac_pad()
148 } else if (j == last_block_len) { in cmac_pad()
149 padded_block[j] = 0x80; in cmac_pad()
151 padded_block[j] = 0x00; in cmac_pad()
204 size_t n, j, olen, block_size; in mbedtls_cipher_cmac_update() local
244 for (j = 1; j < n; j++) { in mbedtls_cipher_cmac_update()
Dgcm.c101 int ret, i, j; in gcm_gen_table() local
150 for (j = 1; j < i; j++) { in gcm_gen_table()
151 mbedtls_xor_no_simd((unsigned char *) ctx->H[i+j], in gcm_gen_table()
153 (unsigned char *) ctx->H[j], in gcm_gen_table()
1022 int i, j, ret; in mbedtls_gcm_self_test() local
1049 for (j = 0; j < loop_limit; j++) { in mbedtls_gcm_self_test()
1050 int key_len = 128 + 64 * j; in mbedtls_gcm_self_test()
1095 if (memcmp(buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test()
1097 memcmp(tag_buf, tag_test_data[j * 6 + i], 16) != 0) { in mbedtls_gcm_self_test()
1128 ct_test_data[j * 6 + i], buf, 16, tag_buf); in mbedtls_gcm_self_test()
[all …]
Dentropy.c605 size_t i, j; in mbedtls_entropy_self_test() local
641 for (j = 0; j < sizeof(buf); j++) { in mbedtls_entropy_self_test()
642 acc[j] |= buf[j]; in mbedtls_entropy_self_test()
646 for (j = 0; j < sizeof(buf); j++) { in mbedtls_entropy_self_test()
647 if (acc[j] == 0) { in mbedtls_entropy_self_test()
Dctr_drbg.c182 int i, j; in block_cipher_df() local
230 for (j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE) { in block_cipher_df()
256 memcpy(tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE); in block_cipher_df()
284 for (j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE) { in block_cipher_df()
337 int j; in ctr_drbg_update_internal() local
346 for (j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE) { in ctr_drbg_update_internal()
Dpkcs12.c332 unsigned int j; in mbedtls_pkcs12_derivation() local
409 j = salt_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
410 c = MBEDTLS_BYTE_1(j); in mbedtls_pkcs12_derivation()
411 salt_block[i - 1] = MBEDTLS_BYTE_0(j); in mbedtls_pkcs12_derivation()
419 j = pwd_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
420 c = MBEDTLS_BYTE_1(j); in mbedtls_pkcs12_derivation()
421 pwd_block[i - 1] = MBEDTLS_BYTE_0(j); in mbedtls_pkcs12_derivation()
Dcamellia.c864 int i, j, u, v; in mbedtls_camellia_self_test() local
884 for (j = 0; j < 6; j++) { in mbedtls_camellia_self_test()
885 u = j >> 1; in mbedtls_camellia_self_test()
886 v = j & 1; in mbedtls_camellia_self_test()
941 for (j = 0; j < 6; j++) { in mbedtls_camellia_self_test()
942 u = j >> 1; in mbedtls_camellia_self_test()
943 v = j & 1; in mbedtls_camellia_self_test()
Daesce.c296 int i, j; in mbedtls_aesce_inverse_key() local
297 j = nr; in mbedtls_aesce_inverse_key()
298 vst1q_u8(invkey, vld1q_u8(fwdkey + j * 16)); in mbedtls_aesce_inverse_key()
299 for (i = 1, j--; j > 0; i++, j--) { in mbedtls_aesce_inverse_key()
301 vaesimcq_u8(vld1q_u8(fwdkey + j * 16))); in mbedtls_aesce_inverse_key()
303 vst1q_u8(invkey + i * 16, vld1q_u8(fwdkey + j * 16)); in mbedtls_aesce_inverse_key()
Decp.c1787 size_t i, j; in ecp_comb_recode_core() local
1794 for (j = 0; j < w; j++) { in ecp_comb_recode_core()
1795 x[i] |= mbedtls_mpi_get_bit(m, i + d * j) << j; in ecp_comb_recode_core()
1856 size_t j = 0; in ecp_precompute_comb() local
1901 j = rs_ctx->rsm->i; in ecp_precompute_comb()
1904 j = 0; in ecp_precompute_comb()
1906 for (; j < d * (w - 1); j++) { in ecp_precompute_comb()
1909 i = 1U << (j / d); in ecp_precompute_comb()
1912 if (j % d == 0) { in ecp_precompute_comb()
1933 j = 0; in ecp_precompute_comb()
[all …]
Ddes.c836 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local
894 for (j = 0; j < 100; j++) { in mbedtls_des_self_test()
977 for (j = 0; j < 100; j++) { in mbedtls_des_self_test()
988 for (j = 0; j < 100; j++) { in mbedtls_des_self_test()
Dx509.c815 size_t i, j, n, asn1_len_size, asn1_tag_size, asn1_tag_len_buf_start; in mbedtls_x509_dn_gets() local
876 for (i = 0, j = 1; i < asn1_len_size + asn1_tag_size; i++) { in mbedtls_x509_dn_gets()
877 if (j + 1 >= sizeof(s) - 1) { in mbedtls_x509_dn_gets()
883 s[j++] = nibble_to_hex_digit(highbits); in mbedtls_x509_dn_gets()
884 s[j++] = nibble_to_hex_digit(lowbits); in mbedtls_x509_dn_gets()
887 if (j + 1 >= sizeof(s) - 1) { in mbedtls_x509_dn_gets()
893 s[j++] = nibble_to_hex_digit(highbits); in mbedtls_x509_dn_gets()
894 s[j++] = nibble_to_hex_digit(lowbits); in mbedtls_x509_dn_gets()
897 for (i = 0, j = 0; i < name->val.len; i++, j++) { in mbedtls_x509_dn_gets()
898 if (j >= sizeof(s) - 1) { in mbedtls_x509_dn_gets()
[all …]
/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_test_common_source.c50 size_t j; in nss_keylog_export() local
64 for (j = 0; j < client_random_len; j++) { in nss_keylog_export()
66 "%02x", client_random[j]); in nss_keylog_export()
71 for (j = 0; j < secret_len; j++) { in nss_keylog_export()
73 "%02x", secret[j]); in nss_keylog_export()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_des.function235 int i, j, cnt;
245 for (j = 0; j < 8; j++) {
246 key[j] = cnt++;
255 for (j = 0; j < 8; j++) {
256 parity = key[j] ^ (key[j] >> 4);
Dtest_suite_common.function70 for (size_t j = 0; j < n; j++) {
71 r1[j + r_off] = a[j + a_off] ^ b[j + b_off];
Dtest_suite_entropy.function250 size_t i, j;
261 for (j = 0; j < sizeof(buf); j++) {
262 acc[j] |= buf[j];
267 for (j = 0; j < (size_t) len; j++) {
268 TEST_ASSERT(acc[j] != 0);
272 for (j = len; j < sizeof(buf); j++) {
273 TEST_ASSERT(acc[j] == 0);
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dpsa_hash.c145 for (size_t j = 0; j < expected_hash_len; j++) { in main() local
146 mbedtls_printf("%02x", hash[j]); in main()
/openthread-latest/src/posix/platform/
Dspinel_manager.cpp155 … for (uint8_t i = 0, j = 1; iidListString[i] != '\0' && j < Spinel::kSpinelHeaderMaxNumIid; i++) in GetIidListFromUrl() local
159 j++; in GetIidListFromUrl()
169 aIidList[j] = iidListString[i] - '0'; in GetIidListFromUrl()
170 … VerifyOrDie(aIidList[j] < Spinel::kSpinelHeaderMaxNumIid, OT_EXIT_INVALID_ARGUMENTS); in GetIidListFromUrl()
/openthread-latest/src/core/net/
Dip6_mpl.cpp281 int j = 0; in HandleTimeTick() local
289 mSeedSet[j++] = mSeedSet[i]; in HandleTimeTick()
294 for (; j < kNumSeedEntries && mSeedSet[j].mLifetime; j++) in HandleTimeTick()
296 mSeedSet[j].mLifetime = 0; in HandleTimeTick()

123