/net-tools-3.4.0/libcoap/src/ |
D | hashkey.c | 16 size_t j; in coap_hash_impl() local 19 j = sizeof(coap_key_t)-1; in coap_hash_impl() 21 while (j) { in coap_hash_impl() 22 h[j] = ((h[j] << 7) | (h[j-1] >> 1)) + h[j]; in coap_hash_impl() 23 --j; in coap_hash_impl()
|
/net-tools-3.4.0/tinydtls-0.8.2/sha2/ |
D | sha2.c | 386 REVERSE32(*data++, W256[j]); \ 388 K256[j] + W256[j]; \ 391 j++ 398 K256[j] + (W256[j] = *data++); \ 401 j++ 406 s0 = W256[(j+1)&0x0f]; \ 408 s1 = W256[(j+14)&0x0f]; \ 410 T1 = (h) + Sigma1_256(e) + Ch((e), (f), (g)) + K256[j] + \ 411 (W256[j&0x0f] += s1 + W256[(j+9)&0x0f] + s0); \ 414 j++ [all …]
|
D | sha2speed.c | 68 int bytes, blocks, rep, i, j; in main() local 105 for (j = 0; j < blocks; j++) { in main() 121 for (j = 0; j < blocks; j++) { in main() 137 for (j = 0; j < blocks; j++) { in main()
|
/net-tools-3.4.0/virtual-hub/src/ |
D | graphs.c | 35 for (int j = 0; j < n; j++) { in create_matrix() local 36 matrix[i][j] = 0.0; in create_matrix() 65 for (int j = 0; j < n; j++) { in print_matrix() local 66 printf(" %1.2f ", m[i][j]); in print_matrix()
|
/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | base64.c | 148 uint32_t j, x; in mbedtls_base64_decode() local 152 for( i = n = j = 0; i < slen; i++ ) in mbedtls_base64_decode() 177 if( src[i] == '=' && ++j > 2 ) in mbedtls_base64_decode() 183 if( base64_dec_map[src[i]] < 64 && j != 0 ) in mbedtls_base64_decode() 196 n -= j; in mbedtls_base64_decode() 204 for( j = 3, n = x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode() 209 j -= ( base64_dec_map[*src] == 64 ); in mbedtls_base64_decode() 215 if( j > 0 ) *p++ = (unsigned char)( x >> 16 ); in mbedtls_base64_decode() 216 if( j > 1 ) *p++ = (unsigned char)( x >> 8 ); in mbedtls_base64_decode() 217 if( j > 2 ) *p++ = (unsigned char)( x ); in mbedtls_base64_decode()
|
D | bignum.c | 349 size_t i, j, count = 0; in mbedtls_mpi_lsb() local 352 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb() 353 if( ( ( X->p[i] >> j ) & 1 ) != 0 ) in mbedtls_mpi_lsb() 364 size_t j; in mbedtls_clz() local 367 for( j = 0; j < biL; j++ ) in mbedtls_clz() 374 return j; in mbedtls_clz() 382 size_t i, j; in mbedtls_mpi_bitlen() local 391 j = biL - mbedtls_clz( X->p[i] ); in mbedtls_mpi_bitlen() 393 return( ( i * biL ) + j ); in mbedtls_mpi_bitlen() 427 size_t i, j, slen, n; in mbedtls_mpi_read_string() local [all …]
|
D | blowfish.c | 177 unsigned int i, j, k; in mbedtls_blowfish_setkey() local 190 for( j = 0; j < 256; j++ ) in mbedtls_blowfish_setkey() 191 ctx->S[i][j] = S[i][j]; in mbedtls_blowfish_setkey() 194 j = 0; in mbedtls_blowfish_setkey() 200 data = ( data << 8 ) | key[j++]; in mbedtls_blowfish_setkey() 201 if( j >= keybits ) in mbedtls_blowfish_setkey() 202 j = 0; in mbedtls_blowfish_setkey() 219 for( j = 0; j < 256; j += 2 ) in mbedtls_blowfish_setkey() 222 ctx->S[i][j] = datal; in mbedtls_blowfish_setkey() 223 ctx->S[i][j + 1] = datar; in mbedtls_blowfish_setkey()
|
D | gcm.c | 103 int ret, i, j; in gcm_gen_table() local 151 for( j = 1; j < i; j++ ) in gcm_gen_table() 153 HiH[j] = vh ^ ctx->HH[j]; in gcm_gen_table() 154 HiL[j] = vl ^ ctx->HL[j]; in gcm_gen_table() 742 int i, j, ret; in mbedtls_gcm_self_test() local 747 for( j = 0; j < 3; j++ ) in mbedtls_gcm_self_test() 749 int key_len = 128 + 64 * j; in mbedtls_gcm_self_test() 766 memcmp( buf, ct[j * 6 + i], pt_len[i] ) != 0 || in mbedtls_gcm_self_test() 767 memcmp( tag_buf, tag[j * 6 + i], 16 ) != 0 ) in mbedtls_gcm_self_test() 790 ct[j * 6 + i], buf, 16, tag_buf ); in mbedtls_gcm_self_test() [all …]
|
D | arc4.c | 74 int i, j, a; in mbedtls_arc4_setup() local 85 j = k = 0; in mbedtls_arc4_setup() 92 j = ( j + a + key[k] ) & 0xFF; in mbedtls_arc4_setup() 93 m[i] = m[j]; in mbedtls_arc4_setup() 94 m[j] = (unsigned char) a; in mbedtls_arc4_setup()
|
D | md2.c | 119 int i, j; in mbedtls_md2_process() local 131 for( j = 0; j < 48; j++ ) in mbedtls_md2_process() 133 ctx->state[j] = (unsigned char) in mbedtls_md2_process() 134 ( ctx->state[j] ^ PI_SUBST[t] ); in mbedtls_md2_process() 135 t = ctx->state[j]; in mbedtls_md2_process()
|
D | ctr_drbg.c | 152 int i, j; in block_cipher_df() local 188 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in block_cipher_df() 205 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df() 220 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in block_cipher_df() 237 int i, j; in ctr_drbg_update_internal() local 241 for( j = 0; j < MBEDTLS_CTR_DRBG_SEEDLEN; j += MBEDTLS_CTR_DRBG_BLOCKSIZE ) in ctr_drbg_update_internal()
|
D | cmac.c | 189 size_t j; in cmac_pad() local 191 for( j = 0; j < padded_block_len; j++ ) in cmac_pad() 193 if( j < last_block_len ) in cmac_pad() 194 padded_block[j] = last_block[j]; in cmac_pad() 195 else if( j == last_block_len ) in cmac_pad() 196 padded_block[j] = 0x80; in cmac_pad() 198 padded_block[j] = 0x00; in cmac_pad() 247 int n, j, ret = 0; in mbedtls_cipher_cmac_update() local 284 for( j = 0; j < n - 1; j++ ) in mbedtls_cipher_cmac_update()
|
D | debug.c | 219 int j, k, zeros = 1; in mbedtls_debug_print_mpi() local 229 for( j = ( sizeof(mbedtls_mpi_uint) << 3 ) - 1; j >= 0; j-- ) in mbedtls_debug_print_mpi() 230 if( ( ( X->p[n] >> j ) & 1 ) != 0 ) in mbedtls_debug_print_mpi() 234 text, (int) ( ( n * ( sizeof(mbedtls_mpi_uint) << 3 ) ) + j + 1 ) ); in mbedtls_debug_print_mpi() 239 for( i = n + 1, j = 0; i > 0; i-- ) in mbedtls_debug_print_mpi() 251 if( j % 16 == 0 ) in mbedtls_debug_print_mpi() 253 if( j > 0 ) in mbedtls_debug_print_mpi() 264 j++; in mbedtls_debug_print_mpi()
|
D | entropy.c | 585 size_t i, j; in mbedtls_entropy_self_test() local 619 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test() 620 acc[j] |= buf[j]; in mbedtls_entropy_self_test() 623 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test() 625 if( acc[j] == 0 ) in mbedtls_entropy_self_test()
|
D | pkcs12.c | 254 unsigned int j; in mbedtls_pkcs12_derivation() local 337 j = salt_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation() 338 c = (unsigned char) (j >> 8); in mbedtls_pkcs12_derivation() 339 salt_block[i - 1] = j & 0xFF; in mbedtls_pkcs12_derivation() 346 j = pwd_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation() 347 c = (unsigned char) (j >> 8); in mbedtls_pkcs12_derivation() 348 pwd_block[i - 1] = j & 0xFF; in mbedtls_pkcs12_derivation()
|
D | sha256.c | 394 int i, j, k, buflen, ret = 0; in mbedtls_sha256_self_test() local 412 j = i % 3; in mbedtls_sha256_self_test() 416 mbedtls_printf( " SHA-%d test #%d: ", 256 - k * 32, j + 1 ); in mbedtls_sha256_self_test() 420 if( j == 2 ) in mbedtls_sha256_self_test() 424 for( j = 0; j < 1000; j++ ) in mbedtls_sha256_self_test() 428 mbedtls_sha256_update( &ctx, sha256_test_buf[j], in mbedtls_sha256_self_test() 429 sha256_test_buflen[j] ); in mbedtls_sha256_self_test()
|
D | sha512.c | 450 int i, j, k, buflen, ret = 0; in mbedtls_sha512_self_test() local 468 j = i % 3; in mbedtls_sha512_self_test() 472 mbedtls_printf( " SHA-%d test #%d: ", 512 - k * 128, j + 1 ); in mbedtls_sha512_self_test() 476 if( j == 2 ) in mbedtls_sha512_self_test() 480 for( j = 0; j < 1000; j++ ) in mbedtls_sha512_self_test() 484 mbedtls_sha512_update( &ctx, sha512_test_buf[j], in mbedtls_sha512_self_test() 485 sha512_test_buflen[j] ); in mbedtls_sha512_self_test()
|
D | pkcs5.c | 222 int ret, j; in mbedtls_pkcs5_pbkdf2_hmac() local 270 for( j = 0; j < md_size; j++ ) in mbedtls_pkcs5_pbkdf2_hmac() 271 work[j] ^= md1[j]; in mbedtls_pkcs5_pbkdf2_hmac()
|
D | camellia.c | 896 int i, j, u, v; in mbedtls_camellia_self_test() local 914 for( j = 0; j < 6; j++ ) { in mbedtls_camellia_self_test() 915 u = j >> 1; in mbedtls_camellia_self_test() 916 v = j & 1; in mbedtls_camellia_self_test() 957 for( j = 0; j < 6; j++ ) in mbedtls_camellia_self_test() 959 u = j >> 1; in mbedtls_camellia_self_test() 960 v = j & 1; in mbedtls_camellia_self_test()
|
D | des.c | 872 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local 928 for( j = 0; j < 10000; j++ ) in mbedtls_des_self_test() 1005 for( j = 0; j < 10000; j++ ) in mbedtls_des_self_test() 1015 for( j = 0; j < 10000; j++ ) in mbedtls_des_self_test()
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_entropy.function | 172 size_t i, j; 182 for( j = 0; j < sizeof( buf ); j++ ) 183 acc[j] |= buf[j]; 187 for( j = 0; j < (size_t) len; j++ ) 188 TEST_ASSERT( acc[j] != 0 ); 190 for( j = len; j < sizeof( buf ); j++ ) 191 TEST_ASSERT( acc[j] == 0 );
|
D | test_suite_des.function | 322 int i, j, cnt; 333 for( j = 0; j < 8; j++ ) 334 key[j] = cnt++; 342 for( j = 0; j < 8; j++ ) 344 parity = key[j] ^ ( key[j] >> 4 );
|
/net-tools-3.4.0/tinydtls-0.8.2/ |
D | ccm.c | 87 size_t i,j; in add_auth_data() local 98 j = 2; in add_auth_data() 101 j = 6; in add_auth_data() 105 j = 10; in add_auth_data() 118 j = 2; in add_auth_data() 122 i = min(DTLS_CCM_BLOCKSIZE - j, la); in add_auth_data() 123 memcpy(B + j, msg, i); in add_auth_data()
|
/net-tools-3.4.0/mbedtls-2.4.0/programs/x509/ |
D | cert_app.c | 157 int i, j; in main() local 204 for( j = 0; p + j < q; j++ ) in main() 206 if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' ) in main() 207 argv[i][j] |= 0x20; in main()
|
/net-tools-3.4.0/libcoap/examples/ |
D | etsi_coaptest.sh | 205 for j in ${testgroups[@]} ; do 206 echo "group: $j" 207 for k in $(eval "echo \${$(echo $j)[@]}") ; do
|