Home
last modified time | relevance | path

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

1234

/mbedtls-3.6.0/library/
Ddebug.c35 const char *file, int line, in debug_send_line() argument
46 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, idstr); in debug_send_line()
48 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line()
54 const char *file, int line, in mbedtls_debug_print_msg() argument
84 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg()
88 const char *file, int line, in mbedtls_debug_print_ret() argument
112 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ret()
116 const char *file, int line, const char *text, in mbedtls_debug_print_buf() argument
133 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
144 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf()
[all …]
/mbedtls-3.6.0/tests/scripts/
Dgen_gcm_decrypt.pl20 while(my $line = <TEST_DATA>)
22 next if ($line !~ /^\[/);
23 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
34 my $line;
36 while($line = <TEST_DATA>)
38 next if($line !~ /=/);
42 ($val) = ($line =~ /^$name = (\w+)/);
51 my $line;
53 while($line = <TEST_DATA>)
55 next if($line !~ /=/ && $line !~ /FAIL/);
[all …]
Dgenerate_test_code.py243 line = self._f.__next__()
247 return line.decode(sys.getdefaultencoding()).rstrip()+ '\n'
383 for line in funcs_f:
384 if re.search(end_regex, line):
386 headers += line
429 for line in funcs_f:
430 match = re.search(DEPENDENCY_REGEX, line.strip())
437 if re.search(END_DEP_REGEX, line):
447 def parse_function_dependencies(line): argument
457 match = re.search(BEGIN_CASE_REGEX, line)
[all …]
Dcheck_names.py69 def __init__(self, filename, line, line_no, pos, name): argument
72 self.line = line
86 " {0} | {1}".format(gutter, self.line) +
388 for line_no, line in enumerate(header):
389 for macro in macro_regex.finditer(line):
395 line,
426 for line_no, line in enumerate(fp):
427 if exclusions.search(line):
430 for name in mbed_regex.finditer(line):
433 line,
[all …]
Dcheck_files.py127 def issue_with_line(self, line, filepath, line_number): argument
134 def check_file_line(self, filepath, line, line_number): argument
135 if self.issue_with_line(line, filepath, line_number):
144 for i, line in enumerate(iter(f.readline, b"")):
145 self.check_file_line(filepath, line, i + 1)
282 def issue_with_line(self, line, _filepath, line_number): argument
284 text = line.decode('utf-8')
304 def issue_with_line(self, line, _filepath, _line_number): argument
305 return b"\r" in line
318 def issue_with_line(self, line, _filepath, _line_number): argument
[all …]
Dgen_gcm_encrypt.pl20 while(my $line = <TEST_DATA>)
22 next if ($line !~ /^\[/);
23 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
34 my $line;
36 while($line = <TEST_DATA>)
38 next if($line !~ /=/);
42 ($val) = ($line =~ /^$name = (\w+)/);
48 while (my $line = <TEST_DATA>)
Dgen_pkcs1_v21_sign_verify.pl18 while(my $line = <TEST_DATA>)
20 next if($line !~ /^# $str/);
24 while(my $line = <TEST_DATA>)
26 last if($line eq "\r\n");
27 $val .= $line;
42 while (my $line = <TEST_DATA>)
44 next if ($line !~ /^# Example/);
46 ( $mod ) = ($line =~ /A (\d+)/);
Dgen_ctr_drbg.pl21 my $line = <TEST_DATA>;
22 ($val) = ($line =~ /\[$name\s\=\s(\w+)\]/);
31 my $line;
33 while($line = <TEST_DATA>)
35 next if($line !~ /=/);
39 ($val) = ($line =~ /^$name = (\w+)/);
45 while (my $line = <TEST_DATA>)
47 next if ($line !~ /^\[AES-256 use df/);
Dtest_generate_test_code.py297 line = parent.__next__()
298 return line
307 line = super(StringIOWrapper, self).readline()
308 if line is not None:
310 return line
435 line = '/* BEGIN_CASE ' \
438 dependencies = parse_function_dependencies(line)
447 line = '/* BEGIN_CASE */'
448 dependencies = parse_function_dependencies(line)
457 line = '/* BEGIN_CASE depends_on:MBEDTLS_FS_IO: A : !B:C : F*/'
[all …]
Dcheck_test_cases.py75 for line_number, line in enumerate(data_file, 1):
76 line = line.rstrip(b'\r\n')
77 if not line:
80 if line.startswith(b'#'):
85 data_file_name, line_number, line)
92 for line_number, line in enumerate(file_contents, 1):
96 m = re.match(br'\s*run_test\s+"((?:[^\\"]|\\.)*)"', line)
Dcheck-doxy-blocks.pl36 while (my $line = <$fh>) {
37 $block_start = $. if $line =~ m/\/\*(?![*!])/;
38 $block_start = 0 if $line =~ m/\*\//;
39 if ($block_start and $line =~ m/$doxy_re/) {
/mbedtls-3.6.0/programs/hash/
Dgeneric_sum.c68 char line[1024]; in generic_check() local
84 memset(line, 0, sizeof(line)); in generic_check()
86 n = sizeof(line); in generic_check()
88 while (fgets(line, (int) n - 1, f) != NULL) { in generic_check()
89 n = strlen(line); in generic_check()
96 if (line[2 * mbedtls_md_get_size(md_info)] != ' ' || in generic_check()
97 line[2 * mbedtls_md_get_size(md_info) + 1] != ' ') { in generic_check()
102 if (line[n - 1] == '\n') { in generic_check()
103 n--; line[n] = '\0'; in generic_check()
105 if (line[n - 1] == '\r') { in generic_check()
[all …]
/mbedtls-3.6.0/scripts/
Dgenerate_features.pl47 while (my $line = <CONFIG_H>)
49 next if ($in_section && $line !~ /#define/ && $line !~ /SECTION/);
50 next if (!$in_section && $line !~ /SECTION/);
53 if ($line =~ /SECTION/) {
58 my ($mbedtls_prefix, $define) = $line =~ /#define (MBEDTLS_)?(\w+)/;
60 die "Feature does not start with 'MBEDTLS_': $line\n";
68 my ($section_name) = $line =~ /SECTION: ([\w ]+)/;
Dmin_requirements.py48 for line in open(filename):
49 line = line.strip()
50 line = re.sub(r'(\A|\s+)#.*', r'', line)
51 if not line:
53 m = re.match(r'-r\s+', line)
56 line[m.end(0):])
59 self.requirements.append(self.adjust_requirement(line))
Dassemble_changelog.py47 def __init__(self, filename, line): argument
48 message = ('Lost content from {}: "{}"'.format(filename, line))
213 for line_number, line in enumerate(body_split, 1):
214 if not self._only_url_re.match(line) and \
215 len(line) > MAX_LINE_LENGTH:
217 if self._has_url_re.match(line) else ""
222 len(line), MAX_LINE_LENGTH,
400 for line in open(main_input_file, 'r', encoding='utf-8'):
401 if line not in generated_output:
402 raise LostContent('original file', line)
[all …]
Dabi_check.py279 def _normalize_storage_test_case_data(line): argument
281 line = re.sub(r'\s+', r'', line)
282 return line
298 for line_number, line in enumerate(fd, 1):
299 line = line.strip()
300 if not line:
303 if line.startswith('#'):
306 description = line.strip()
309 if line.startswith('depends_on:'):
312 test_case_data = self._normalize_storage_test_case_data(line)
[all …]
Dconfig.py379 self.templates = [self._parse_line(line) for line in file]
398 def _parse_line(self, line): argument
400 line = line.rstrip('\r\n')
401 m = re.match(self._config_line_regexp, line)
403 return line
406 return line
447 line = template
449 line = self._format_template(*template)
450 output.write(line + '\n')
/mbedtls-3.6.0/tests/suites/
Dtest_suite_debug.function11 void string_debug(void *data, int level, const char *file, int line, const char *str)
21 *p++ = '0' + (line / 1000) % 10;
22 *p++ = '0' + (line / 100) % 10;
23 *p++ = '0' + (line / 10) % 10;
24 *p++ = '0' + (line / 1) % 10;
55 int line, char *result_str)
79 mbedtls_debug_print_msg(&ssl, level, file, line,
92 void mbedtls_debug_print_ret(char *file, int line, char *text, int value,
115 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value);
127 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.6.0/tests/data_files/
Dtest_certs.h.jinja216 {% for line in value | read_lines %}
17 "{{line}}\r\n"{% if not loop.last %}{{ '\\' | put_to_column(position=80-10-1-line|length)}}
27 {% for line in value | read_as_c_array %}
29 {{line}},{{ '\\' | put_to_column(position=80-9-line|length)}}
31 {{line}}{{ '\\' | put_to_column(position=80-8-line|length)}}
/mbedtls-3.6.0/scripts/mbedtls_dev/
Dmacro_collector.py282 def read_line(self, line): argument
288 m = re.match(self._define_directive_re, line)
334 for line in header_file:
335 m = re.search(self._continued_line_re, line)
338 line = line[:m.start(0)] + cont
339 m = re.search(self._continued_line_re, line)
340 line = re.sub(self._nonascii_re, rb'', line).decode('ascii')
341 self.read_line(line)
465 def parse_header_line(self, line: str) -> None:
467 m = re.match(self._header_line_re, line)
[all …]
/mbedtls-3.6.0/include/mbedtls/
Ddebug.h163 const char *file, int line,
182 const char *file, int line,
203 const char *file, int line, const char *text,
224 const char *file, int line,
246 const char *file, int line,
267 const char *file, int line,
298 const char *file, int line,
Derror.h143 const char *file, int line) in mbedtls_error_add() argument
147 (*mbedtls_test_hook_error_add)(high, low, file, line); in mbedtls_error_add()
151 (void) line; in mbedtls_error_add()
/mbedtls-3.6.0/tests/src/
Dhelpers.c310 const char *file, int line) in mbedtls_test_err_add_check() argument
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()
347 line, file); in mbedtls_test_err_add_check()
350 line, file); in mbedtls_test_err_add_check()
/mbedtls-3.6.0/
D.uncrustify.cfg32 # Braces on the same line (Egyptian-style braces)
43 # Braces on same line as keywords that follow them - 'else' and the 'while' in 'do {} while ()';
46 # Space before else on the same line
48 # If else is on the same line as '{', force exactly 1 space between them
51 # Functions are the exception and have braces on the next line
209 # Force exactly 1 space between a '}' and the name of a typedef if on the same line
212 # At least 1 space before a '\' line continuation
229 # Add braces in single-line statements
238 # Disable removal of leading spaces in a multi-line comment if the first and

1234