/mbedtls-development/scripts/mbedtls_dev/ |
A D | build_tree.py | 21 def looks_like_mbedtls_root(path: str) -> bool: 23 return all(os.path.isdir(os.path.join(path, subdir)) 32 for d in [os.path.curdir, 33 os.path.pardir, 34 os.path.join(os.path.pardir, os.path.pardir)]:
|
/mbedtls-development/scripts/ |
A D | ecp_comb_table.py | 161 return os.path.normpath(os.path.join(os.path.dirname(__file__), "..", *args)) 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):
|
A D | generate_visualc_files.pl | 145 my ($path) = @_; 147 my $guid = md5_hex( "mbedTLS:$path" ); 154 my ($path, $template, $dir, $ext) = @_; 156 my $guid = gen_app_guid( $path ); 157 $path =~ s!/!\\!g; 158 (my $appname = $path) =~ s/.*\\//; 160 my $srcs = "<ClCompile Include=\"..\\..\\programs\\$path.c\" \/>"; 227 for my $path (@app_names) { 228 my $guid = gen_app_guid( $path ); 229 (my $appname = $path) =~ s!.*/!!;
|
A D | code_size_compare.py | 43 self.result_dir = os.path.abspath(result_dir) 46 self.csv_dir = os.path.abspath("code_size_records/") 56 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]): 74 git_worktree_path = os.path.join(self.repo_path, "temp-" + revision) 103 csv_file = open(os.path.join(self.csv_dir, csv_fname), "w") 124 os.path.exists(os.path.join(self.csv_dir, csv_fname)): 137 old_file = open(os.path.join(self.csv_dir, self.old_rev + ".csv"), "r") 138 new_file = open(os.path.join(self.csv_dir, self.new_rev + ".csv"), "r") 139 res_file = open(os.path.join(self.result_dir, "compare-" + self.old_rev 206 if os.path.isfile(comp_args.result_dir):
|
A D | abi_check.py | 60 self.report_dir = os.path.abspath(configuration.report_dir) 62 self.can_remove_report_dir = not (os.path.exists(self.report_dir) or 138 if not (os.path.exists(os.path.join(git_worktree_path, "crypto")) 146 cwd=os.path.join(git_worktree_path, "crypto"), 156 cwd=os.path.join(git_worktree_path, "crypto"), 166 if os.path.exists(os.path.join(git_worktree_path, "crypto")): 177 version.modules[os.path.splitext(file)[0]] = ( 178 os.path.join(root, file) 193 output_path = os.path.join( 269 output_path = os.path.join( [all …]
|
A D | config.py | 326 os.path.join(os.path.dirname(__file__), 329 os.path.join(os.path.dirname(os.path.abspath(os.path.dirname(__file__))), 336 if os.path.lexists(candidate):
|
/mbedtls-development/tests/scripts/ |
A D | scripts_path.py | 26 sys.path.append(os.path.join(os.path.dirname(__file__), 27 os.path.pardir, os.path.pardir,
|
A D | check_test_cases.py | 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):
|
A D | check_files.py | 66 filepath = os.path.normpath(filepath) 69 seps = os.path.sep 70 if os.path.altsep is not None: 71 seps += os.path.altsep 157 _root, ext = os.path.splitext(filepath) 358 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]): 379 return [fp if os.path.dirname(fp) else os.path.join(os.curdir, fp)
|
A D | generate_test_code.py | 1048 for name, path in [('Functions file', funcs_file), 1054 if not os.path.exists(path): 1057 snippets = {'generator_script': os.path.basename(__file__)} 1121 data_file_name = os.path.basename(args.data_file) 1122 data_name = os.path.splitext(data_file_name)[0] 1124 out_c_file = os.path.join(args.out_dir, data_name + '.c') 1125 out_data_file = os.path.join(args.out_dir, data_name + '.datax') 1127 out_c_file_dir = os.path.dirname(out_c_file) 1128 out_data_file_dir = os.path.dirname(out_data_file) 1130 if not os.path.exists(directory): [all …]
|
A D | test_config_script.py | 41 return os.path.join(directory, 58 if os.path.exists(directory): 125 cmd = [os.path.abspath(options.script), 126 '-f', os.path.basename(data_filename)]
|
A D | check_names.py | 236 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]): 307 def is_file_excluded(self, path, exclude_wildcards): argument 312 if fnmatch.fnmatch(path, pattern): 334 return list(path for path in accumulator 335 if not self.is_file_excluded(path, exclude_wildcards))
|
A D | psa_collect_statuses.py | 89 if not options.use_existing_log and os.path.exists(options.log_file): 91 if not os.path.exists(options.log_file):
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-integration-guide.md | 25 cd /path/to/mbedtls 32 cd /path/to/mbedtls 33 make PSA_DRIVERS="/path/to/acme/driver.json /path/to/nadir/driver.json" lib 39 cd /path/to/application 40 …ld myapp.o -L/path/to/acme -lacmedriver -L/path/to/nadir -lnadirdriver -L/path/to/mbedtls -lmbedcr…
|
/mbedtls-development/programs/util/ |
A D | pem2der.c | 119 static int load_file( const char *path, unsigned char **buf, size_t *n ) in load_file() argument 124 if( ( f = fopen( path, "rb" ) ) == NULL ) in load_file() 162 static int write_file( const char *path, unsigned char *buf, size_t n ) in write_file() argument 166 if( ( f = fopen( path, "wb" ) ) == NULL ) in write_file()
|
/mbedtls-development/tests/suites/ |
A D | test_suite_entropy.function | 143 * to call mbedtls_entropy_free() unconditionally on an error path without 144 * checking whether it has already been called in the success path. */ 160 void entropy_seed_file( char * path, int ret ) 166 TEST_ASSERT( mbedtls_entropy_write_seed_file( &ctx, path ) == ret ); 167 TEST_ASSERT( mbedtls_entropy_update_seed_file( &ctx, path ) == ret ); 264 void entropy_source_fail( char * path ) 282 TEST_ASSERT( mbedtls_entropy_write_seed_file( &ctx, path ) 284 TEST_ASSERT( mbedtls_entropy_update_seed_file( &ctx, path ) 287 ((void) path);
|
/mbedtls-development/include/mbedtls/ |
A D | hmac_drbg.h | 413 int mbedtls_hmac_drbg_write_seed_file( mbedtls_hmac_drbg_context *ctx, const char *path ); 429 int mbedtls_hmac_drbg_update_seed_file( mbedtls_hmac_drbg_context *ctx, const char *path );
|
A D | entropy.h | 243 int mbedtls_entropy_write_seed_file( mbedtls_entropy_context *ctx, const char *path ); 257 int mbedtls_entropy_update_seed_file( mbedtls_entropy_context *ctx, const char *path );
|
A D | ctr_drbg.h | 544 int mbedtls_ctr_drbg_write_seed_file( mbedtls_ctr_drbg_context *ctx, const char *path ); 560 int mbedtls_ctr_drbg_update_seed_file( mbedtls_ctr_drbg_context *ctx, const char *path );
|
A D | pk.h | 754 const char *path, const char *password, 774 int mbedtls_pk_parse_public_keyfile( mbedtls_pk_context *ctx, const char *path ); 876 int mbedtls_pk_load_file( const char *path, unsigned char **buf, size_t *n );
|
/mbedtls-development/library/ |
A D | hmac_drbg.c | 430 int mbedtls_hmac_drbg_write_seed_file( mbedtls_hmac_drbg_context *ctx, const char *path ) in mbedtls_hmac_drbg_write_seed_file() argument 436 if( ( f = fopen( path, "wb" ) ) == NULL ) in mbedtls_hmac_drbg_write_seed_file() 457 int mbedtls_hmac_drbg_update_seed_file( mbedtls_hmac_drbg_context *ctx, const char *path ) in mbedtls_hmac_drbg_update_seed_file() argument 465 if( ( f = fopen( path, "rb" ) ) == NULL ) in mbedtls_hmac_drbg_update_seed_file() 490 return( mbedtls_hmac_drbg_write_seed_file( ctx, path ) ); in mbedtls_hmac_drbg_update_seed_file()
|
A D | ctr_drbg.c | 601 const char *path ) in mbedtls_ctr_drbg_write_seed_file() argument 607 if( ( f = fopen( path, "wb" ) ) == NULL ) in mbedtls_ctr_drbg_write_seed_file() 632 const char *path ) in mbedtls_ctr_drbg_update_seed_file() argument 640 if( ( f = fopen( path, "rb" ) ) == NULL ) in mbedtls_ctr_drbg_update_seed_file() 665 return( mbedtls_ctr_drbg_write_seed_file( ctx, path ) ); in mbedtls_ctr_drbg_update_seed_file()
|
A D | entropy.c | 442 int mbedtls_entropy_write_seed_file( mbedtls_entropy_context *ctx, const char *path ) in mbedtls_entropy_write_seed_file() argument 454 if( ( f = fopen( path, "wb" ) ) == NULL ) in mbedtls_entropy_write_seed_file() 477 int mbedtls_entropy_update_seed_file( mbedtls_entropy_context *ctx, const char *path ) in mbedtls_entropy_update_seed_file() argument 484 if( ( f = fopen( path, "rb" ) ) == NULL ) in mbedtls_entropy_update_seed_file() 506 return( mbedtls_entropy_write_seed_file( ctx, path ) ); in mbedtls_entropy_update_seed_file()
|
A D | dhm.c | 616 static int load_file( const char *path, unsigned char **buf, size_t *n ) in load_file() argument 621 if( ( f = fopen( path, "rb" ) ) == NULL ) in load_file() 664 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument 670 DHM_VALIDATE_RET( path != NULL ); in mbedtls_dhm_parse_dhmfile() 672 if( ( ret = load_file( path, &buf, &n ) ) != 0 ) in mbedtls_dhm_parse_dhmfile()
|
/mbedtls-development/ChangeLog.d/ |
A D | do-not-use-obsolete-header.txt | 2 * Don't use the obsolete header path sys/fcntl.h in unit tests.
|