/mbedtls-3.6.0/library/ |
D | debug.c | 35 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/ |
D | gen_gcm_decrypt.pl | 20 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 …]
|
D | generate_test_code.py | 243 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 …]
|
D | check_names.py | 69 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 …]
|
D | check_files.py | 127 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 …]
|
D | gen_gcm_encrypt.pl | 20 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>)
|
D | gen_pkcs1_v21_sign_verify.pl | 18 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+)/);
|
D | gen_ctr_drbg.pl | 21 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/);
|
D | test_generate_test_code.py | 297 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 …]
|
D | check_test_cases.py | 75 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)
|
D | check-doxy-blocks.pl | 36 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/ |
D | generic_sum.c | 68 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/ |
D | generate_features.pl | 47 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 ]+)/;
|
D | min_requirements.py | 48 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))
|
D | assemble_changelog.py | 47 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 …]
|
D | abi_check.py | 279 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 …]
|
D | config.py | 379 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/ |
D | test_suite_debug.function | 11 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 …]
|
D | main_test.function | 1 #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/ |
D | test_certs.h.jinja2 | 16 {% 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/ |
D | macro_collector.py | 282 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/ |
D | debug.h | 163 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,
|
D | error.h | 143 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/ |
D | helpers.c | 310 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.cfg | 32 # 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
|