Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 71) sorted by relevance

123

/mbedtls-3.5.0/tests/scripts/
Dgenerate_test_code.py233 line = super().__next__()
234 if line is not None:
238 return line.decode(sys.getdefaultencoding()).rstrip() + '\n'
363 for line in funcs_f:
364 if re.search(end_regex, line):
366 headers += line
409 for line in funcs_f:
410 match = re.search(DEPENDENCY_REGEX, line.strip())
417 if re.search(END_DEP_REGEX, line):
427 def parse_function_dependencies(line): argument
[all …]
Dgen_gcm_decrypt.pl32 while(my $line = <TEST_DATA>)
34 next if ($line !~ /^\[/);
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
46 my $line;
48 while($line = <TEST_DATA>)
50 next if($line !~ /=/);
54 ($val) = ($line =~ /^$name = (\w+)/);
63 my $line;
65 while($line = <TEST_DATA>)
67 next if($line !~ /=/ && $line !~ /FAIL/);
[all …]
Dcheck_names.py81 def __init__(self, filename, line, line_no, pos, name): argument
84 self.line = line
98 " {0} | {1}".format(gutter, self.line) +
400 for line_no, line in enumerate(header):
401 for macro in macro_regex.finditer(line):
407 line,
438 for line_no, line in enumerate(fp):
439 if exclusions.search(line):
442 for name in mbed_regex.finditer(line):
445 line,
[all …]
Dcheck_files.py139 def issue_with_line(self, line, filepath, line_number): argument
146 def check_file_line(self, filepath, line, line_number): argument
147 if self.issue_with_line(line, filepath, line_number):
156 for i, line in enumerate(iter(f.readline, b"")):
157 self.check_file_line(filepath, line, i + 1)
294 def issue_with_line(self, line, _filepath, line_number): argument
296 text = line.decode('utf-8')
316 def issue_with_line(self, line, _filepath, _line_number): argument
317 return b"\r" in line
330 def issue_with_line(self, line, _filepath, _line_number): argument
[all …]
Dgen_gcm_encrypt.pl32 while(my $line = <TEST_DATA>)
34 next if ($line !~ /^\[/);
35 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
46 my $line;
48 while($line = <TEST_DATA>)
50 next if($line !~ /=/);
54 ($val) = ($line =~ /^$name = (\w+)/);
60 while (my $line = <TEST_DATA>)
Dgen_pkcs1_v21_sign_verify.pl30 while(my $line = <TEST_DATA>)
32 next if($line !~ /^# $str/);
36 while(my $line = <TEST_DATA>)
38 last if($line eq "\r\n");
39 $val .= $line;
54 while (my $line = <TEST_DATA>)
56 next if ($line !~ /^# Example/);
58 ( $mod ) = ($line =~ /A (\d+)/);
Dgen_ctr_drbg.pl33 my $line = <TEST_DATA>;
34 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
43 my $line;
45 while($line = <TEST_DATA>)
47 next if($line !~ /=/);
51 ($val) = ($line =~ /^$name = (\w+)/);
57 while (my $line = <TEST_DATA>)
59 next if ($line !~ /^\[AES-256 use df/);
Dcheck_test_cases.py86 for line_number, line in enumerate(data_file, 1):
87 line = line.rstrip(b'\r\n')
88 if not line:
91 if line.startswith(b'#'):
96 data_file_name, line_number, line)
103 for line_number, line in enumerate(file_contents, 1):
107 m = re.match(br'\s*run_test\s+"((?:[^\\"]|\\.)*)"', line)
Dcheck-doxy-blocks.pl48 while (my $line = <$fh>) {
49 $block_start = $. if $line =~ m/\/\*(?![*!])/;
50 $block_start = 0 if $line =~ m/\*\//;
51 if ($block_start and $line =~ m/$doxy_re/) {
Dtest_generate_test_code.py309 line = parent.__next__()
310 return line
319 line = super(StringIOWrapper, self).readline()
320 if line is not None:
322 return line
447 line = '/* BEGIN_CASE ' \
450 dependencies = parse_function_dependencies(line)
459 line = '/* BEGIN_CASE */'
460 dependencies = parse_function_dependencies(line)
469 line = '/* BEGIN_CASE depends_on:MBEDTLS_FS_IO: A : !B:C : F*/'
[all …]
/mbedtls-3.5.0/library/
Ddebug.c46 const char *file, int line, in debug_send_line() argument
57 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, idstr); in debug_send_line()
59 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line()
65 const char *file, int line, in mbedtls_debug_print_msg() argument
88 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg()
92 const char *file, int line, in mbedtls_debug_print_ret() argument
116 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ret()
120 const char *file, int line, const char *text, in mbedtls_debug_print_buf() argument
137 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
149 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
[all …]
Dssl_debug_helpers.h49 int level, const char *file, int line,
54 int level, const char *file, int line,
60 int level, const char *file, int line,
/mbedtls-3.5.0/programs/hash/
Dgeneric_sum.c80 char line[1024]; in generic_check() local
96 memset(line, 0, sizeof(line)); in generic_check()
98 n = sizeof(line); in generic_check()
100 while (fgets(line, (int) n - 1, f) != NULL) { in generic_check()
101 n = strlen(line); in generic_check()
108 if (line[2 * mbedtls_md_get_size(md_info)] != ' ' || in generic_check()
109 line[2 * mbedtls_md_get_size(md_info) + 1] != ' ') { in generic_check()
114 if (line[n - 1] == '\n') { in generic_check()
115 n--; line[n] = '\0'; in generic_check()
117 if (line[n - 1] == '\r') { in generic_check()
[all …]
/mbedtls-3.5.0/tests/suites/
Dtest_suite_debug.function12 void string_debug(void *data, int level, const char *file, int line, const char *str)
22 *p++ = '0' + (line / 1000) % 10;
23 *p++ = '0' + (line / 100) % 10;
24 *p++ = '0' + (line / 10) % 10;
25 *p++ = '0' + (line / 1) % 10;
56 int line, char *result_str)
78 mbedtls_debug_print_msg(&ssl, level, file, line,
90 void mbedtls_debug_print_ret(char *file, int line, char *text, int value,
111 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value);
122 void mbedtls_debug_print_buf(char *file, int line, char *text,
[all …]
Dmain_test.function1 #line 2 "suites/main_test.function"
42 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
53 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
81 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
111 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
144 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
216 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
225 * \param argc Command line arguments count.
226 * \param argv Array of command line arguments.
233 extern void (*mbedtls_test_hook_test_fail)(const char *test, int line, const char *file);
/mbedtls-3.5.0/scripts/
Dgenerate_features.pl59 while (my $line = <CONFIG_H>)
61 next if ($in_section && $line !~ /#define/ && $line !~ /SECTION/);
62 next if (!$in_section && $line !~ /SECTION/);
65 if ($line =~ /SECTION/) {
70 my ($define) = $line =~ /#define (\w+)/;
77 my ($section_name) = $line =~ /SECTION: ([\w ]+)/;
Dmin_requirements.py60 for line in open(filename):
61 line = line.strip()
62 line = re.sub(r'(\A|\s+)#.*', r'', line)
63 if not line:
65 m = re.match(r'-r\s+', line)
68 line[m.end(0):])
71 self.requirements.append(self.adjust_requirement(line))
Dassemble_changelog.py59 def __init__(self, filename, line): argument
60 message = ('Lost content from {}: "{}"'.format(filename, line))
225 for line_number, line in enumerate(body_split, 1):
226 if not self._only_url_re.match(line) and \
227 len(line) > MAX_LINE_LENGTH:
229 if self._has_url_re.match(line) else ""
234 len(line), MAX_LINE_LENGTH,
412 for line in open(main_input_file, 'r', encoding='utf-8'):
413 if line not in generated_output:
414 raise LostContent('original file', line)
[all …]
Dabi_check.py291 def _normalize_storage_test_case_data(line): argument
293 line = re.sub(r'\s+', r'', line)
294 return line
310 for line_number, line in enumerate(fd, 1):
311 line = line.strip()
312 if not line:
315 if line.startswith('#'):
318 description = line.strip()
321 if line.startswith('depends_on:'):
324 test_case_data = self._normalize_storage_test_case_data(line)
[all …]
Dconfig.py382 self.templates = [self._parse_line(line) for line in file]
401 def _parse_line(self, line): argument
403 line = line.rstrip('\r\n')
404 m = re.match(self._config_line_regexp, line)
406 return line
409 return line
450 line = template
452 line = self._format_template(*template)
453 output.write(line + '\n')
Dcode_size_compare.py102 for line in size_text.splitlines()[1:]:
103 data = line.split()
144 for line in old_file.readlines()[1:]:
145 cols = line.split(", ")
152 for line in new_file.readlines()[1:]:
153 cols = line.split(", ")
/mbedtls-3.5.0/scripts/mbedtls_dev/
Dmacro_collector.py293 def read_line(self, line): argument
299 m = re.match(self._define_directive_re, line)
345 for line in header_file:
346 m = re.search(self._continued_line_re, line)
349 line = line[:m.start(0)] + cont
350 m = re.search(self._continued_line_re, line)
351 line = re.sub(self._nonascii_re, rb'', line).decode('ascii')
352 self.read_line(line)
476 def parse_header_line(self, line: str) -> None:
478 m = re.match(self._header_line_re, line)
[all …]
/mbedtls-3.5.0/include/mbedtls/
Ddebug.h171 const char *file, int line,
190 const char *file, int line,
211 const char *file, int line, const char *text,
232 const char *file, int line,
254 const char *file, int line,
275 const char *file, int line,
303 const char *file, int line,
Derror.h154 const char *file, int line) in mbedtls_error_add() argument
158 (*mbedtls_test_hook_error_add)(high, low, file, line); in mbedtls_error_add()
162 (void) line; in mbedtls_error_add()
/mbedtls-3.5.0/tests/src/
Dhelpers.c304 const char *file, int line) in mbedtls_test_err_add_check() argument
323 line, file); in mbedtls_test_err_add_check()
329 line, file); in mbedtls_test_err_add_check()
335 line, file); in mbedtls_test_err_add_check()
341 line, file); in mbedtls_test_err_add_check()
344 line, file); in mbedtls_test_err_add_check()

123