Home
last modified time | relevance | path

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

123

/mbedtls-3.5.0/library/
Ddebug.c47 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 …]
Dmps_trace.c60 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/
Dbignum_core.py50 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 …]
Dmacro_collector.py25 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 …]
Dbignum_common.py48 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 …]
Dbignum_mod_raw.py44 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 …]
Dtest_case.py26 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
Decp.py70 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]:
Dcrypto_knowledge.py28 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 …]
Dbignum_mod.py44 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]:
Dtest_data_generation.py66 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
Dpsa_storage.py35 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:
Dasymmetric_key_data.py25 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/
Dgenerate_driver_wrappers.py51 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 …]
Dcode_style.py47 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 …]
Dmin_requirements.py43 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
Dabi_check.py558 "-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/
Dtest_psa_constant_names.py38 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 …]
Dgenerate_psa_tests.py36 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 …]
Dgenerate_bignum_tests.py88 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]:
Dgenerate_pkcs7_tests.py86 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/
Dssl_context_info.c154 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/
Dhost_test.function4 * \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/
Dhello.c41 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/
Dcert_req.c117 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()

123