/mbedtls-3.5.0/tests/scripts/ |
D | depends.py | 85 def __init__(self, options=None): argument 87 if not options or options.color in ['no', 'never']: 89 elif options.color in ['yes', 'always']: 116 def backup_config(options): argument 120 if os.path.exists(options.config_backup): 121 options.own_backup = False 123 options.own_backup = True 124 shutil.copy(options.config, options.config_backup) 126 def restore_config(options): argument 129 if options.own_backup: [all …]
|
D | test_config_script.py | 83 def list_presets(options): argument 89 if options.presets: 90 return re.split(r'[ ,]+', options.presets) 92 help_text = subprocess.run([options.script, '--help'], 98 def run_one(options, args, stem_prefix='', input_file=None): argument 115 input_file = options.input_file 117 data_filename = output_file_name(options.output_directory, stem, 'h') 118 stdout_filename = output_file_name(options.output_directory, stem, 'out') 119 stderr_filename = output_file_name(options.output_directory, stem, 'err') 120 status_filename = output_file_name(options.output_directory, stem, 'status') [all …]
|
D | psa_collect_statuses.py | 82 def collect_status_logs(options): argument 89 if not options.use_existing_log and os.path.exists(options.log_file): 90 os.remove(options.log_file) 91 if not os.path.exists(options.log_file): 92 if options.clean_before: 106 data.collect_log(options.log_file) 107 data.get_constant_names(options.psa_constant_names) 108 if rebuilt and options.clean_after: 135 options = parser.parse_args() 136 data = collect_status_logs(options)
|
D | test_psa_constant_names.py | 119 def __init__(self, options) -> None: argument 120 self.options = options 132 include_path=self.options.include, 133 keep_c=self.options.keep_c) 134 output_bytes = subprocess.check_output([self.options.program, 140 if self.options.show: 193 options = parser.parse_args() 194 headers = [os.path.join(options.include[0], h) for h in HEADERS] 196 tests = Tests(options)
|
D | check_test_cases.py | 33 def __init__(self, options): argument 36 self.ignore_warnings = options.quiet 208 options = parser.parse_args() 209 if options.list_all: 213 results = Results(options) 216 if (results.warnings or results.errors) and not options.quiet:
|
D | analyze_outcomes.py | 224 options = parser.parse_args() 226 if options.list: 233 if options.task == 'all': 236 tasks = re.split(r'[, ]+', options.task) 245 if not TASKS[task]['test_function'](options.outcomes, TASKS[task]['args']):
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | test_data_generation.py | 153 def __init__(self, options) -> None: argument 154 self.test_suite_directory = options.directory 205 options = parser.parse_args(args) 209 if options.directory is None: 210 options.directory = 'tests/suites' 212 options.directory = os.path.abspath(options.directory) 215 generator = generator_class(options) 216 if options.list: 221 if options.list_for_cmake: 225 if options.targets: [all …]
|
/mbedtls-3.5.0/programs/fuzz/ |
D | fuzz_client.c | 48 uint16_t options; in LLVMFuzzerTestOneInput() local 72 options = (Data[Size - 2] << 8) | Data[Size - 1]; in LLVMFuzzerTestOneInput() 74 (void) options; in LLVMFuzzerTestOneInput() 94 if (options & 2) { in LLVMFuzzerTestOneInput() 101 if (options & 4) { in LLVMFuzzerTestOneInput() 111 (options & in LLVMFuzzerTestOneInput() 116 (options & in LLVMFuzzerTestOneInput() 121 (options & in LLVMFuzzerTestOneInput() 126 (options & in LLVMFuzzerTestOneInput() 130 if (options & 0x200) { in LLVMFuzzerTestOneInput() [all …]
|
D | fuzz_server.c | 51 uint8_t options; in LLVMFuzzerTestOneInput() local 57 options = Data[Size - 1]; in LLVMFuzzerTestOneInput() 119 (options & in LLVMFuzzerTestOneInput() 122 if (options & 0x2) { in LLVMFuzzerTestOneInput() 127 if (options & 0x4) { in LLVMFuzzerTestOneInput() 143 (options & in LLVMFuzzerTestOneInput() 148 (options & in LLVMFuzzerTestOneInput() 152 if (options & 0x40) { in LLVMFuzzerTestOneInput() 159 (options & in LLVMFuzzerTestOneInput()
|
D | README.md | 47 They also use the last bytes as configuration options. 54 * Finally, you can add the options by appending the last bytes to the file test.cor
|
/mbedtls-3.5.0/scripts/ |
D | assemble_changelog.py | 316 def list_merges(some_hash, target, *options): argument 322 '--merges', *options, 442 def list_files_to_merge(options): argument 447 files_to_merge = glob.glob(os.path.join(options.dir, '*.txt')) 451 def merge_entries(options): argument 459 with open(options.input, 'r', encoding='utf-8') as input_file: 461 files_to_merge = list_files_to_merge(options) 468 finish_output(changelog, options.output, options.input, files_to_merge) 469 if not options.keep_entries: 472 def show_file_timestamps(options): argument [all …]
|
D | min_requirements.py | 126 options = parser.parse_args() 127 if not options.files: 128 options.files = [os.path.join(os.path.dirname(__file__), 131 for filename in options.files: 134 if not options.no_act: 135 reqs.install(pip_general_options=options.pip_general_options, 136 pip_install_options=options.pip_install_options)
|
/mbedtls-3.5.0/tests/src/test_helpers/ |
D | ssl_helpers.c | 741 mbedtls_test_handshake_test_options *options, in mbedtls_test_ssl_endpoint_init() argument 814 if (endpoint_type == MBEDTLS_SSL_IS_SERVER && options->cache != NULL) { in mbedtls_test_ssl_endpoint_init() 815 mbedtls_ssl_conf_session_cache(&(ep->conf), options->cache, in mbedtls_test_ssl_endpoint_init() 830 ret = mbedtls_test_ssl_endpoint_certificate_init(ep, options->pk_alg, in mbedtls_test_ssl_endpoint_init() 831 options->opaque_alg, in mbedtls_test_ssl_endpoint_init() 832 options->opaque_alg2, in mbedtls_test_ssl_endpoint_init() 833 options->opaque_usage); in mbedtls_test_ssl_endpoint_init() 1739 mbedtls_test_handshake_test_options *options) in mbedtls_test_ssl_perform_handshake() argument 1758 int expected_handshake_result = options->expected_handshake_result; in mbedtls_test_ssl_perform_handshake() 1769 if (options->dtls != 0) { in mbedtls_test_ssl_perform_handshake() [all …]
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_ssl.function | 2494 mbedtls_test_handshake_test_options options; 2495 mbedtls_test_init_handshake_options(&options); 2496 options.pk_alg = MBEDTLS_PK_RSA; 2498 ret = mbedtls_test_ssl_endpoint_init(NULL, endpoint_type, &options, 2502 ret = mbedtls_test_ssl_endpoint_certificate_init(NULL, options.pk_alg, 2506 ret = mbedtls_test_ssl_endpoint_init(&ep, endpoint_type, &options, 2512 mbedtls_test_free_handshake_options(&options); 2522 mbedtls_test_handshake_test_options options; 2523 mbedtls_test_init_handshake_options(&options); 2524 options.pk_alg = MBEDTLS_PK_RSA; [all …]
|
D | test_suite_pk.function | 350 void *options = NULL; 401 TEST_ASSERT(mbedtls_pk_verify_ext(MBEDTLS_PK_NONE, options, 576 void *options; 591 options = NULL; 593 options = &pss_opts; 599 ret = mbedtls_pk_verify_ext(pk_type, options, &pk, 611 * PSA or the Mbed TLS API, depending on the PSS options used. 1342 void const *options = NULL; 1363 options = (const void *) &rsassa_pss_options; 1365 TEST_ASSERT(mbedtls_pk_verify_ext(key_pk_type, options, &pk, md_alg, [all …]
|
D | test_suite_pkcs1_v21.data | 1005 RSASSA-PSS Signature verify options #1 (OK) 1009 RSASSA-PSS Signature verify options #2 (ctx_hash none) 1013 RSASSA-PSS Signature verify options #3 (ctx_hash diverging) 1017 RSASSA-PSS Signature verify options #4 (mgf1_hash diverging) 1021 RSASSA-PSS Signature verify options #5 (wrong msg_hash) 1025 RSASSA-PSS Signature verify options #6 (wrong expected_salt_len) 1029 RSASSA-PSS Signature verify options #7 (wrong expected_salt_len) 1033 RSASSA-PSS Signature verify options #8 (non-default salt_len: max) 1037 RSASSA-PSS Signature verify options #9 (non-default salt_len: 0) 1041 RSASSA-PSS Signature verify options #10 (non-default salt_len: 0, ANY) [all …]
|
/mbedtls-3.5.0/programs/ |
D | README.md | 85 … HTTPS client that sends a fixed request and displays the response, with options to select TLS pro… 87 …`](ssl/ssl_server2.c): an HTTPS server that sends a fixed response, with options to select TLS pro… 89 …options for testing client-side features, the `ssl_client2` program has options that allow you to …
|
/mbedtls-3.5.0/ |
D | README.md | 11 Mbed TLS should build out of the box on most systems. Some platform specific options are available … 13 Compiler options can be set using conventional environment variables such as `CC` and `CFLAGS` when… 105 …ommand line; compiler warning options may be overridden separately using `WARNING_CFLAGS`. Some di… 107 …options to the default ones, you can do so by setting `CFLAGS=-O2 -Werror` for example. Setting `W… 109 …. Please check the Makefiles in `library/`, `programs/` and `tests/` for options to manually add o… 152 To list other available CMake options, use: 243 …integration tests for various TLS options (renegotiation, resumption, etc.) and tests interoperabi… 247 …uns a combination of the above tests, plus some more, with various build options (such as ASan, fu…
|
/mbedtls-3.5.0/tests/include/test/ |
D | ssl_helpers.h | 421 mbedtls_test_handshake_test_options *options, 525 mbedtls_test_handshake_test_options *options);
|
/mbedtls-3.5.0/.github/ISSUE_TEMPLATE/ |
D | bug_report.md | 19 Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
|
/mbedtls-3.5.0/library/ |
D | pk.c | 481 int mbedtls_pk_verify_ext(mbedtls_pk_type_t type, const void *options, in mbedtls_pk_verify_ext() argument 500 if (options != NULL) { in mbedtls_pk_verify_ext() 515 if (options == NULL) { in mbedtls_pk_verify_ext() 519 pss_opts = (const mbedtls_pk_rsassa_pss_options *) options; in mbedtls_pk_verify_ext()
|
/mbedtls-3.5.0/programs/x509/ |
D | crl_app.c | 55 struct options { struct
|
D | req_app.c | 55 struct options { struct
|
/mbedtls-3.5.0/docs/architecture/ |
D | alternative-implementations.md | 12 …he C standard library through `MBEDTLS_PLATFORM_XXX` options in the configuration file. Many optio… 20 To configure entropy sources (hardware random generators), see the `MBEDTLS_ENTROPY_XXX` options in… 91 …_PLATFORM_MEMORY`. Consult the documentation of individual configuration options and of the platfo…
|
/mbedtls-3.5.0/docs/architecture/testing/ |
D | invasive-testing.md | 36 …d on `MBEDTLS_TEST_HOOKS` (see [“rules for compile-time options”](#rules-for-compile-time-options)… 53 ### Rules for compile-time options 55 …e following rules. For more information, see the [rationale](#guidelines-for-compile-time-options). 207 ### Compile-time options 221 #### Guidelines for compile-time options argument 223 * **Minimize the number of compile-time options.**<br> 224 …Either we're testing or we're not. Fine-grained options for testing would require more test builds… 358 Solution ([compile-time option](#compile-time-options)): replace entropy initialization functions b…
|