Home
last modified time | relevance | path

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

12

/mbedtls-development/programs/x509/
A Dload_roots.c137 unsigned i, j; in main() local
162 for( j = 0; p + j < q; j++ ) in main()
164 if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' ) in main()
165 argv[i][j] |= 0x20; in main()
A Dcert_app.c156 int i, j; in main() local
202 for( j = 0; p + j < q; j++ ) in main()
204 if( argv[i][j] >= 'A' && argv[i][j] <= 'Z' ) in main()
205 argv[i][j] |= 0x20; in main()
/mbedtls-development/library/
A Dbignum.c501 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb()
513 size_t j; in mbedtls_clz() local
516 for( j = 0; j < biL; j++ ) in mbedtls_clz()
612 for( i = slen, j = 0; i > 0; i--, j++ ) in mbedtls_mpi_read_string()
733 for( j = ciL; j > 0; j-- ) in mbedtls_mpi_write_string()
1195 for( j = Y->n; j > 0; j-- ) in mbedtls_mpi_cmp_abs()
1227 for( j = Y->n; j > 0; j-- ) in mbedtls_mpi_cmp_mpi()
1392 for( j = B->n; j > 0; j-- ) in mbedtls_mpi_add_abs()
1733 for( j = B->n; j > 0; j-- ) in mbedtls_mpi_mul_mpi()
1742 for( ; j > 0; j-- ) in mbedtls_mpi_mul_mpi()
[all …]
A 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()
890 int i, j, ret; in mbedtls_gcm_self_test() local
894 for( j = 0; j < 3; j++ ) in mbedtls_gcm_self_test()
896 int key_len = 128 + 64 * j; in mbedtls_gcm_self_test()
944 if ( memcmp( buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test()
982 memcmp( tag_buf, tag_test_data[j * 6 + i], 16 ) != 0 ) in mbedtls_gcm_self_test()
1054 if( memcmp( buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test()
[all …]
A Daria.c394 uint8_t i, j; in aria_rot128() local
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()
500 ctx->rk[j][k] = t; in mbedtls_aria_setkey_dec()
919 size_t j; in mbedtls_aria_self_test() local
996 j = 0; in mbedtls_aria_self_test()
1008 j = 0; in mbedtls_aria_self_test()
1027 j = 0; in mbedtls_aria_self_test()
[all …]
A 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()
A 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()
A Dpkcs12.c204 unsigned int j; in mbedtls_pkcs12_derivation() local
287 j = salt_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
288 c = MBEDTLS_BYTE_1( j ); in mbedtls_pkcs12_derivation()
289 salt_block[i - 1] = MBEDTLS_BYTE_0( j ); in mbedtls_pkcs12_derivation()
296 j = pwd_block[i - 1] + hash_block[i - 1] + c; in mbedtls_pkcs12_derivation()
297 c = MBEDTLS_BYTE_1( j ); in mbedtls_pkcs12_derivation()
298 pwd_block[i - 1] = MBEDTLS_BYTE_0( j ); in mbedtls_pkcs12_derivation()
A Dentropy.c634 size_t i, j; in mbedtls_entropy_self_test() local
666 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test()
667 acc[j] |= buf[j]; in mbedtls_entropy_self_test()
670 for( j = 0; j < sizeof( buf ); j++ ) in mbedtls_entropy_self_test()
672 if( acc[j] == 0 ) in mbedtls_entropy_self_test()
A 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()
A 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()
A 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()
A Dsha512.c535 int i, j, k, buflen, ret = 0; in mbedtls_sha512_self_test() local
553 j = i % 3; in mbedtls_sha512_self_test()
561 mbedtls_printf( " SHA-%d test #%d: ", 512 - k * 128, j + 1 ); in mbedtls_sha512_self_test()
566 if( j == 2 ) in mbedtls_sha512_self_test()
570 for( j = 0; j < 1000; j++ ) in mbedtls_sha512_self_test()
579 ret = mbedtls_sha512_update( &ctx, sha512_test_buf[j], in mbedtls_sha512_self_test()
580 sha512_test_buflen[j] ); in mbedtls_sha512_self_test()
A Dsha256.c478 int i, j, k, buflen, ret = 0; in mbedtls_sha256_self_test() local
496 j = i % 3; in mbedtls_sha256_self_test()
500 mbedtls_printf( " SHA-%d test #%d: ", 256 - k * 32, j + 1 ); in mbedtls_sha256_self_test()
505 if( j == 2 ) in mbedtls_sha256_self_test()
509 for( j = 0; j < 1000; j++ ) in mbedtls_sha256_self_test()
519 ret = mbedtls_sha256_update( &ctx, sha256_test_buf[j], in mbedtls_sha256_self_test()
520 sha256_test_buflen[j] ); in mbedtls_sha256_self_test()
A Decp.c1645 size_t i, j; in ecp_comb_recode_core() local
1652 for( j = 0; j < w; j++ ) in ecp_comb_recode_core()
1653 x[i] |= mbedtls_mpi_get_bit( m, i + d * j ) << j; in ecp_comb_recode_core()
1713 size_t j = 0; in ecp_precompute_comb() local
1755 j = 0; in ecp_precompute_comb()
1757 for( ; j < d * ( w - 1 ); j++ ) in ecp_precompute_comb()
1780 j = 0; in ecp_precompute_comb()
1802 j = i; in ecp_precompute_comb()
1818 for( j = 0; j + 1 < T_size; j++ ) in ecp_precompute_comb()
1819 TT[j] = T + j + 1; in ecp_precompute_comb()
[all …]
A Dpem.c57 size_t i, j, k; in pem_get_iv() local
63 if( *s >= '0' && *s <= '9' ) j = *s - '0'; else in pem_get_iv()
64 if( *s >= 'A' && *s <= 'F' ) j = *s - '7'; else in pem_get_iv()
65 if( *s >= 'a' && *s <= 'f' ) j = *s - 'W'; else in pem_get_iv()
68 k = ( ( i & 1 ) != 0 ) ? j : j << 4; in pem_get_iv()
/mbedtls-development/programs/ssl/
A Dssl_test_common_source.c60 size_t j; in nss_keylog_export() local
73 for( j = 0; j < client_random_len; j++ ) in nss_keylog_export()
76 "%02x", client_random[j] ); in nss_keylog_export()
81 for( j = 0; j < secret_len; j++ ) in nss_keylog_export()
84 "%02x", secret[j] ); in nss_keylog_export()
A Dssl_client2.c2163 size_t j = 0; in main() local
2181 for( j = 0; j < sizeof( eap_tls_keymaterial ); j++ ) in main()
2183 if( j % 8 == 0 ) in main()
2202 for( j = 0; j < sizeof( eap_tls_iv ); j++ ) in main()
2204 if( j % 8 == 0 ) in main()
2206 mbedtls_printf("%02x ", eap_tls_iv[j] ); in main()
2214 size_t j = 0; in main() local
2242 for( j = 0; j < sizeof( dtls_srtp_key_material ); j++ ) in main()
2244 if( j % 8 == 0 ) in main()
2255 for( j = 0; j < sizeof( dtls_srtp_key_material ); j++ ) in main()
[all …]
A Dssl_server2.c3291 size_t j = 0; in main() local
3309 for( j = 0; j < sizeof( eap_tls_keymaterial ); j++ ) in main()
3311 if( j % 8 == 0 ) in main()
3330 for( j = 0; j < sizeof( eap_tls_iv ); j++ ) in main()
3332 if( j % 8 == 0 ) in main()
3334 mbedtls_printf("%02x ", eap_tls_iv[j] ); in main()
3342 size_t j = 0; in main() local
3370 for( j = 0; j < sizeof( dtls_srtp_key_material ); j++ ) in main()
3372 if( j % 8 == 0 ) in main()
3383 for( j = 0; j < sizeof( dtls_srtp_key_material ); j++ ) in main()
[all …]
/mbedtls-development/tests/suites/
A 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 );
A 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 );
/mbedtls-development/tests/docker/bionic/
A DDockerfile67 && wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz -qO- | tar xz \
68 && cd openssl-1.0.1j \
69 && ./config --openssldir=/usr/local/openssl-1.0.1j no-shared \
70 && (make ${MAKEFLAGS_PARALLEL} || make -j 1) \
73 ENV OPENSSL_LEGACY=/usr/local/openssl-1.0.1j/bin/openssl
80 && (make ${MAKEFLAGS_PARALLEL} || make -j 1) \
/mbedtls-development/tests/data_files/
A Dec_521_prv.pem5 j/rPNmPCYL0shEtvVgDO6OSKnmXQnK3YnyNd7gXzuKZGvnFfH2fVtDTg/yOh/Afv
A Dcert_v1_with_ext.crt13 HF0PyVGiKCEQiHhMBKNjAxzQrCUGy7Vp+3QlIYrs6/m5A96vohX/j+wzwIp3QgiK
/mbedtls-development/tests/data_files/dir4/
A Dcert41.crt12 j/9IT4BGlDANBgkqhkiG9w0BAQsFAAOCAQEAWhrHGIMcEG2UJfv920hftxi+Jvj/

Completed in 48 milliseconds

12