/openthread-3.4.0/tests/unit/ |
D | test_link_quality.cpp | 153 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 …]
|
D | test_spinel_buffer.cpp | 334 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/ |
D | test-031-meshcop-joiner-commissioner.py | 49 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())
|
D | test-016-neighbor-table.py | 79 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/ |
D | load_roots.c | 141 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()
|
D | cert_app.c | 160 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/ |
D | blowfish.c | 152 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()
|
D | gcm.c | 80 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 …]
|
D | arc4.c | 64 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()
|
D | bignum.c | 343 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 …]
|
D | md2.c | 119 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()
|
D | aria.c | 394 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 …]
|
D | cmac.c | 172 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()
|
D | ctr_drbg.c | 137 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()
|
D | pkcs12.c | 263 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()
|
D | entropy.c | 667 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()
|
D | pkcs5.c | 225 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()
|
D | camellia.c | 909 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()
|
D | des.c | 861 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()
|
D | sha256.c | 506 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/ |
D | ssl_test_common_source.c | 69 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/ |
D | test_suite_des.function | 231 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 );
|
D | test_suite_entropy.function | 237 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/ |
D | aes_ccm.cpp | 205 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/ |
D | ip6_mpl.cpp | 288 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()
|