/mbedtls-latest/library/ |
D | debug.c | 36 const char *str) in debug_send_line() argument 45 mbedtls_snprintf(idstr, sizeof(idstr), "%p: %s", (void *) ssl, str); in debug_send_line() 48 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line() 58 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_msg() local 71 ret = mbedtls_vsnprintf(str, DEBUG_BUF_SIZE, format, argp); in mbedtls_debug_print_msg() 81 str[ret] = '\n'; in mbedtls_debug_print_msg() 82 str[ret + 1] = '\0'; in mbedtls_debug_print_msg() 84 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg() 91 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_ret() local 109 mbedtls_snprintf(str, sizeof(str), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret() [all …]
|
D | mps_trace.c | 46 char str[MPS_TRACE_BUF_SIZE]; in mbedtls_mps_trace_print_msg() local 49 ret = mbedtls_vsnprintf(str, MPS_TRACE_BUF_SIZE, format, argp); in mbedtls_mps_trace_print_msg() 53 str[ret] = '\0'; in mbedtls_mps_trace_print_msg() 54 mbedtls_printf("[%d|L%d]: %s\n", id, line, str); in mbedtls_mps_trace_print_msg()
|
/mbedtls-latest/scripts/ |
D | code_size_compare.py | 56 version: str, argument 57 git_rev: str, argument 58 arch: str, argument 59 config: str, argument 60 compiler: str, argument 61 opt_level: str, argument 91 host_arch: str, argument 92 measure_cmd: str, argument 110 record_dir: str, argument 111 comp_dir: str, argument [all …]
|
D | generate_driver_wrappers.py | 42 def render(template_path: str, driver_jsoncontext: list) -> str: argument 53 def generate_driver_wrapper_file(template_dir: str, argument 54 output_dir: str, argument 55 template_file_name: str, argument 86 " for driver " + driver_prefix, str(err)) 88 " for driver " + driver_prefix, str(err), file=sys.stderr) 95 " ".format(driverjson_data, _schema, str(err))) 98 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr) 102 def load_driver(schemas: Dict[str, Any], driver_file: str) -> Any: argument 113 def load_schemas(project_root: str) -> Dict[str, Any]: argument [all …]
|
D | code_style.py | 35 def list_generated_files() -> FrozenSet[str]: 61 def get_src_files(since: Optional[str]) -> List[str]: argument 138 def get_uncrustify_version() -> str: 146 print_err("Could not get Uncrustify version:", str(result.stderr, "utf-8")) 149 return str(result.stdout, "utf-8") 151 def check_style_is_correct(src_file_list: List[str]) -> bool: argument 162 print_err("Uncrustify returned " + str(result.returncode) + 184 def fix_style_single_pass(src_file_list: List[str]) -> bool: argument 194 str(result.returncode) + " correcting file " + 199 def fix_style(src_file_list: List[str]) -> int: argument
|
D | min_requirements.py | 33 def adjust_requirement(self, req: str) -> str: argument 41 def add_file(self, filename: str) -> None: argument 70 pip_general_options: Optional[List[str]] = None, argument 71 pip_install_options: Optional[List[str]] = None, argument
|
D | abi_check.py | 559 "-r", "--report-dir", type=str, default="reports", 567 "-o", "--old-rev", type=str, help="revision for old version.", 571 "-or", "--old-repo", type=str, help="repository for old version." 574 "-oc", "--old-crypto-rev", type=str, 578 "-ocr", "--old-crypto-repo", type=str, 582 "-n", "--new-rev", type=str, help="revision for new version", 586 "-nr", "--new-repo", type=str, help="repository for new version." 589 "-nc", "--new-crypto-rev", type=str, 593 "-ncr", "--new-crypto-repo", type=str, 597 "-s", "--skip-file", type=str,
|
/mbedtls-latest/tests/scripts/ |
D | test_psa_constant_names.py | 26 def gather_inputs(headers: Iterable[str], argument 27 test_suites: Iterable[str], argument 39 def run_c(type_word: str, argument 40 expressions: Iterable[str], argument 41 include_path: Optional[str] = None, argument 42 keep_c: bool = False) -> List[str]: 61 def normalize(expr: str) -> str: argument 73 def is_simplifiable(expr: str) -> bool: argument 85 type_word: str, argument 86 include_path: Optional[str] = None, argument [all …]
|
D | analyze_outcomes.py | 33 [('successes', typing.Set[str]), 34 ('failures', typing.Set[str])]) 42 Outcomes = typing.Dict[str, ComponentOutcomes] 70 def execute_reference_driver_tests(results: Results, ref_component: str, driver_component: str, \ argument 71 outcome_file: str) -> None: argument 86 allow_list: typing.List[str], full_coverage: bool) -> None: argument 117 def name_matches_pattern(name: str, str_or_re) -> bool: argument 124 if not isinstance(str_or_re, str): 130 component_ref: str, component_driver: str, argument 131 ignored_suites: typing.List[str], ignored_tests=None) -> None: argument [all …]
|
D | generate_server9_bad_saltlen.py | 34 parser.add_argument('--ca-name', type=str, required=True, 36 parser.add_argument('--ca-password', type=str, 38 parser.add_argument('--csr', type=str, required=True, 40 parser.add_argument('--openssl-extfile', type=str, 46 parser.add_argument('--output', type=str, required=True)
|
D | audit-validity-dates.py | 143 def pem_data_type(data: bytes) -> typing.Optional[str]: 156 def check_hex_string(hex_str: str) -> bool: argument 217 def collect_default_files(self) -> typing.List[str]: 221 def parse_file(self, filename: str) -> typing.List[AuditData]: argument 244 results: typing.Dict[str, AuditData], argument 245 file_list: typing.Optional[typing.List[str]] = None) \ argument 282 def parse_file(self, filename: str) -> typing.List[AuditData]: argument 347 def parse_file(self, filename: str): argument
|
D | test_psa_compliance.py | 36 def main(library_build_dir: str): argument 129 print('Expected failures:', ', '.join(str(i) for i in expected_failures)) 130 print('Unexpected failures:', ', '.join(str(i) for i in unexpected_failures)) 131 print('Unexpected successes:', ', '.join(str(i) for i in sorted(unexpected_successes)))
|
D | gen_pkcs1_v21_sign_verify.pl | 14 my $str = shift; 20 next if($line !~ /^# $str/);
|
D | check_names.py | 178 ) + "\n" + str(self.match) 205 ) + "\n" + str(self.match) 234 .format(str(self.excluded_files)) 803 self.log.info("FAIL: {0} problem(s) to fix".format(str(problems))) 917 self.log.warning(str(problem))
|
/mbedtls-latest/programs/ssl/ |
D | ssl_context_info.c | 141 static void printf_dbg(const char *str, ...) in printf_dbg() argument 145 va_start(args, str); in printf_dbg() 147 vprintf(str, args); in printf_dbg() 154 static void printf_err(const char *str, ...) in printf_err() argument 157 va_start(args, str); in printf_err() 160 vfprintf(stderr, str, args); in printf_err() 295 static void print_if_bit(const char *str, int bit, int val) in print_if_bit() argument 298 printf("\t%s\n", str); in print_if_bit() 451 char str[STRLEN]; in print_deserialized_ssl_cert() local 458 mbedtls_strerror(ret, str, STRLEN); in print_deserialized_ssl_cert() [all …]
|
D | ssl_client1.c | 47 const char *str) in my_debug() argument 51 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
|
D | dtls_client.c | 61 const char *str) in my_debug() argument 65 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
|
D | ssl_server.c | 58 const char *str) in my_debug() argument 62 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
|
D | ssl_fork_server.c | 64 const char *str) in my_debug() argument 68 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
|
D | dtls_server.c | 68 const char *str) in my_debug() argument 72 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
|
D | ssl_pthread_server.c | 68 const char *str) in my_mutexed_debug() argument 76 file, line, thread_id, str); in my_mutexed_debug()
|
/mbedtls-latest/tests/suites/ |
D | host_test.function | 4 * \brief Verifies that string is in string parameter format i.e. "<str>" 7 * \param str String parameter. 11 static int verify_string(char **str) 13 if ((*str)[0] != '"' || 14 (*str)[strlen(*str) - 1] != '"') { 16 "Expected string (with \"\") for parameter and got: %s\n", *str); 20 (*str)++; 21 (*str)[strlen(*str) - 1] = '\0'; 30 * \param str Input string. 35 static int verify_int(char *str, intmax_t *p_value) [all …]
|
D | test_suite_debug.function | 12 static void string_debug(void *data, int level, const char *file, int line, const char *str) 32 while (*str++ != ' ') { 37 memcpy(p, str, strlen(str)); 38 p += strlen(str);
|
D | test_suite_bignum.function | 127 char str[1000]; 132 memset(str, '!', sizeof(str)); 137 TEST_ASSERT(mbedtls_mpi_write_string(&X, radix_A, str, output_size, &len) == result_write); 139 TEST_ASSERT(strcmp(str, input_A) == 0); 140 TEST_ASSERT(str[len] == '!'); 173 char str[1000]; 181 TEST_ASSERT(mbedtls_mpi_write_string(&X, 16, str, sizeof(str), &len) == 0); 182 TEST_ASSERT(strcmp((char *) str, input_A) == 0); 193 char str[1000]; 201 TEST_ASSERT(mbedtls_mpi_write_string(&X, 16, str, sizeof(str), &len) == 0); [all …]
|
/mbedtls-latest/programs/hash/ |
D | hello.c | 29 char str[] = "Hello, world!"; in main() local 31 mbedtls_printf("\n MD5('%s') = ", str); in main() 33 if ((ret = mbedtls_md5((unsigned char *) str, 13, digest)) != 0) { in main()
|