Home
last modified time | relevance | path

Searched full:os (Results 1 – 25 of 56) sorted by relevance

123

/mbedtls-3.6.0/scripts/mbedtls_dev/
Dbuild_tree.py8 import os
13 return all(os.path.isdir(os.path.join(path, subdir))
18 return all(os.path.isdir(os.path.join(path, subdir))
29 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]):
38 for d in [os.path.curdir,
39 os.path.pardir,
40 os.path.join(os.path.pardir, os.path.pardir)]:
42 os.chdir(d)
54 path = os.path.dirname(frame.filename)
55 for d in ['.', os.path.pardir] \
[all …]
Dc_build_helper.py8 import os
19 os.remove(filename)
38 c_file = os.fdopen(c_fd, 'w', encoding='ascii')
90 cc = os.getenv('HOSTCC', None)
92 cc = os.getenv('CC', 'cc')
157 os.remove(c_name)
Dtest_case.py9 import os
83 caller = os.path.basename(sys.argv[0])
91 os.replace(tempfile, filename)
Dtest_data_generation.py14 import os
201 options.directory = os.path.abspath(options.directory)
218 options.targets = [os.path.basename(re.sub(r'\.data\Z', r'', target))
/mbedtls-3.6.0/scripts/
Dgenerate_driver_wrappers.py13 import os
45 loader=jinja2.FileSystemLoader(os.path.dirname(template_path)),
47 template = environment.get_template(os.path.basename(template_path))
59 os.path.join(template_dir, template_file_name)
63 with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]),
116 'transparent': os.path.join(mbedtls_root,
121 'opaque': os.path.join(mbedtls_root,
142 with open(file=os.path.join(json_directory, jsondriver_list),
148 driver_file=os.path.join(json_directory, driver_file_name))
179 mbedtls_root = os.path.abspath(args.mbedtls_root)
[all …]
Decp_comb_table.py12 import os
30 CC = os.getenv('CC', 'cc')
31 MBEDTLS_LIBRARY_PATH = os.getenv('MBEDTLS_LIBRARY_PATH', "library")
149 return os.path.normpath(os.path.join(os.path.dirname(__file__), "..", *args))
161 srcfile = os.fdopen(fd, mode="w")
180 os.unlink(srcname)
181 os.unlink(binname)
219 shared_lib_path = os.path.normpath(os.path.join(MBEDTLS_LIBRARY_PATH, "libmbedcrypto.so"))
220 static_lib_path = os.path.normpath(os.path.join(MBEDTLS_LIBRARY_PATH, "libmbedcrypto.a"))
221 if not os.path.exists(shared_lib_path) and not os.path.exists(static_lib_path):
Dabi_check.py90 import os
127 self.report_dir = os.path.abspath(configuration.report_dir)
129 self.can_remove_report_dir = not (os.path.exists(self.report_dir) or
205 if not (os.path.exists(os.path.join(git_worktree_path, "crypto"))
213 cwd=os.path.join(git_worktree_path, "crypto"),
223 cwd=os.path.join(git_worktree_path, "crypto"),
230 my_environment = os.environ.copy()
233 if os.path.exists(os.path.join(git_worktree_path, "crypto")):
242 for root, _dirs, files in os.walk(git_worktree_path):
244 version.modules[os.path.splitext(file)[0]] = (
[all …]
Dmin_requirements.py9 import os
55 nested_file = os.path.join(os.path.dirname(filename),
83 req_file_name = os.path.join(temp_dir, 'requirements.txt')
116 options.files = [os.path.join(os.path.dirname(__file__),
Dmemory.sh63 CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os lib >/dev/null 2>&1
65 CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os ssl/$CLIENT >/dev/null
73 CFLAGS=$CFLAGS_MEM make OFLAGS=-Os lib >/dev/null 2>&1
75 CFLAGS=$CFLAGS_MEM make OFLAGS=-Os ssl/$CLIENT >/dev/null
Dcode_size_compare.py16 import os
69 :param: opt_level: Options that control optimization. (E.g. -Os)
183 (E.g. -Os)
314 git_worktree_path = os.path.join(self.repo_path,
339 my_environment = os.environ.copy()
756 self.csv_dir = os.path.abspath(self.result_options.record_dir)
757 os.makedirs(self.csv_dir, exist_ok=True)
758 self.comp_dir = os.path.abspath(self.result_options.comp_dir)
759 os.makedirs(self.comp_dir, exist_ok=True)
788 output_file = os.path.join(
[all …]
Dconfig.py19 import os
283 # No OS-provided entropy source
359 os.path.join(os.path.dirname(__file__),
360 os.pardir,
362 os.path.join(os.path.dirname(os.path.abspath(os.path.dirname(__file__))),
369 if os.path.lexists(candidate):
Dassemble_changelog.py29 import os
350 mtime = os.stat(filename).st_mtime
414 if os.path.exists(output_file) and not os.path.isfile(output_file):
424 os.rename(output_temp, output_file)
428 os.remove(filename)
435 files_to_merge = glob.glob(os.path.join(options.dir, '*.txt'))
Dgenerate_ssl_debug_helpers.py14 import os
369 mbedtls_root = os.path.abspath(
371 with open(os.path.join(mbedtls_root, 'include/mbedtls/ssl.h')) as f:
392 with open(os.path.join(output_directory, 'ssl_debug_helpers_generated.c'), 'w') as f:
/mbedtls-3.6.0/tests/scripts/
Dscripts_path.py12 import os
15 sys.path.append(os.path.join(os.path.dirname(__file__),
16 os.path.pardir, os.path.pardir,
Dcheck_test_cases.py14 import os
119 if os.path.isdir('tests'):
121 elif os.path.isdir('suites'):
123 elif os.path.isdir('../suites'):
132 for data_file_name in glob.glob(os.path.join(directory, 'suites',
135 ssl_opt_sh = os.path.join(directory, 'ssl-opt.sh')
136 if os.path.exists(ssl_opt_sh):
138 for ssl_opt_file_name in glob.glob(os.path.join(directory, 'opt-testcases',
141 compat_sh = os.path.join(directory, 'compat.sh')
142 if os.path.exists(compat_sh):
Dtest_psa_compliance.py14 import os
49 root_dir = os.getcwd()
64 if not os.path.exists(crypto_lib_filename):
75 os.makedirs(psa_arch_tests_dir, exist_ok=True)
77 os.chdir(psa_arch_tests_dir)
89 os.mkdir(build_dir)
90 os.chdir(build_dir)
161 os.chdir(root_dir)
Dcheck_files.py13 import os
57 filepath = os.path.normpath(filepath)
60 seps = os.path.sep
61 if os.path.altsep is not None:
62 seps += os.path.altsep
149 _root, ext = os.path.splitext(filepath)
165 is_executable = os.access(filepath, os.X_OK)
204 is_executable = os.access(filepath, os.X_OK)
407 return [fp if os.path.dirname(fp) else os.path.join(os.curdir, fp)
Dgenerate_test_cert_macros.py12 import os
23 if self.dest in ('string', 'binary') and not os.path.exists(filename):
59 this_dir = os.path.dirname(os.path.abspath(__file__))
61 searchpath=os.path.join(this_dir, '..', 'data_files'))
Dtest_config_script.py22 import os
30 return os.path.join(directory,
40 os.remove(filename)
47 if os.path.exists(directory):
50 os.makedirs(directory)
114 cmd = [os.path.abspath(options.script),
115 '-f', os.path.basename(data_filename)]
Dpsa_collect_statuses.py19 import os
77 if not options.use_existing_log and os.path.exists(options.log_file):
78 os.remove(options.log_file)
79 if not os.path.exists(options.log_file):
84 with open(os.devnull, 'w') as devnull:
Daudit-validity-dates.py14 import os
268 return os.path.relpath(build_tree.guess_mbedtls_root() + '/tests')
277 test_data_glob = os.path.join(test_dir, 'data_files/**')
279 if os.path.isfile(f)]
343 suites_data_folder = os.path.join(test_dir, 'suites')
344 data_files = glob.glob(os.path.join(suites_data_folder, '*.data'))
Dset_psa_test_dependencies.py9 import os
146 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
262 os.replace(file_name, backup)
263 os.replace(tmp, file_name)
Dgenerate_test_code.py154 import os
1186 if not os.path.exists(path):
1189 snippets = {'generator_script': os.path.basename(__file__)}
1253 data_file_name = os.path.basename(args.data_file)
1254 data_name = os.path.splitext(data_file_name)[0]
1256 out_c_file = os.path.join(args.out_dir, data_name + '.c')
1257 out_data_file = os.path.join(args.out_dir, data_name + '.datax')
1259 out_c_file_dir = os.path.dirname(out_c_file)
1260 out_data_file_dir = os.path.dirname(out_data_file)
1262 if not os.path.exists(directory):
[all …]
/mbedtls-3.6.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers_no_static.c.jinja169 {% include "OS-template-transparent.jinja" -%}
183 {% include "OS-template-opaque.jinja" -%}
211 {% include "OS-template-opaque.jinja" -%}
/mbedtls-3.6.0/docs/architecture/
Dmbed-crypto-storage-specification.md19 Integrated in Mbed OS 5.11.
33 > On Mbed OS, if a device has a nonvolatile random seed file produced with Mbed OS 5.11.x and is up…
95 Integrated in Mbed OS 5.12.
174 Integrated in Mbed OS 5.13.
221 Integrated in Mbed OS TBD.
311 Integrated in Mbed OS TBD.

123