/mbedtls-latest/tests/scripts/ |
D | components-configuration.sh | 13 msg "build: make, default config (out-of-box)" # ~1min 18 msg "test: main suites make, default config (out-of-box)" # ~10s 21 msg "selftest: make, default config (out-of-box)" # ~10s 24 msg "program demos: make, default config (out-of-box)" # ~10s 29 msg "build: cmake, gcc, ASan" # ~ 1 min 50s 33 msg "test: main suites (inc. selftests) (ASan build)" # ~ 50s 36 msg "program demos (ASan build)" # ~10s 39 msg "test: selftest (ASan build)" # ~ 10s 42 msg "test: metatests (GCC, ASan build)" 45 msg "test: ssl-opt.sh (ASan build)" # ~ 1 min [all …]
|
D | components-configuration-tls.sh | 13 msg "build: Default + !MBEDTLS_SSL_RENEGOTIATION (ASan build)" # ~ 6 min 18 msg "test: !MBEDTLS_SSL_RENEGOTIATION - main suites (inc. selftests) (ASan build)" # ~ 50s 21 msg "test: !MBEDTLS_SSL_RENEGOTIATION - ssl-opt.sh (ASan build)" # ~ 6 min 26 msg "build: default with only stream cipher" 46 msg "test: default with only stream cipher" 53 msg "build: default with only stream cipher use psa" 74 msg "test: default with only stream cipher use psa" 81 msg "build: default with only CBC-legacy cipher" 101 msg "test: default with only CBC-legacy cipher" 104 msg "test: default with only CBC-legacy cipher - ssl-opt.sh (subset)" [all …]
|
D | components-configuration-crypto.sh | 13 msg "build: full config + PSA_CRYPTO_KEY_ID_ENCODES_OWNER, cmake, gcc, ASan" 19 msg "test: full config - USE_PSA_CRYPTO + PSA_CRYPTO_KEY_ID_ENCODES_OWNER, cmake, gcc, ASan" 24 msg "build: full config + MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS, cmake, gcc, ASan" 30 msg "test: full config + MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS, cmake, gcc, ASan" 43 msg "build: full config + PSA_CRYPTO_KEY_ID_ENCODES_OWNER + PSA_CRYPTO_SPM, make, gcc" 74 msg "build: default config - PSA_CRYPTO_C + PSA_CRYPTO_CLIENT" 85 msg "check missing symbols: default config - PSA_CRYPTO_C + PSA_CRYPTO_CLIENT" 88 msg "test: default config - PSA_CRYPTO_C + PSA_CRYPTO_CLIENT" 93 msg "build: full config - PSA_CRYPTO_C" 110 msg "check missing symbols: full config - PSA_CRYPTO_C" [all …]
|
D | components-platform.sh | 35 msg "build: default config with different AES implementations" 41 msg "AES tests, test intrinsics" 48 msg "AES tests, test assembly" 57 msg "AES tests, plain C" 68 msg "AES tests, test AESNI only" 86 msg "build: default config with different AES implementations" 93 msg "AES tests, test intrinsics (gcc)" 106 msg "AES tests, test AESNI only" 130 msg "AES tests, test intrinsics (clang)" 151 msg "MBEDTLS_AES_USE_HARDWARE_ONLY, clang, aarch64" [all …]
|
D | components-sanitizers.sh | 40 …msg "build: cmake MSan (clang), full config minus MBEDTLS_USE_PSA_CRYPTO with constant flow testin… 48 msg "test: main suites (full minus MBEDTLS_USE_PSA_CRYPTO, Msan + constant flow)" 59 msg "build: cmake MSan (clang), full config with constant flow testing" 66 msg "test: main suites (Msan + constant flow)" 80 …msg "build: cmake release GCC, full config minus MBEDTLS_USE_PSA_CRYPTO with constant flow testing" 90 msg "test: some suites (full minus MBEDTLS_USE_PSA_CRYPTO, valgrind + constant flow)" 95 msg "test: valgrind asm constant_time" 114 msg "build: cmake release GCC, full config with constant flow testing" 123 msg "test: some suites (valgrind + constant flow)" 128 msg "build: TSan (clang)" [all …]
|
D | components-configuration-platform.sh | 14 msg "build: full config with NO_STD_FUNCTION, make, gcc" # ~ 30s 26 msg "build: full config except net_sockets.c, make, gcc -std=c99 -pedantic" # ~ 30s 34 msg "build: default config without MBEDTLS_HAVE_TIME_DATE" 39 msg "test: !MBEDTLS_HAVE_TIME_DATE - main suites" 44 msg "build: MBEDTLS_PLATFORM_{CALLOC/FREE}_MACRO enabled (ASan build)" 51 msg "test: MBEDTLS_PLATFORM_{CALLOC/FREE}_MACRO enabled (ASan build)" 56 msg "build: gcc, force 32-bit bignum limbs" 63 msg "test: gcc, force 32-bit bignum limbs" 68 msg "build: gcc, force 64-bit bignum limbs" 75 msg "test: gcc, force 64-bit bignum limbs" [all …]
|
D | components-basic-checks.sh | 13 msg "Check: recursion.pl" # < 1s 18 msg "Check: check-generated-files, files generated with make" # 2s 22 msg "Check: check-generated-files -u, files present" # 2s 27 msg "Check: check-generated-files -u, files absent" # 2s 38 msg "Check: doxygen markup outside doxygen blocks" # < 1s 43 msg "Check: file sanity checks (permissions, encodings)" # < 1s 48 msg "Check: changelog entries" # < 1s 60 msg "Check: declared and exported names (builds the library)" # < 3s 65 msg "Check: test case descriptions" # < 1s 76 msg "Check: test case dependencies: legacy vs PSA" # < 1s [all …]
|
D | components-build-system.sh | 13 msg "build/test: make shared" # ~ 40s 20 msg "build/test: cmake shared" # ~ 2min 63 msg "build: cmake 'out-of-source' build" 71 msg "test: cmake 'out-of-source' build" 93 msg "build: cmake 'as-subdirectory' build" 110 msg "build: cmake 'as-package' build" 126 msg "build: cmake 'as-installed-package' build" 149 msg "build: cmake with -DMBEDTLS_CONFIG_FILE" 155 msg "build: cmake with -DMBEDTLS_CONFIG_FILE + -DMBEDTLS_USER_CONFIG_FILE" 178 msg "build: cmake (in-tree) with -DMBEDTLS_CONFIG_FILE" [all …]
|
D | components-configuration-x509.sh | 13 msg "build: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s 19 msg "test: full + MBEDTLS_X509_REMOVE_INFO" # ~ 10s 22 msg "test: ssl-opt.sh, full + MBEDTLS_X509_REMOVE_INFO" # ~ 1 min 27 msg "build: default plus MBEDTLS_TEST_SW_INET_PTON" 33 msg "test: default plus MBEDTLS_TEST_SW_INET_PTON"
|
D | components-compiler.sh | 20 msg "build: TF-M config, armclang armv7-m thumb2" 28 msg "build/test: $cc $opt, $info" # ~ 30s 85 msg "build: Windows cross build - mingw64, make (Link Library)" # ~ 30s 92 msg "build: Windows cross build - mingw64, make (DLL)" # ~ 30s 97 …msg "build: Windows cross build - mingw64, make (Library only, default config without MBEDTLS_AESN… 111 msg "build: check for obviously wrong calls to mbedtls_platform_zeroize()" 136 msg "test: $compiler $optimization_flag, mbedtls_platform_zeroize()"
|
D | all.sh | 403 msg() function 426 msg "build: ARM Compiler 6 ($FLAGS)" 431 msg "size: ARM Compiler 6 ($FLAGS)" 755 msg "info: $0 configuration" 828 msg "info: output_env.sh" 1021 msg "Done, cleaning up" 1033 msg "Testing error reporting $error_test_i"
|
D | components-compliance.sh | 14 msg "build: make, default config (out-of-box), libmbedcrypto.a only" 17 msg "unit test: test_psa_compliance.py"
|
/mbedtls-latest/tests/suites/ |
D | test_suite_ccm.function | 105 unsigned char msg[10]; 117 memset(msg, 0, sizeof(msg)); 126 msg, out, tag, tag_len) == res); 129 msg, out, tag, tag_len); 150 unsigned char msg[10]; 161 memset(msg, 0, sizeof(msg)); 171 add, add_len, msg, out, tag, tag_len) == res); 174 add_len, msg, out, tag, tag_len); 190 data_t *msg, data_t *iv, 197 const size_t expected_tag_len = result->len - msg->len; [all …]
|
D | test_suite_lmots.function | 31 void lmots_sign_verify_test(data_t *msg, data_t *key_id, int leaf_id, 45 msg->x, msg->len, sig, sizeof(sig), NULL), 0); 46 TEST_EQUAL(mbedtls_lmots_verify(&pub_ctx, msg->x, msg->len, sig, sizeof(sig)), 0); 78 void lmots_verify_test(data_t *msg, data_t *sig, data_t *pub_key, 89 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len), expected_rc); 93 if (msg->len >= 1) { 95 msg->x[0] ^= 1; 96 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len), 98 msg->x[0] ^= 1; 101 msg->x[msg->len - 1] ^= 1; [all …]
|
D | test_suite_lms.function | 12 void lms_sign_verify_test(data_t *msg, data_t *seed) 32 msg->x, msg->len, sig, sizeof(sig), 35 TEST_EQUAL(mbedtls_lms_verify(&pub_ctx, msg->x, msg->len, sig, 78 void lms_verify_test(data_t *msg, data_t *sig, data_t *pub_key, 89 TEST_EQUAL(mbedtls_lms_verify(&ctx, msg->x, msg->len, sig->x, sig->len), expected_rc); 93 if (msg->len >= 1) { 95 msg->x[0] ^= 1; 96 TEST_EQUAL(mbedtls_lms_verify(&ctx, msg->x, msg->len, sig->x, sig->len), 98 msg->x[0] ^= 1; 101 msg->x[msg->len - 1] ^= 1; [all …]
|
D | test_suite_ecjpake.function | 139 void read_bad_md(data_t *msg) 154 TEST_EQUAL(mbedtls_ecjpake_read_round_one(&corrupt_ctx, msg->x, 155 msg->len), MBEDTLS_ERR_MD_BAD_INPUT_DATA); 164 void read_round_one(int role, data_t *msg, int ref_ret) 178 TEST_ASSERT(mbedtls_ecjpake_read_round_one(&ctx, msg->x, msg->len) == ref_ret); 187 void read_round_two_cli(data_t *msg, int ref_ret) 207 TEST_ASSERT(mbedtls_ecjpake_read_round_two(&ctx, msg->x, msg->len) == ref_ret); 216 void read_round_two_srv(data_t *msg, int ref_ret) 236 TEST_ASSERT(mbedtls_ecjpake_read_round_two(&ctx, msg->x, msg->len) == ref_ret);
|
D | test_suite_nist_kw.function | 237 void mbedtls_nist_kw_wrap(int cipher_id, int mode, data_t *key, data_t *msg, 252 TEST_ASSERT(mbedtls_nist_kw_wrap(&ctx, mode, msg->x, msg->len, 259 padlen = (msg->len % 8 != 0) ? 8 - (msg->len % 8) : 0; 261 for (i = msg->len + 8 + padlen; i < sizeof(result); i++) { 271 void mbedtls_nist_kw_unwrap(int cipher_id, int mode, data_t *key, data_t *msg, 286 TEST_ASSERT(mbedtls_nist_kw_unwrap(&ctx, mode, msg->x, msg->len, 296 for (i = msg->len - 8; i < sizeof(result); i++) {
|
/mbedtls-latest/library/ |
D | lmots.c | 120 const unsigned char *msg, in create_digit_array_with_checksum() argument 158 status = psa_hash_update(&op, msg, msg_len); in create_digit_array_with_checksum() 461 const unsigned char *msg, in mbedtls_lmots_calculate_public_key_candidate() argument 473 if (msg == NULL && msg_size != 0) { in mbedtls_lmots_calculate_public_key_candidate() 482 ret = create_digit_array_with_checksum(params, msg, msg_size, in mbedtls_lmots_calculate_public_key_candidate() 511 const unsigned char *msg, size_t msg_size, in mbedtls_lmots_verify() argument 517 if (msg == NULL && msg_size != 0) { in mbedtls_lmots_verify() 538 msg, msg_size, sig, sig_size, in mbedtls_lmots_verify() 696 void *p_rng, const unsigned char *msg, size_t msg_size, in mbedtls_lmots_sign() argument 711 if (msg == NULL && msg_size != 0) { in mbedtls_lmots_sign() [all …]
|
D | sha512.c | 382 mbedtls_sha512_context *ctx, const uint8_t *msg, size_t len) in mbedtls_internal_sha512_process_many_a64_crypto() argument 394 msg += SHA512_BLOCK_SIZE, in mbedtls_internal_sha512_process_many_a64_crypto() 403 uint64x2_t s0 = (uint64x2_t) vld1q_u8(msg + 16 * 0); in mbedtls_internal_sha512_process_many_a64_crypto() 404 uint64x2_t s1 = (uint64x2_t) vld1q_u8(msg + 16 * 1); in mbedtls_internal_sha512_process_many_a64_crypto() 405 uint64x2_t s2 = (uint64x2_t) vld1q_u8(msg + 16 * 2); in mbedtls_internal_sha512_process_many_a64_crypto() 406 uint64x2_t s3 = (uint64x2_t) vld1q_u8(msg + 16 * 3); in mbedtls_internal_sha512_process_many_a64_crypto() 407 uint64x2_t s4 = (uint64x2_t) vld1q_u8(msg + 16 * 4); in mbedtls_internal_sha512_process_many_a64_crypto() 408 uint64x2_t s5 = (uint64x2_t) vld1q_u8(msg + 16 * 5); in mbedtls_internal_sha512_process_many_a64_crypto() 409 uint64x2_t s6 = (uint64x2_t) vld1q_u8(msg + 16 * 6); in mbedtls_internal_sha512_process_many_a64_crypto() 410 uint64x2_t s7 = (uint64x2_t) vld1q_u8(msg + 16 * 7); in mbedtls_internal_sha512_process_many_a64_crypto() [all …]
|
D | lmots.h | 145 const unsigned char *msg, 179 const unsigned char *msg, 279 void *p_rng, const unsigned char *msg, size_t msg_size,
|
D | sha256.c | 330 mbedtls_sha256_context *ctx, const uint8_t *msg, size_t len) in mbedtls_internal_sha256_process_many_a64_crypto() argument 340 msg += SHA256_BLOCK_SIZE, in mbedtls_internal_sha256_process_many_a64_crypto() 347 uint32x4_t sched0 = vreinterpretq_u32_u8(vld1q_u8(msg + 16 * 0)); in mbedtls_internal_sha256_process_many_a64_crypto() 348 uint32x4_t sched1 = vreinterpretq_u32_u8(vld1q_u8(msg + 16 * 1)); in mbedtls_internal_sha256_process_many_a64_crypto() 349 uint32x4_t sched2 = vreinterpretq_u32_u8(vld1q_u8(msg + 16 * 2)); in mbedtls_internal_sha256_process_many_a64_crypto() 350 uint32x4_t sched3 = vreinterpretq_u32_u8(vld1q_u8(msg + 16 * 3)); in mbedtls_internal_sha256_process_many_a64_crypto() 620 const uint8_t *msg, size_t len) in mbedtls_internal_sha256_process_many() argument 623 return mbedtls_internal_sha256_process_many_a64_crypto(ctx, msg, len); in mbedtls_internal_sha256_process_many() 625 return mbedtls_internal_sha256_process_many_c(ctx, msg, len); in mbedtls_internal_sha256_process_many()
|
/mbedtls-latest/programs/test/ |
D | dlopen_demo.sh | 11 msg "Test the dynamic loading of libmbed*" 19 msg "$0: this demo requires a shared library build." 40 msg "Running dynamic loading test program: $program" 41 msg "Loading libraries from: $library_dir"
|
D | udp_proxy.c | 307 static const char *msg_type(unsigned char *msg, size_t len) in msg_type() argument 312 switch (msg[0]) { in msg_type() 330 if (msg[14] || msg[19] || msg[22]) { in msg_type() 334 switch (msg[13]) { in msg_type()
|
/mbedtls-latest/tests/src/ |
D | psa_crypto_helpers.c | 140 const char *msg = mbedtls_test_helper_is_psa_leaking(); in mbedtls_test_fail_if_psa_leaking() local 141 if (msg == NULL) { in mbedtls_test_fail_if_psa_leaking() 144 mbedtls_test_fail(msg, line_no, filename); in mbedtls_test_fail_if_psa_leaking()
|
D | threading_helpers.c | 174 const char *msg) in mbedtls_test_mutex_usage_error() argument 178 mbedtls_test_set_mutex_usage_error(msg); in mbedtls_test_mutex_usage_error() 179 mbedtls_fprintf(stdout, "[mutex: %s] ", msg); in mbedtls_test_mutex_usage_error()
|