Home
last modified time | relevance | path

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

12

/mbedtls-3.5.0/scripts/mbedtls_dev/
Dbuild_tree.py19 import os
25 return all(os.path.isdir(os.path.join(path, subdir))
33 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]):
42 for d in [os.path.curdir,
43 os.path.pardir,
44 os.path.join(os.path.pardir, os.path.pardir)]:
46 os.chdir(d)
58 path = os.path.dirname(frame.filename)
59 for d in ['.', os.path.pardir] \
60 + [os.path.join(*([os.path.pardir]*i)) for i in range(2, 10)]:
[all …]
Dc_build_helper.py19 import os
30 os.remove(filename)
49 c_file = os.fdopen(c_fd, 'w', encoding='ascii')
101 cc = os.getenv('HOSTCC', None)
103 cc = os.getenv('CC', 'cc')
168 os.remove(c_name)
Dtest_case.py20 import os
94 caller = os.path.basename(sys.argv[0])
102 os.replace(tempfile, filename)
Dtest_data_generation.py25 import os
212 options.directory = os.path.abspath(options.directory)
229 options.targets = [os.path.basename(re.sub(r'\.data\Z', r'', target))
/mbedtls-3.5.0/scripts/
Dcode_size_compare.py29 import os
46 self.result_dir = os.path.abspath(result_dir)
47 os.makedirs(self.result_dir, exist_ok=True)
49 self.csv_dir = os.path.abspath("code_size_records/")
50 os.makedirs(self.csv_dir, exist_ok=True)
72 git_worktree_path = os.path.join(self.repo_path, "temp-" + revision)
83 my_environment = os.environ.copy()
101 csv_file = open(os.path.join(self.csv_dir, csv_fname), "w")
122 os.path.exists(os.path.join(self.csv_dir, csv_fname)):
135 old_file = open(os.path.join(self.csv_dir, self.old_rev + ".csv"), "r")
[all …]
Dgenerate_driver_wrappers.py24 import os
56 loader=jinja2.FileSystemLoader(os.path.dirname(template_path)),
58 template = environment.get_template(os.path.basename(template_path))
70 os.path.join(template_dir, "psa_crypto_driver_wrappers.c.jinja")
74 with open(file=os.path.join(output_dir, "psa_crypto_driver_wrappers.c"),
127 'transparent': os.path.join(mbedtls_root,
132 'opaque': os.path.join(mbedtls_root,
153 with open(file=os.path.join(json_directory, jsondriver_list),
159 driver_file=os.path.join(json_directory, driver_file_name))
187 mbedtls_root = os.path.abspath(args.mbedtls_root)
[all …]
Decp_comb_table.py24 import os
42 CC = os.getenv('CC', 'cc')
43 MBEDTLS_LIBRARY_PATH = os.getenv('MBEDTLS_LIBRARY_PATH', "library")
161 return os.path.normpath(os.path.join(os.path.dirname(__file__), "..", *args))
173 srcfile = os.fdopen(fd, mode="w")
192 os.unlink(srcname)
193 os.unlink(binname)
231 shared_lib_path = os.path.normpath(os.path.join(MBEDTLS_LIBRARY_PATH, "libmbedcrypto.so"))
232 static_lib_path = os.path.normpath(os.path.join(MBEDTLS_LIBRARY_PATH, "libmbedcrypto.a"))
233 if not os.path.exists(shared_lib_path) and not os.path.exists(static_lib_path):
Dabi_check.py102 import os
139 self.report_dir = os.path.abspath(configuration.report_dir)
141 self.can_remove_report_dir = not (os.path.exists(self.report_dir) or
217 if not (os.path.exists(os.path.join(git_worktree_path, "crypto"))
225 cwd=os.path.join(git_worktree_path, "crypto"),
235 cwd=os.path.join(git_worktree_path, "crypto"),
242 my_environment = os.environ.copy()
245 if os.path.exists(os.path.join(git_worktree_path, "crypto")):
254 for root, _dirs, files in os.walk(git_worktree_path):
256 version.modules[os.path.splitext(file)[0]] = (
[all …]
Dmin_requirements.py21 import os
67 nested_file = os.path.join(os.path.dirname(filename),
95 req_file_name = os.path.join(temp_dir, 'requirements.txt')
128 options.files = [os.path.join(os.path.dirname(__file__),
Dmemory.sh75 CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os lib >/dev/null 2>&1
77 CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os ssl/$CLIENT >/dev/null
85 CFLAGS=$CFLAGS_MEM make OFLAGS=-Os lib >/dev/null 2>&1
87 CFLAGS=$CFLAGS_MEM make OFLAGS=-Os ssl/$CLIENT >/dev/null
Dconfig.py30 import os
286 # No OS-provided entropy source
362 os.path.join(os.path.dirname(__file__),
363 os.pardir,
365 os.path.join(os.path.dirname(os.path.abspath(os.path.dirname(__file__))),
372 if os.path.lexists(candidate):
Dassemble_changelog.py41 import os
362 mtime = os.stat(filename).st_mtime
426 if os.path.exists(output_file) and not os.path.isfile(output_file):
436 os.rename(output_temp, output_file)
440 os.remove(filename)
447 files_to_merge = glob.glob(os.path.join(options.dir, '*.txt'))
Dgenerate_ssl_debug_helpers.py26 import os
398 mbedtls_root = os.path.abspath(
400 with open(os.path.join(mbedtls_root, 'include/mbedtls/ssl.h')) as f:
421 with open(os.path.join(output_directory, 'ssl_debug_helpers_generated.c'), 'w') as f:
/mbedtls-3.5.0/tests/scripts/
Dscripts_path.py23 import os
26 sys.path.append(os.path.join(os.path.dirname(__file__),
27 os.path.pardir, os.path.pardir,
Dtest_psa_compliance.py25 import os
54 mbedtls_dir = os.getcwd()
56 if not os.path.exists('library/libmbedcrypto.a'):
60 os.makedirs(psa_arch_tests_dir, exist_ok=True)
62 os.chdir(psa_arch_tests_dir)
74 os.mkdir(build_dir)
75 os.chdir(build_dir)
139 os.chdir(mbedtls_dir)
Dcheck_files.py25 import os
69 filepath = os.path.normpath(filepath)
72 seps = os.path.sep
73 if os.path.altsep is not None:
74 seps += os.path.altsep
161 _root, ext = os.path.splitext(filepath)
177 is_executable = os.access(filepath, os.X_OK)
216 is_executable = os.access(filepath, os.X_OK)
419 return [fp if os.path.dirname(fp) else os.path.join(os.curdir, fp)
Dcheck_test_cases.py26 import os
117 if os.path.isdir('tests'):
119 elif os.path.isdir('suites'):
121 elif os.path.isdir('../suites'):
130 for data_file_name in glob.glob(os.path.join(directory, 'suites',
133 ssl_opt_sh = os.path.join(directory, 'ssl-opt.sh')
134 if os.path.exists(ssl_opt_sh):
136 for ssl_opt_file_name in glob.glob(os.path.join(directory, 'opt-testcases',
Dtest_config_script.py33 import os
41 return os.path.join(directory,
51 os.remove(filename)
58 if os.path.exists(directory):
61 os.makedirs(directory)
125 cmd = [os.path.abspath(options.script),
126 '-f', os.path.basename(data_filename)]
Dpsa_collect_statuses.py31 import os
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):
96 with open(os.devnull, 'w') as devnull:
Dgenerate_test_code.py167 import os
1110 if not os.path.exists(path):
1113 snippets = {'generator_script': os.path.basename(__file__)}
1177 data_file_name = os.path.basename(args.data_file)
1178 data_name = os.path.splitext(data_file_name)[0]
1180 out_c_file = os.path.join(args.out_dir, data_name + '.c')
1181 out_data_file = os.path.join(args.out_dir, data_name + '.datax')
1183 out_c_file_dir = os.path.dirname(out_c_file)
1184 out_data_file_dir = os.path.dirname(out_data_file)
1186 if not os.path.exists(directory):
[all …]
Dset_psa_test_dependencies.py21 import os
158 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
274 os.replace(file_name, backup)
275 os.replace(tmp, file_name)
Dtest-ref-configs.pl120 system( "CFLAGS='-Os -Werror -Wall -Wextra' make" ) and abort "Failed to build: $conf_name\n";
146 … system( "CFLAGS='-Os -Werror -Wall -Wextra' make" ) and abort "Failed to build: $conf_name\n";
Dtest_psa_constant_names.py27 import os
194 headers = [os.path.join(options.include[0], h) for h in HEADERS]
/mbedtls-3.5.0/
D.travis.yml28 os: linux
64 os: windows
85 os: linux
110 os: linux
/mbedtls-3.5.0/docs/architecture/
Dmbed-crypto-storage-specification.md17 Integrated in Mbed OS 5.11.
31 > On Mbed OS, if a device has a nonvolatile random seed file produced with Mbed OS 5.11.x and is up…
93 Integrated in Mbed OS 5.12.
172 Integrated in Mbed OS 5.13.
219 Integrated in Mbed OS TBD.
309 Integrated in Mbed OS TBD.

12