/mbedtls-3.6.0/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-3.6.0/scripts/mbedtls_dev/ |
D | bignum_core.py | 40 def __init__(self, input_hex: str, descr: str, count: int) -> None: argument 46 def arguments(self) -> List[str]: 48 str(self.shift_count), 51 def description(self) -> str: 89 def arguments(self) -> List[str]: 91 str(self.int_a) 94 def description(self) -> str: 105 def format_result(self, res: int) -> str: 110 def result(self) -> List[str]: 139 bitsize: int, descr: str, window_size: int) -> None: argument [all …]
|
D | psa_information.py | 44 def psa_want_symbol(name: str) -> str: argument 51 def finish_family_dependency(dep: str, bits: int) -> str: argument 58 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 60 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: argument 75 def automatic_dependencies(*expressions: str) -> List[str]: argument 96 def generate_key_dependencies(description: str) -> List[str]: argument 111 def read_implemented_dependencies(filename: str) -> FrozenSet[str]: argument 116 def hack_dependencies_not_implemented(dependencies: List[str]) -> None: argument 126 def tweak_key_pair_dependency(dep: str, usage: str): argument 146 def fix_key_pair_dependencies(dep_list: List[str], usage: str): argument
|
D | ecp.py | 79 def arg_a(self) -> str: 82 def result(self) -> List[str]: 90 def arguments(self)-> List[str]: 156 def arg_a(self) -> str: 161 def result(self) -> List[str]: 169 def arguments(self)-> List[str]: 243 def arg_a(self) -> str: 246 def result(self) -> List[str]: 254 def arguments(self)-> List[str]: 366 def arg_a(self) -> str: [all …]
|
D | macro_collector.py | 14 def __init__(self, filename: str, line_number: Union[int, str]) -> None: argument 40 def __init__(self, filename: str, binary: bool = False) -> None: argument 50 def __iter__(self) -> Iterator[str]: 112 def is_internal_name(self, name: str) -> bool: argument 139 def _format_arguments(name: str, arguments: Iterable[str]) -> str: argument 149 def _argument_split(cls, arguments: str) -> List[str]: argument 152 def distribute_arguments(self, name: str) -> Iterator[str]: argument 183 self, seen: Set[str], name: str argument 184 ) -> Iterator[str]: 191 def generate_expressions(self, names: Iterable[str]) -> Iterator[str]: argument [all …]
|
D | bignum_common.py | 39 def hex_to_int(val: str) -> int: argument 48 def quote_str(val: str) -> str: argument 78 def hex_digits_max_int(val: str, bits_in_limb: int) -> int: argument 87 def zfill_match(reference: str, target: str) -> str: argument 129 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None: argument 163 def format_arg(self, val: str) -> str: argument 171 def format_result(self, res: int) -> str: 176 def arg_a(self) -> str: 180 def arg_b(self) -> str: 185 def arguments(self) -> List[str]: [all …]
|
D | bignum_mod_raw.py | 28 def arguments(self) -> List[str]: 34 def result(self) -> List[str]: 61 def result(self) -> List[str]: 78 def arguments(self) -> List[str]: 84 def result(self) -> List[str]: 102 def result(self) -> List[str]: 117 def result(self) -> List[str]: 135 def arguments(self) -> List[str]: 140 def description(self) -> str: 147 n: str, a: str) -> Iterator[test_case.TestCase]: argument [all …]
|
D | test_case.py | 15 def hex_string(data: bytes) -> str: 28 def __init__(self, description: Optional[str] = None): argument 35 def add_comment(self, *lines: str) -> None: argument 38 def set_description(self, description: str) -> None: argument 41 def set_dependencies(self, dependencies: List[str]) -> None: argument 44 def set_function(self, function: str) -> None: argument 47 def set_arguments(self, arguments: List[str]) -> None: argument 75 def write_data_file(filename: str, argument 77 caller: Optional[str] = None) -> None: argument
|
D | crypto_knowledge.py | 17 def short_expression(original: str, level: int = 0) -> str: argument 59 def from_family(family: str) -> 'EllipticCurveCategory': argument 71 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None: argument 119 def short_expression(self, level: int = 0) -> str: 292 def __init__(self, expr: str) -> None: argument 301 def determine_base(expr: str) -> str: argument 317 def determine_head(expr: str) -> str: argument 372 def determine_category(self, expr: str, head: str) -> AlgorithmCategory: argument 399 def __init__(self, expr: str) -> None: argument 414 def get_key_agreement_derivation(self) -> Optional[str]: [all …]
|
D | bignum_mod.py | 28 def arguments(self) -> List[str]: 34 def result(self) -> List[str]: 47 def result(self) -> List[str]: 64 def result(self) -> List[str]: 82 def result(self) -> List[str]: 98 def result(self) -> List[str]:
|
D | test_data_generation.py | 55 def arguments(self) -> List[str]: 66 def description(self) -> str: 153 def filename_for(self, basename: str) -> str: argument 157 def write_test_data_file(self, basename: str, argument 170 def generate_target(self, name: str, *target_args) -> None: argument 179 def main(args, description: str, generator_class: Type[TestGenerator] = TestGenerator): argument
|
D | crypto_data_tests.py | 18 def psa_low_level_dependencies(*expressions: str) -> List[str]: argument 69 function: str, note: str, argument 70 arguments: List[str]) -> test_case.TestCase: argument
|
D | psa_storage.py | 25 def __init__(self, content: Union[int, str]): argument 59 def normalize(string: str) -> str: argument 79 Exprable = Union[str, int, Expr] 125 fmt: str, argument 163 def hex(self) -> str:
|
/mbedtls-3.6.0/scripts/ |
D | code_size_compare.py | 55 version: str, argument 56 git_rev: str, argument 57 arch: str, argument 58 config: str, argument 59 compiler: str, argument 60 opt_level: str, argument 90 host_arch: str, argument 91 measure_cmd: str, argument 109 record_dir: str, argument 110 comp_dir: str, argument [all …]
|
D | generate_driver_wrappers.py | 40 def render(template_path: str, driver_jsoncontext: list) -> str: argument 51 def generate_driver_wrapper_file(template_dir: str, argument 52 output_dir: str, argument 53 template_file_name: str, argument 84 " for driver " + driver_prefix, str(err)) 86 " for driver " + driver_prefix, str(err), file=sys.stderr) 93 " ".format(driverjson_data, _schema, str(err))) 96 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr) 100 def load_driver(schemas: Dict[str, Any], driver_file: str) -> Any: argument 111 def load_schemas(mbedtls_root: str) -> Dict[str, Any]: argument [all …]
|
D | code_style.py | 35 def list_generated_files() -> FrozenSet[str]: 54 def get_src_files(since: Optional[str]) -> List[str]: argument 91 def get_uncrustify_version() -> str: 99 print_err("Could not get Uncrustify version:", str(result.stderr, "utf-8")) 102 return str(result.stdout, "utf-8") 104 def check_style_is_correct(src_file_list: List[str]) -> bool: argument 115 print_err("Uncrustify returned " + str(result.returncode) + 137 def fix_style_single_pass(src_file_list: List[str]) -> bool: argument 147 str(result.returncode) + " correcting file " + 152 def fix_style(src_file_list: List[str]) -> int: argument
|
D | min_requirements.py | 31 def adjust_requirement(self, req: str) -> str: argument 39 def add_file(self, filename: str) -> None: argument 68 pip_general_options: Optional[List[str]] = None, argument 69 pip_install_options: Optional[List[str]] = None, argument
|
/mbedtls-3.6.0/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 | generate_bignum_tests.py | 76 def description_suffix(self) -> str: 81 def description(self) -> str: 100 def value_description(val) -> str: 142 def result(self) -> List[str]: 143 return [str(self._result)] 169 def __init__(self, val_a: str, val_b: str) -> None: argument 173 def description_suffix(self) -> str: 182 def result(self) -> List[str]:
|
D | generate_pkcs7_tests.py | 74 str(self.last_test_num), "depends_on:" + self.mandatory_dep, \ 118 print("Looking at ans1: offset " + str(i) + " tag = " + tag + \ 119 ", length = " + str(length)+ ":") 134 new_length = str(hex(int(data[data_i - 1], 16) + 1))[2:] 138 reasons.append("Change length from " + str(length) + " to " \ 139 + str(length + 1)) 150 new_length = str(hex(int(data[data_i - 1], 16) - 1))[2:] 154 reasons.append("Change length from " + str(length) + " to " + str(length - 1)) 179 print("made " + str(len(MUT_ARR)) + " new tests")
|
D | generate_psa_tests.py | 28 verb: str, key_type: str, bits: int, argument 29 dependencies: List[str], argument 30 *args: str, argument 31 param_descr: str = '' argument 66 param_descr: str = '', argument 109 str(bits), 144 key_type: str, bits: int, argument 145 dependencies: List[str], argument 146 *args: str, argument 147 result: str = '' argument [all …]
|
D | test_psa_compliance.py | 48 def main(library_build_dir: str): argument 145 print('Expected failures:', ', '.join(str(i) for i in expected_failures)) 146 print('Unexpected failures:', ', '.join(str(i) for i in unexpected_failures)) 147 print('Unexpected successes:', ', '.join(str(i) for i in sorted(unexpected_successes)))
|
/mbedtls-3.6.0/programs/ssl/ |
D | ssl_context_info.c | 143 void printf_dbg(const char *str, ...) in printf_dbg() argument 147 va_start(args, str); in printf_dbg() 149 vprintf(str, args); in printf_dbg() 156 void printf_err(const char *str, ...) in printf_err() argument 159 va_start(args, str); in printf_err() 162 vfprintf(stderr, str, args); in printf_err() 297 void print_if_bit(const char *str, int bit, int val) in print_if_bit() argument 300 printf("\t%s\n", str); in print_if_bit() 453 char str[STRLEN]; in print_deserialized_ssl_cert() local 460 mbedtls_strerror(ret, str, STRLEN); in print_deserialized_ssl_cert() [all …]
|
/mbedtls-3.6.0/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()
|