Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 36) sorted by relevance

12

/mbedtls-latest/library/
Ddebug.c36 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 …]
Dmps_trace.c46 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/
Dcode_size_compare.py56 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 …]
Dgenerate_driver_wrappers.py42 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 …]
Dcode_style.py35 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
Dmin_requirements.py33 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
Dabi_check.py559 "-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/
Dtest_psa_constant_names.py26 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 …]
Danalyze_outcomes.py33 [('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 …]
Dgenerate_server9_bad_saltlen.py34 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)
Daudit-validity-dates.py143 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
Dtest_psa_compliance.py36 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)))
Dgen_pkcs1_v21_sign_verify.pl14 my $str = shift;
20 next if($line !~ /^# $str/);
Dcheck_names.py178 ) + "\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/
Dssl_context_info.c141 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 …]
Dssl_client1.c47 const char *str) in my_debug() argument
51 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
Ddtls_client.c61 const char *str) in my_debug() argument
65 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
Dssl_server.c58 const char *str) in my_debug() argument
62 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
Dssl_fork_server.c64 const char *str) in my_debug() argument
68 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
Ddtls_server.c68 const char *str) in my_debug() argument
72 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
Dssl_pthread_server.c68 const char *str) in my_mutexed_debug() argument
76 file, line, thread_id, str); in my_mutexed_debug()
/mbedtls-latest/tests/suites/
Dhost_test.function4 * \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 …]
Dtest_suite_debug.function12 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);
Dtest_suite_bignum.function127 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/
Dhello.c29 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()

12