/mbedtls-latest/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 …]
|
D | debug_internal.h | 31 const char *file, int line, 50 const char *file, int line, 71 const char *file, int line, const char *text, 92 const char *file, int line, 114 const char *file, int line, 135 const char *file, int line, 166 const char *file, int line,
|
D | ssl_debug_helpers.h | 42 int level, const char *file, int line, 47 int level, const char *file, int line, 53 int level, const char *file, int line,
|
/mbedtls-latest/tests/scripts/ |
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 | 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 | check_files.py | 129 def issue_with_line(self, line, filepath, line_number): argument 136 def check_file_line(self, filepath, line, line_number): argument 137 if self.issue_with_line(line, filepath, line_number): 146 for i, line in enumerate(iter(f.readline, b"")): 147 self.check_file_line(filepath, line, i + 1) 268 def issue_with_line(self, line, _filepath, line_number): argument 270 text = line.decode('utf-8') 290 def issue_with_line(self, line, _filepath, _line_number): argument 291 return b"\r" in line 304 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 | check_test_cases.py | 34 def line(self): member in ScriptOutputError 93 for line_number, line in enumerate(data_file, 1): 94 line = line.rstrip(b'\r\n') 95 if not line: 98 if line.startswith(b'#'): 103 data_file_name, line_number, line) 116 for idx, line in enumerate(listed.splitlines()): 119 script_outputs = line.split(b';', 1) 123 raise ScriptOutputError(script_name, idx, line.decode("utf-8")) 234 e.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/) {
|
D | audit-validity-dates.py | 321 for line in data_f: 322 line = line.strip() 324 if line.startswith('#'): 328 match = re.search(r'\A\w+(.*:)?\"', line) 331 parts = re.split(r'(?<!\\):', line)
|
/mbedtls-latest/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-latest/tests/suites/ |
D | test_suite_debug.function | 12 static 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) 81 mbedtls_debug_print_msg(&ssl, level, file, line, 94 void mbedtls_debug_print_ret(char *file, int line, char *text, int value, 118 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value); 130 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);
|
D | host_test.function | 1 #line 2 "suites/host_test.function" 62 " Command line arguments:\n" \ 75 * \brief Read a line from the passed file pointer. 78 * \param buf Pointer to memory to hold read line. 88 /* Read until we get a valid line */ 97 /* Skip empty line and comment */ 112 /* Strip new line and carriage return */ 359 /* Write the beginning of the outcome line. 385 /* Write the end of the outcome line. 480 * Parses command line and executes tests from [all …]
|
/mbedtls-latest/tests/src/ |
D | helpers.c | 180 void mbedtls_test_get_line1(char *line) in mbedtls_test_get_line1() argument 186 memcpy(line, mbedtls_test_info.line1, MBEDTLS_TEST_LINE_LENGTH); in mbedtls_test_get_line1() 193 static void mbedtls_test_set_line1_internal(const char *line) in mbedtls_test_set_line1_internal() argument 198 if (line == NULL) { in mbedtls_test_set_line1_internal() 201 memcpy(mbedtls_test_info.line1, line, MBEDTLS_TEST_LINE_LENGTH); in mbedtls_test_set_line1_internal() 205 void mbedtls_test_get_line2(char *line) in mbedtls_test_get_line2() argument 211 memcpy(line, mbedtls_test_info.line2, MBEDTLS_TEST_LINE_LENGTH); in mbedtls_test_get_line2() 218 static void mbedtls_test_set_line2_internal(const char *line) in mbedtls_test_set_line2_internal() argument 223 if (line == NULL) { in mbedtls_test_set_line2_internal() 226 memcpy(mbedtls_test_info.line2, line, MBEDTLS_TEST_LINE_LENGTH); in mbedtls_test_set_line2_internal() [all …]
|
/mbedtls-latest/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 | 50 for line in open(filename): 51 line = line.strip() 52 line = re.sub(r'(\A|\s+)#.*', r'', line) 53 if not line: 55 m = re.match(r'-r\s+', line) 58 line[m.end(0):]) 61 self.requirements.append(self.adjust_requirement(line))
|
D | config.py | 402 self.templates = [self._parse_line(line) for line in file] 423 def _parse_line(self, line): argument 425 line = line.rstrip('\r\n') 426 m = re.match(self._config_line_regexp, line) 428 return line 431 return line 434 return line 441 return line 478 line = template 480 line = self._format_template(*template) [all …]
|
D | assemble_changelog.py | 47 def __init__(self, filename, line): argument 48 message = ('Lost content from {}: "{}"'.format(filename, line)) 220 for line_number, line in enumerate(body_split, 1): 221 if not self._only_url_re.match(line) and \ 222 len(line) > MAX_LINE_LENGTH: 224 if self._has_url_re.match(line) else "" 229 len(line), MAX_LINE_LENGTH, 408 for line in open(main_input_file, 'r', encoding='utf-8'): 409 if line not in generated_output: 410 raise LostContent('original file', line) [all …]
|
D | abi_check.py | 280 def _normalize_storage_test_case_data(line): argument 282 line = re.sub(r'\s+', r'', line) 283 return line 299 for line_number, line in enumerate(fd, 1): 300 line = line.strip() 301 if not line: 304 if line.startswith('#'): 307 description = line.strip() 310 if line.startswith('depends_on:'): 313 test_case_data = self._normalize_storage_test_case_data(line) [all …]
|
D | generate_ssl_debug_helpers.py | 187 for line in self._body.splitlines(): 189 if line.strip().startswith('#'): 191 translation_table.append(line.strip()) 194 if not line.strip(): 197 for field in line.strip().split(','):
|
/mbedtls-latest/ |
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
|
/mbedtls-latest/include/mbedtls/ |
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()
|