Home
last modified time | relevance | path

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

123

/openthread-3.4.0/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-3.4.0/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-3.4.0/third_party/mbedtls/repo/programs/x509/
Dload_roots.c141 unsigned i, j; in main() local
166 for( j = 0; p + j < q; j++ ) in main()
168 if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' ) in main()
169 argv[i][j] |= 0x20; in main()
Dcert_app.c160 int i, j; in main() local
206 for( j = 0; p + j < q; j++ ) in main()
208 if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' ) in main()
209 argv[i][j] |= 0x20; in main()
/openthread-3.4.0/third_party/mbedtls/repo/library/
Dblowfish.c152 unsigned int i, j, k; in mbedtls_blowfish_setkey() local
168 for( j = 0; j < 256; j++ ) in mbedtls_blowfish_setkey()
169 ctx->S[i][j] = S[i][j]; in mbedtls_blowfish_setkey()
172 j = 0; in mbedtls_blowfish_setkey()
178 data = ( data << 8 ) | key[j++]; in mbedtls_blowfish_setkey()
179 if( j >= keybits ) in mbedtls_blowfish_setkey()
180 j = 0; in mbedtls_blowfish_setkey()
197 for( j = 0; j < 256; j += 2 ) in mbedtls_blowfish_setkey()
200 ctx->S[i][j] = datal; in mbedtls_blowfish_setkey()
201 ctx->S[i][j + 1] = datar; in mbedtls_blowfish_setkey()
Dgcm.c80 int ret, i, j; in gcm_gen_table() local
128 for( j = 1; j < i; j++ ) in gcm_gen_table()
130 HiH[j] = vh ^ ctx->HH[j]; in gcm_gen_table()
131 HiL[j] = vl ^ ctx->HL[j]; in gcm_gen_table()
760 int i, j, ret; in mbedtls_gcm_self_test() local
763 for( j = 0; j < 3; j++ ) in mbedtls_gcm_self_test()
765 int key_len = 128 + 64 * j; in mbedtls_gcm_self_test()
813 if ( memcmp( buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test()
815 memcmp( tag_buf, tag_test_data[j * 6 + i], 16 ) != 0 ) in mbedtls_gcm_self_test()
844 ct_test_data[j * 6 + i], buf, 16, tag_buf ); in mbedtls_gcm_self_test()
[all …]
Darc4.c64 int i, j, a; in mbedtls_arc4_setup() local
75 j = k = 0; in mbedtls_arc4_setup()
82 j = ( j + a + key[k] ) & 0xFF; in mbedtls_arc4_setup()
83 m[i] = m[j]; in mbedtls_arc4_setup()
84 m[j] = (unsigned char) a; in mbedtls_arc4_setup()
Dbignum.c343 size_t i, j, count = 0; in mbedtls_mpi_lsb() local
347 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb()
348 if( ( ( X->p[i] >> j ) & 1 ) != 0 ) in mbedtls_mpi_lsb()
359 size_t j; in mbedtls_clz() local
362 for( j = 0; j < biL; j++ ) in mbedtls_clz()
369 return j; in mbedtls_clz()
377 size_t i, j; in mbedtls_mpi_bitlen() local
386 j = biL - mbedtls_clz( X->p[i] ); in mbedtls_mpi_bitlen()
388 return( ( i * biL ) + j ); in mbedtls_mpi_bitlen()
422 size_t i, j, slen, n; in mbedtls_mpi_read_string() local
[all …]
Dmd2.c119 int i, j; in mbedtls_internal_md2_process() local
131 for( j = 0; j < 48; j++ ) in mbedtls_internal_md2_process()
133 ctx->state[j] = (unsigned char) in mbedtls_internal_md2_process()
134 ( ctx->state[j] ^ PI_SUBST[t] ); in mbedtls_internal_md2_process()
135 t = ctx->state[j]; in mbedtls_internal_md2_process()
Daria.c394 uint8_t i, j; in aria_rot128() local
400 j = ( n / 32 ) % 4; // initial word offset in aria_rot128()
401 t = ARIA_P3( b[j] ); // big endian in aria_rot128()
404 j = ( j + 1 ) % 4; // get next word, big endian in aria_rot128()
405 u = ARIA_P3( b[j] ); in aria_rot128()
485 int i, j, k, ret; in mbedtls_aria_setkey_dec() local
494 for( i = 0, j = ctx->nr; i < j; i++, j-- ) in mbedtls_aria_setkey_dec()
499 ctx->rk[i][k] = ctx->rk[j][k]; in mbedtls_aria_setkey_dec()
500 ctx->rk[j][k] = t; in mbedtls_aria_setkey_dec()
919 size_t j; in mbedtls_aria_self_test() local
[all …]
Dcmac.c172 size_t j; in cmac_pad() local
174 for( j = 0; j < padded_block_len; j++ ) in cmac_pad()
176 if( j < last_block_len ) in cmac_pad()
177 padded_block[j] = last_block[j]; in cmac_pad()
178 else if( j == last_block_len ) in cmac_pad()
179 padded_block[j] = 0x80; in cmac_pad()
181 padded_block[j] = 0x00; in cmac_pad()
231 size_t n, j, olen, block_size; in mbedtls_cipher_cmac_update() local
268 for( j = 1; j < n; j++ ) in mbedtls_cipher_cmac_update()
Dctr_drbg.c137 int i, j; in block_cipher_df() local
175 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in block_cipher_df()
196 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df()
215 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in block_cipher_df()
258 int i, j; in ctr_drbg_update_internal() local
263 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in ctr_drbg_update_internal()
Dpkcs12.c263 unsigned int j; in mbedtls_pkcs12_derivation() local
372 j = salt_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
373 c = MBEDTLS_BYTE_1( j ); in mbedtls_pkcs12_derivation()
374 salt_block[i - 1] = MBEDTLS_BYTE_0( j ); in mbedtls_pkcs12_derivation()
384 j = pwd_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
385 c = MBEDTLS_BYTE_1( j ); in mbedtls_pkcs12_derivation()
386 pwd_block[i - 1] = MBEDTLS_BYTE_0( j ); in mbedtls_pkcs12_derivation()
Dentropy.c667 size_t i, j; in mbedtls_entropy_self_test() local
701 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test()
702 acc[j] |= buf[j]; in mbedtls_entropy_self_test()
705 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test()
707 if( acc[j] == 0 ) in mbedtls_entropy_self_test()
Dpkcs5.c225 int j; in mbedtls_pkcs5_pbkdf2_hmac() local
277 for( j = 0; j < md_size; j++ ) in mbedtls_pkcs5_pbkdf2_hmac()
278 work[j] ^= md1[j]; in mbedtls_pkcs5_pbkdf2_hmac()
Dcamellia.c909 int i, j, u, v; in mbedtls_camellia_self_test() local
929 for( j = 0; j < 6; j++ ) { in mbedtls_camellia_self_test()
930 u = j >> 1; in mbedtls_camellia_self_test()
931 v = j & 1; in mbedtls_camellia_self_test()
971 for( j = 0; j < 6; j++ ) in mbedtls_camellia_self_test()
973 u = j >> 1; in mbedtls_camellia_self_test()
974 v = j & 1; in mbedtls_camellia_self_test()
Ddes.c861 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local
919 for( j = 0; j < 100; j++ ) in mbedtls_des_self_test()
1000 for( j = 0; j < 100; j++ ) in mbedtls_des_self_test()
1012 for( j = 0; j < 100; j++ ) in mbedtls_des_self_test()
Dsha256.c506 int i, j, k, buflen, ret = 0; in mbedtls_sha256_self_test() local
524 j = i % 3; in mbedtls_sha256_self_test()
528 mbedtls_printf( " SHA-%d test #%d: ", 256 - k * 32, j + 1 ); in mbedtls_sha256_self_test()
533 if( j == 2 ) in mbedtls_sha256_self_test()
537 for( j = 0; j < 1000; j++ ) in mbedtls_sha256_self_test()
547 ret = mbedtls_sha256_update_ret( &ctx, sha256_test_buf[j], in mbedtls_sha256_self_test()
548 sha256_test_buflen[j] ); in mbedtls_sha256_self_test()
/openthread-3.4.0/third_party/mbedtls/repo/programs/ssl/
Dssl_test_common_source.c69 size_t j; in nss_keylog_export() local
83 for( j = 0; j < client_random_len; j++ ) in nss_keylog_export()
86 "%02x", client_random[j] ); in nss_keylog_export()
91 for( j = 0; j < master_secret_len; j++ ) in nss_keylog_export()
94 "%02x", ms[j] ); in nss_keylog_export()
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_des.function231 int i, j, cnt;
242 for( j = 0; j < 8; j++ )
243 key[j] = cnt++;
251 for( j = 0; j < 8; j++ )
253 parity = key[j] ^ ( key[j] >> 4 );
Dtest_suite_entropy.function237 size_t i, j;
247 for( j = 0; j < sizeof( buf ); j++ )
248 acc[j] |= buf[j];
252 for( j = 0; j < (size_t) len; j++ )
253 TEST_ASSERT( acc[j] != 0 );
255 for( j = len; j < sizeof( buf ); j++ )
256 TEST_ASSERT( acc[j] == 0 );
/openthread-3.4.0/src/core/crypto/
Daes_ccm.cpp205 for (int j = sizeof(mCtr) - 1; j > mNonceLength; j--) in Payload() local
207 if (++mCtr[j]) in Payload()
/openthread-3.4.0/src/core/net/
Dip6_mpl.cpp288 int j = 0; in HandleTimeTick() local
296 mSeedSet[j++] = mSeedSet[i]; in HandleTimeTick()
301 for (; j < kNumSeedEntries && mSeedSet[j].mLifetime; j++) in HandleTimeTick()
303 mSeedSet[j].mLifetime = 0; in HandleTimeTick()

123