Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 46) sorted by relevance

12

/mbedtls-3.5.0/scripts/
Dassemble_changelog.py47 def __init__(self, filename, line_number, message, *args, **kwargs): argument
48 message = '{}:{}: {}'.format(filename, line_number,
59 def __init__(self, filename, line): argument
60 message = ('Lost content from {}: "{}"'.format(filename, line))
207 def add_categories_from_text(self, filename, line_offset, argument
213 raise InputFormatError(filename, line_offset + e.line_offset,
218 raise InputFormatError(filename,
230 raise InputFormatError(filename,
264 def write(self, filename): argument
267 with open(filename, 'w', encoding='utf-8') as out:
[all …]
Dconfig.py368 def __init__(self, filename=None): argument
370 if filename is None:
373 filename = candidate
379 self.filename = filename
381 with open(filename, 'r', encoding='utf-8') as file:
455 def write(self, filename=None): argument
460 if filename is None:
461 filename = self.filename
462 with open(filename, 'w', encoding='utf-8') as output:
562 .format(args.symbol, config.filename))
Dgenerate_visualc_files.pl126 my ($filename) = @_;
129 open my $fh, '<:crlf', $filename or die "Could not read $filename\n";
137 my ($content, $filename) = @_;
139 open my $fh, '>:crlf', $filename or die "Could not write to $filename\n";
Dmin_requirements.py51 def add_file(self, filename: str) -> None:
60 for line in open(filename):
67 nested_file = os.path.join(os.path.dirname(filename),
131 for filename in options.files:
132 reqs.add_file(filename)
Dcode_style.py87 src_files = [filename for filename in src_files
88 if not (filename.startswith("3rdparty/") or
89 filename in generated_files)]
Dabi_check.py298 filename, argument
308 full_path = os.path.join(directory, filename)
331 filename=filename,
363 for filename in self._list_generated_test_data_files(git_worktree_path):
364 if 'storage_format' in filename:
365 storage_data_files.add(filename)
366 to_be_generated.add(filename)
485 metadata.filename, metadata.line_number,
/mbedtls-3.5.0/tests/src/
Dhelpers.c66 void mbedtls_test_fail(const char *test, int line_no, const char *filename) in mbedtls_test_fail() argument
76 mbedtls_test_info.filename = filename; in mbedtls_test_fail()
79 void mbedtls_test_skip(const char *test, int line_no, const char *filename) in mbedtls_test_skip() argument
84 mbedtls_test_info.filename = filename; in mbedtls_test_skip()
102 mbedtls_test_info.filename = 0; in mbedtls_test_info_reset()
110 int mbedtls_test_equal(const char *test, int line_no, const char *filename, in mbedtls_test_equal() argument
125 mbedtls_test_fail(test, line_no, filename); in mbedtls_test_equal()
137 int mbedtls_test_le_u(const char *test, int line_no, const char *filename, in mbedtls_test_le_u() argument
152 mbedtls_test_fail(test, line_no, filename); in mbedtls_test_le_u()
164 int mbedtls_test_le_s(const char *test, int line_no, const char *filename, in mbedtls_test_le_s() argument
[all …]
/mbedtls-3.5.0/library/
Dpsa_its_file.c74 static void psa_its_fill_filename(psa_storage_uid_t uid, char *filename) in psa_its_fill_filename() argument
78 mbedtls_snprintf(filename, PSA_ITS_STORAGE_FILENAME_LENGTH, in psa_its_fill_filename()
90 char filename[PSA_ITS_STORAGE_FILENAME_LENGTH]; in psa_its_read_file() local
95 psa_its_fill_filename(uid, filename); in psa_its_read_file()
96 *p_stream = fopen(filename, "rb"); in psa_its_read_file()
202 char filename[PSA_ITS_STORAGE_FILENAME_LENGTH]; in psa_its_set() local
211 psa_its_fill_filename(uid, filename); in psa_its_set()
242 if (rename_replace_existing(PSA_ITS_STORAGE_TEMP, filename) != 0) { in psa_its_set()
257 char filename[PSA_ITS_STORAGE_FILENAME_LENGTH]; in psa_its_remove() local
259 psa_its_fill_filename(uid, filename); in psa_its_remove()
[all …]
/mbedtls-3.5.0/programs/hash/
Dgeneric_sum.c40 static int generic_wrapper(const mbedtls_md_info_t *md_info, char *filename, unsigned char *sum) in generic_wrapper() argument
42 int ret = mbedtls_md_file(md_info, filename, sum); in generic_wrapper()
45 mbedtls_fprintf(stderr, "failed to open: %s\n", filename); in generic_wrapper()
49 mbedtls_fprintf(stderr, "failed to read: %s\n", filename); in generic_wrapper()
55 static int generic_print(const mbedtls_md_info_t *md_info, char *filename) in generic_print() argument
60 if (generic_wrapper(md_info, filename, sum) != 0) { in generic_print()
68 mbedtls_printf(" %s\n", filename); in generic_print()
72 static int generic_check(const mbedtls_md_info_t *md_info, char *filename) in generic_check() argument
88 if ((f = fopen(filename, "rb")) == NULL) { in generic_check()
89 mbedtls_printf("failed to open: %s\n", filename); in generic_check()
/mbedtls-3.5.0/tests/include/test/
Dhelpers.h64 const char *filename; member
95 void mbedtls_test_fail(const char *test, int line_no, const char *filename);
108 void mbedtls_test_skip(const char *test, int line_no, const char *filename);
145 int mbedtls_test_equal(const char *test, int line_no, const char *filename,
166 int mbedtls_test_le_u(const char *test, int line_no, const char *filename,
187 int mbedtls_test_le_s(const char *test, int line_no, const char *filename,
/mbedtls-3.5.0/programs/pkey/
Dpk_sign.c57 char filename[512]; in main() local
119 mbedtls_snprintf(filename, sizeof(filename), "%s.sig", argv[2]); in main()
121 if ((f = fopen(filename, "wb+")) == NULL) { in main()
122 mbedtls_printf(" failed\n ! Could not create %s\n\n", filename); in main()
134 mbedtls_printf("\n . Done (created \"%s\")\n\n", filename); in main()
Dpk_verify.c53 char filename[512]; in main() local
79 mbedtls_snprintf(filename, sizeof(filename), "%s.sig", argv[2]); in main()
81 if ((f = fopen(filename, "rb")) == NULL) { in main()
82 mbedtls_printf("\n ! Could not open %s\n\n", filename); in main()
Drsa_verify.c53 char filename[512]; in main() local
90 mbedtls_snprintf(filename, sizeof(filename), "%s.sig", argv[1]); in main()
92 if ((f = fopen(filename, "rb")) == NULL) { in main()
93 mbedtls_printf("\n ! Could not open %s\n\n", filename); in main()
Drsa_sign_pss.c58 char filename[512]; in main() local
132 mbedtls_snprintf(filename, 512, "%s.sig", argv[2]); in main()
134 if ((f = fopen(filename, "wb+")) == NULL) { in main()
135 mbedtls_printf(" failed\n ! Could not create %s\n\n", filename); in main()
147 mbedtls_printf("\n . Done (created \"%s\")\n\n", filename); in main()
Drsa_sign.c52 char filename[512]; in main() local
138 mbedtls_snprintf(filename, sizeof(filename), "%s.sig", argv[1]); in main()
140 if ((f = fopen(filename, "wb+")) == NULL) { in main()
152 mbedtls_printf("\n . Done (created \"%s\")\n\n", filename); in main()
Drsa_verify_pss.c56 char filename[512]; in main() local
94 mbedtls_snprintf(filename, 512, "%s.sig", argv[2]); in main()
96 if ((f = fopen(filename, "rb")) == NULL) { in main()
97 mbedtls_printf("\n ! Could not open %s\n\n", filename); in main()
Dkey_app.c73 const char *filename; /* filename of the key file */ member
113 opt.filename = DFL_FILENAME; in main()
133 opt.filename = q; in main()
188 ret = mbedtls_pk_parse_keyfile(&pk, opt.filename, opt.password, in main()
249 ret = mbedtls_pk_parse_public_keyfile(&pk, opt.filename); in main()
/mbedtls-3.5.0/tests/scripts/
Dtest_config_script.py50 for filename in filenames:
51 os.remove(filename)
157 (stem, filename) = run_one(options, ['set', symbol])
158 run_one(options, ['get', symbol], stem_prefix=stem, input_file=filename)
160 (stem, filename) = run_one(options, ['set', symbol, 'value'])
161 run_one(options, ['get', symbol], stem_prefix=stem, input_file=filename)
Dcheck_names.py81 def __init__(self, filename, line, line_no, pos, name): argument
83 self.filename = filename
178 .format(self.match.filename, self.match.line_no, self.match.name)
185 self.match.filename,
208 .format(self.match.filename, self.match.line_no, self.match.name)
216 .format(self.match.filename, self.match.line_no, self.match.name)
436 for filename in files:
437 with open(filename, "r", encoding="utf-8") as fp:
444 filename,
/mbedtls-3.5.0/scripts/mbedtls_dev/
Dmacro_collector.py25 def __init__(self, filename: str, line_number: Union[int, str]) -> None:
26 message = 'in {} at {}'.format(filename, line_number)
28 self.filename = filename
51 def __init__(self, filename: str, binary: bool = False) -> None:
52 self.filename = filename
58 self.file = open(self.filename, 'rb' if self.binary else 'r')
71 raise ReadFileLineException(self.filename, self.line_number) \
495 def parse_header(self, filename: str) -> None:
497 with read_file_lines(filename, binary=True) as lines:
544 def parse_test_cases(self, filename: str) -> None:
[all …]
Dtest_case.py86 def write_data_file(filename: str,
95 tempfile = filename + '.new'
102 os.replace(tempfile, filename)
/mbedtls-3.5.0/programs/x509/
Dcrl_app.c56 const char *filename; /* filename of the certificate file */ member
79 opt.filename = DFL_FILENAME; in main()
89 opt.filename = q; in main()
101 ret = mbedtls_x509_crl_parse_file(&crl, opt.filename); in main()
Dreq_app.c56 const char *filename; /* filename of the certificate request */ member
79 opt.filename = DFL_FILENAME; in main()
89 opt.filename = q; in main()
101 ret = mbedtls_x509_csr_parse_file(&csr, opt.filename); in main()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_psa_its.function30 static void psa_its_fill_filename(psa_storage_uid_t uid, char *filename)
34 mbedtls_snprintf(filename, PSA_ITS_STORAGE_FILENAME_LENGTH,
56 char filename[PSA_ITS_STORAGE_FILENAME_LENGTH];
59 psa_its_fill_filename(uid, filename);
60 (void) remove(filename);
62 psa_its_fill_filename((psa_storage_uid_t) (-1), filename);
63 (void) remove(filename);
250 char filename[PSA_ITS_STORAGE_FILENAME_LENGTH];
256 psa_its_fill_filename(uid, filename);
257 stream = fopen(filename, "rb+");
[all …]
/mbedtls-3.5.0/programs/util/
Dpem2der.c56 const char *filename; /* filename of the input file */ member
198 opt.filename = DFL_FILENAME; in main()
210 opt.filename = q; in main()
224 ret = load_file(opt.filename, &pem_buffer, &pem_size); in main()

12