/mbedtls-3.5.0/library/ |
D | debug.c | 47 const char *str) in debug_send_line() argument 56 mbedtls_snprintf(idstr, sizeof(idstr), "%p: %s", (void *) ssl, str); in debug_send_line() 59 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line() 69 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_msg() local 80 ret = mbedtls_vsnprintf(str, DEBUG_BUF_SIZE, format, argp); in mbedtls_debug_print_msg() 84 str[ret] = '\n'; in mbedtls_debug_print_msg() 85 str[ret + 1] = '\0'; in mbedtls_debug_print_msg() 88 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg() 95 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_ret() local 113 mbedtls_snprintf(str, sizeof(str), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret() [all …]
|
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() 67 str[ret] = '\0'; in mbedtls_mps_trace_print_msg() 68 mbedtls_printf("[%d|L%d]: %s\n", id, line, str); in mbedtls_mps_trace_print_msg()
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | bignum_core.py | 50 def __init__(self, input_hex: str, descr: str, count: int) -> None: argument 56 def arguments(self) -> List[str]: 58 str(self.shift_count), 61 def description(self) -> str: 87 bitsize: int, descr: str, window_size: int) -> None: argument 92 def arguments(self) -> List[str]: 93 return [str(self.bitsize), str(self.window_size)] 95 def description(self) -> str: 119 def result(self) -> List[str]: 126 str(carry) [all …]
|
D | macro_collector.py | 25 def __init__(self, filename: str, line_number: Union[int, str]) -> None: argument 51 def __init__(self, filename: str, binary: bool = False) -> None: argument 61 def __iter__(self) -> Iterator[str]: 123 def is_internal_name(self, name: str) -> bool: argument 150 def _format_arguments(name: str, arguments: Iterable[str]) -> str: argument 160 def _argument_split(cls, arguments: str) -> List[str]: argument 163 def distribute_arguments(self, name: str) -> Iterator[str]: argument 194 self, seen: Set[str], name: str argument 195 ) -> Iterator[str]: 202 def generate_expressions(self, names: Iterable[str]) -> Iterator[str]: argument [all …]
|
D | bignum_common.py | 48 def hex_to_int(val: str) -> int: argument 57 def quote_str(val: str) -> str: argument 114 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None: argument 147 def format_arg(self, val: str) -> str: argument 155 def format_result(self, res: int) -> str: 160 def arg_a(self) -> str: 164 def arg_b(self) -> str: 169 def arguments(self) -> List[str]: 175 def description(self) -> str: 199 def result(self) -> List[str]: [all …]
|
D | bignum_mod_raw.py | 44 def arguments(self) -> List[str]: 50 def result(self) -> List[str]: 77 def result(self) -> List[str]: 94 def arguments(self) -> List[str]: 100 def result(self) -> List[str]: 121 def result(self) -> List[str]: 143 def result(self) -> List[str]: 164 def arguments(self) -> List[str]: 169 def description(self) -> str: 176 n: str, a: str) -> Iterator[test_case.TestCase]: argument [all …]
|
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
|
D | ecp.py | 70 def arg_a(self) -> str: 73 def result(self) -> List[str]: 135 def arg_a(self) -> str: 139 def result(self) -> List[str]: 209 def arg_a(self) -> str: 212 def result(self) -> List[str]: 300 def arg_a(self) -> str: 304 def result(self) -> List[str]:
|
D | crypto_knowledge.py | 28 def short_expression(original: str, level: int = 0) -> str: argument 70 def from_family(family: str) -> 'EllipticCurveCategory': argument 82 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None: argument 130 def short_expression(self, level: int = 0) -> str: 295 def __init__(self, expr: str) -> None: argument 304 def determine_base(expr: str) -> str: argument 320 def determine_head(expr: str) -> str: argument 375 def determine_category(self, expr: str, head: str) -> AlgorithmCategory: argument 402 def __init__(self, expr: str) -> None: argument 417 def get_key_agreement_derivation(self) -> Optional[str]: [all …]
|
D | bignum_mod.py | 44 def arguments(self) -> List[str]: 50 def result(self) -> List[str]: 66 def result(self) -> List[str]: 83 def result(self) -> List[str]: 101 def result(self) -> List[str]: 123 def result(self) -> List[str]:
|
D | test_data_generation.py | 66 def arguments(self) -> List[str]: 77 def description(self) -> str: 164 def filename_for(self, basename: str) -> str: argument 168 def write_test_data_file(self, basename: str, argument 181 def generate_target(self, name: str, *target_args) -> None: argument 190 def main(args, description: str, generator_class: Type[TestGenerator] = TestGenerator): argument
|
D | psa_storage.py | 35 def __init__(self, content: Union[int, str]): argument 66 def normalize(string: str) -> str: argument 86 Exprable = Union[str, int, Expr] 132 fmt: str, argument 170 def hex(self) -> str:
|
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]]:
|
/mbedtls-3.5.0/scripts/ |
D | generate_driver_wrappers.py | 51 def render(template_path: str, driver_jsoncontext: list) -> str: argument 63 def generate_driver_wrapper_file(template_dir: str, argument 64 output_dir: str, argument 95 " for driver " + driver_prefix, str(err)) 97 " for driver " + driver_prefix, str(err), file=sys.stderr) 104 " ".format(driverjson_data, _schema, str(err))) 107 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr) 111 def load_driver(schemas: Dict[str, Any], driver_file: str) -> Any: argument 122 def load_schemas(mbedtls_root: str) -> Dict[str, Any]: argument 145 def read_driver_descriptions(mbedtls_root: str, argument [all …]
|
D | code_style.py | 47 def list_generated_files() -> FrozenSet[str]: 66 def get_src_files() -> List[str]: 79 print_err("git ls-files returned: " + str(result.returncode)) 83 src_files = str(result.stdout, "utf-8").split() 92 def get_uncrustify_version() -> str: 100 print_err("Could not get Uncrustify version:", str(result.stderr, "utf-8")) 103 return str(result.stdout, "utf-8") 105 def check_style_is_correct(src_file_list: List[str]) -> bool: argument 116 print_err("Uncrustify returned " + str(result.returncode) + 138 def fix_style_single_pass(src_file_list: List[str]) -> bool: argument [all …]
|
D | min_requirements.py | 43 def adjust_requirement(self, req: str) -> str: argument 51 def add_file(self, filename: str) -> None: argument 80 pip_general_options: Optional[List[str]] = None, argument 81 pip_install_options: Optional[List[str]] = None, argument
|
D | abi_check.py | 558 "-r", "--report-dir", type=str, default="reports", 566 "-o", "--old-rev", type=str, help="revision for old version.", 570 "-or", "--old-repo", type=str, help="repository for old version." 573 "-oc", "--old-crypto-rev", type=str, 577 "-ocr", "--old-crypto-repo", type=str, 581 "-n", "--new-rev", type=str, help="revision for new version", 585 "-nr", "--new-repo", type=str, help="repository for new version." 588 "-nc", "--new-crypto-rev", type=str, 592 "-ncr", "--new-crypto-repo", type=str, 596 "-s", "--skip-file", type=str,
|
/mbedtls-3.5.0/tests/scripts/ |
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 85 def is_simplifiable(expr: str) -> bool: argument 97 type_word: str, argument 98 include_path: Optional[str] = None, argument [all …]
|
D | generate_psa_tests.py | 36 def psa_want_symbol(name: str) -> str: argument 43 def finish_family_dependency(dep: str, bits: int) -> str: argument 50 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 52 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: argument 67 def automatic_dependencies(*expressions: str) -> List[str]: argument 85 def read_implemented_dependencies(filename: str) -> FrozenSet[str]: argument 90 def hack_dependencies_not_implemented(dependencies: List[str]) -> None: argument 133 verb: str, key_type: str, bits: int, argument 134 dependencies: List[str], argument 135 *args: str, argument [all …]
|
D | generate_bignum_tests.py | 88 def description_suffix(self) -> str: 93 def description(self) -> str: 112 def value_description(val) -> str: 154 def result(self) -> List[str]: 155 return [str(self._result)] 181 def __init__(self, val_a: str, val_b: str) -> None: argument 185 def description_suffix(self) -> str: 194 def result(self) -> List[str]:
|
D | generate_pkcs7_tests.py | 86 str(self.last_test_num), "depends_on:" + self.mandatory_dep, \ 130 print("Looking at ans1: offset " + str(i) + " tag = " + tag + \ 131 ", length = " + str(length)+ ":") 146 new_length = str(hex(int(data[data_i - 1], 16) + 1))[2:] 150 reasons.append("Change length from " + str(length) + " to " \ 151 + str(length + 1)) 162 new_length = str(hex(int(data[data_i - 1], 16) - 1))[2:] 166 reasons.append("Change length from " + str(length) + " to " + str(length - 1)) 191 print("made " + str(len(MUT_ARR)) + " new tests")
|
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_context_info.c | 154 void printf_dbg(const char *str, ...) in printf_dbg() argument 158 va_start(args, str); in printf_dbg() 160 vprintf(str, args); in printf_dbg() 167 void printf_err(const char *str, ...) in printf_err() argument 170 va_start(args, str); in printf_err() 173 vfprintf(stderr, str, args); in printf_err() 308 void print_if_bit(const char *str, int bit, int val) in print_if_bit() argument 311 printf("\t%s\n", str); in print_if_bit() 464 char str[STRLEN]; in print_deserialized_ssl_cert() local 471 mbedtls_strerror(ret, str, STRLEN); in print_deserialized_ssl_cert() [all …]
|
/mbedtls-3.5.0/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 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 int verify_int(char *str, int32_t *value) [all …]
|
/mbedtls-3.5.0/programs/hash/ |
D | hello.c | 41 char str[] = "Hello, world!"; in main() local 43 mbedtls_printf("\n MD5('%s') = ", str); in main() 45 if ((ret = mbedtls_md5((unsigned char *) str, 13, digest)) != 0) { in main()
|
/mbedtls-3.5.0/programs/x509/ |
D | cert_req.c | 117 static void ip_string_to_bytes(const char *str, uint8_t *bytes, int maxBytes) in ip_string_to_bytes() argument 120 bytes[i] = (uint8_t) strtoul(str, NULL, 16); in ip_string_to_bytes() 121 str = strchr(str, '.'); in ip_string_to_bytes() 122 if (str == NULL || *str == '\0') { in ip_string_to_bytes() 125 str++; in ip_string_to_bytes()
|