/mbedtls-development/library/ |
A D | debug.c | 129 mbedtls_snprintf( str, sizeof( str ), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret() 179 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", in mbedtls_debug_print_buf() 187 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " " ); in mbedtls_debug_print_buf() 189 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf() 209 mbedtls_snprintf( str, sizeof( str ), "%s(X)", text ); in mbedtls_debug_print_ecp() 212 mbedtls_snprintf( str, sizeof( str ), "%s(Y)", text ); in mbedtls_debug_print_ecp() 237 mbedtls_snprintf( str, sizeof( str ), "value of '%s' (%u bits) is:\n", in mbedtls_debug_print_mpi() 243 str[0] = ' '; str[1] = '0'; str[2] = '0'; in mbedtls_debug_print_mpi() 260 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "\n" ); in mbedtls_debug_print_mpi() 269 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "\n" ); in mbedtls_debug_print_mpi() [all …]
|
A D | mps_trace.c | 60 char str[MPS_TRACE_BUF_SIZE]; in mbedtls_mps_trace_print_msg() local 63 ret = mbedtls_vsnprintf( str, MPS_TRACE_BUF_SIZE, format, argp ); in mbedtls_mps_trace_print_msg() 68 str[ret] = '\0'; in mbedtls_mps_trace_print_msg() 69 mbedtls_printf( "[%d|L%d]: %s\n", id, line, str ); in mbedtls_mps_trace_print_msg()
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | macro_collector.py | 25 def __init__(self, filename: str, line_number: Union[int, str]) -> None: argument 147 def _format_arguments(name: str, arguments: Iterable[str]) -> str: argument 157 def _argument_split(cls, arguments: str) -> List[str]: argument 160 def distribute_arguments(self, name: str) -> Iterator[str]: argument 191 self, seen: Set[str], name: str argument 199 def generate_expressions(self, names: Iterable[str]) -> Iterator[str]: argument 237 def algorithm_tester(name: str) -> str: argument 428 def get_names(self, type_word: str) -> Set[str]: argument 484 def generate_undeclared_names(self, expr: str) -> Iterable[str]: argument 497 def normalize_argument(argument: str) -> str: argument [all …]
|
A D | test_case.py | 26 def hex_string(data: bytes) -> str: 39 def __init__(self, description: Optional[str] = None): argument 46 def add_comment(self, *lines: str) -> None: argument 49 def set_description(self, description: str) -> None: argument 52 def set_dependencies(self, dependencies: List[str]) -> None: argument 55 def set_function(self, function: str) -> None: argument 58 def set_arguments(self, arguments: List[str]) -> None: argument 86 def write_data_file(filename: str, argument 88 caller: Optional[str] = None) -> None: argument
|
A D | asymmetric_key_data.py | 25 STR_TRANS_REMOVE_BLANKS = str.maketrans('', '', ' \t\n\r') 27 def unhexlify(text: str) -> bytes: argument 30 def construct_asymmetric_key_data(src) -> Dict[str, Dict[int, bytes]]:
|
A D | psa_storage.py | 30 def __init__(self, content: Union[int, str]): argument 61 def normalize(string: str) -> str: argument 81 Exprable = Union[str, int, Expr] 127 fmt: str, argument 160 def hex(self) -> str:
|
A D | crypto_knowledge.py | 29 def __init__(self, name: str, params: Optional[Iterable[str]] = None): argument 149 def is_valid_for_signature(self, usage: str) -> bool: argument
|
A D | typing_util.py | 38 def write(self, text: str) -> Any: argument
|
A D | build_tree.py | 21 def looks_like_mbedtls_root(path: str) -> bool: argument
|
/mbedtls-development/tests/scripts/ |
A D | generate_psa_tests.py | 40 def psa_want_symbol(name: str) -> str: argument 47 def finish_family_dependency(dep: str, bits: int) -> str: argument 56 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: argument 71 def automatic_dependencies(*expressions: str) -> List[str]: argument 89 def read_implemented_dependencies(filename: str) -> FrozenSet[str]: argument 137 verb: str, key_type: str, bits: int, argument 139 *args: str, argument 238 *args: str, argument 602 alg: str, argument 635 def gather_key_types_for_sign_alg(self) -> Dict[str, List[str]]: [all …]
|
A D | test_psa_constant_names.py | 38 def gather_inputs(headers: Iterable[str], argument 39 test_suites: Iterable[str], argument 51 def run_c(type_word: str, argument 52 expressions: Iterable[str], argument 53 include_path: Optional[str] = None, argument 54 keep_c: bool = False) -> List[str]: 73 def normalize(expr: str) -> str: argument 81 type_word: str, argument 82 include_path: Optional[str] = None, argument 83 keep_c: bool = False) -> Tuple[List[str], List[str]]: [all …]
|
A D | gen_pkcs1_v21_sign_verify.pl | 26 my $str = shift; 32 next if($line !~ /^# $str/);
|
A D | generate_test_code.py | 421 str(error) + " - %s:%d" % (funcs_f.name, funcs_f.line_no)) 618 str(error))) 704 str(error) + " - %s:%d" % 804 out_data_f.write(':' + str(dep_id)) 841 out_data_f.write(':' + typ + ':' + str(val)) 908 out_data_f.write(str(func_id)) 1145 (os.path.basename(sys.argv[0]), str(err)))
|
A D | check_names.py | 185 ) + "\n" + str(self.match) 211 ) + "\n" + str(self.match) 249 .format(str(self.excluded_files)) 708 self.log.info("FAIL: {0} problem(s) to fix".format(str(problems))) 814 self.log.warning(str(problem))
|
/mbedtls-development/programs/ssl/ |
A D | ssl_context_info.c | 151 void printf_dbg( const char *str, ... ) in printf_dbg() argument 156 va_start( args, str ); in printf_dbg() 158 vprintf( str, args ); in printf_dbg() 164 void printf_err( const char *str, ... ) in printf_err() argument 167 va_start( args, str ); in printf_err() 170 vfprintf( stderr, str, args ); in printf_err() 325 printf( "\t%s\n", str ); in print_if_bit() 508 char str[STRLEN]; in print_deserialized_ssl_cert() local 516 mbedtls_strerror( ret, str, STRLEN ); in print_deserialized_ssl_cert() 530 mbedtls_strerror( ret, str, STRLEN ); in print_deserialized_ssl_cert() [all …]
|
A D | ssl_client1.c | 71 const char *str ) in my_debug() argument 75 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()
|
A D | ssl_test_lib.c | 35 const char *str ) in my_debug() argument 45 basename, line, level, str ); in my_debug()
|
A D | dtls_client.c | 83 const char *str ) in my_debug() argument 87 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()
|
A D | ssl_server.c | 82 const char *str ) in my_debug() argument 86 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()
|
A D | ssl_fork_server.c | 87 const char *str ) in my_debug() argument 91 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()
|
/mbedtls-development/programs/hash/ |
A D | hello.c | 50 char str[] = "Hello, world!"; in main() local 52 mbedtls_printf( "\n MD5('%s') = ", str ); in main() 54 if( ( ret = mbedtls_md5( (unsigned char *) str, 13, digest ) ) != 0 ) in main()
|
/mbedtls-development/tests/suites/ |
A D | host_test.function | 7 * \param str String parameter. 11 int verify_string( char **str ) 13 if( ( *str )[0] != '"' || 14 ( *str )[strlen( *str ) - 1] != '"' ) 21 ( *str )++; 22 ( *str )[strlen( *str ) - 1] = '\0'; 31 * \param str Input string. 52 str[i - 1] == '0' && ( str[i] == 'x' || str[i] == 'X' ) ) 58 if( ! ( ( str[i] >= '0' && str[i] <= '9' ) || 59 ( hex && ( ( str[i] >= 'a' && str[i] <= 'f' ) || [all …]
|
A D | test_suite_debug.function | 11 void string_debug(void *data, int level, const char *file, int line, const char *str) 31 while( *str++ != ' ' ); 34 memcpy( p, str, strlen( str ) ); 35 p += strlen( str );
|
/mbedtls-development/scripts/ |
A D | abi_check.py | 357 "-r", "--report-dir", type=str, default="reports", 365 "-o", "--old-rev", type=str, help="revision for old version.", 369 "-or", "--old-repo", type=str, help="repository for old version." 372 "-oc", "--old-crypto-rev", type=str, 376 "-ocr", "--old-crypto-repo", type=str, 380 "-n", "--new-rev", type=str, help="revision for new version", 384 "-nr", "--new-repo", type=str, help="repository for new version." 387 "-nc", "--new-crypto-rev", type=str, 391 "-ncr", "--new-crypto-repo", type=str, 395 "-s", "--skip-file", type=str,
|
A D | code_size_compare.py | 191 "-r", "--result-dir", type=str, default="comparison", 196 "-o", "--old-rev", type=str, help="old revision for comparison.", 200 "-n", "--new-rev", type=str, default=None,
|