Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 123) sorted by relevance

12345

/lib/mbedtls/external/mbedtls/tests/scripts/
A Dgenerate_tls13_compat_tests.py151 ret += ["-sigalgs {signature_algorithms}".format(
294 ret += ['--priority={priority_string}'.format(
348 ret += ['sig_algs={sig_algs}'.format(
424 return ['-s "{}"'.format(i) for i in check_strings]
494 cmd = ['run_test "{}"'.format(name),
495 '"{}"'.format(' '.join(server_object.cmd())),
496 '"{}"'.format(' '.join(client_object.cmd())),
522 cmd = ['run_test "{}"'.format(name),
523 '"{}"'.format(' '.join(server_object.cmd())),
524 '"{}"'.format(' '.join(client_object.cmd())),
[all …]
A Dcheck_names.py81 gutter = format(self.line_no, "4d")
85 " {0} |\n".format(" " * len(gutter)) +
86 " {0} | {1}".format(gutter, self.line) +
87 " {0} | {1}\n".format(" " * len(gutter), underline)
140 return "{0}".format(self.symbol_name)
146 .format(self.symbol_name))
172 .format(
234 .format(str(self.excluded_files))
420 .format(len(files))
915 self.log.info("{}: FAIL\n".format(name))
[all …]
A Drun_demos.py26 print('#### {} ####'.format(demo))
31 print('{}: FAIL'.format(demo))
33 print('{}: {}'.format(demo, 'PASS' if success else 'FAIL'))
37 print('{}/{} demos passed'.format(successes, len(demos)))
A Dgenerate_server9_bad_saltlen.py60 kwargs['ca_password'] = r'-passin "pass:{ca_password}"'.format(
66 kwargs['openssl_extfile'] = '-extfile {openssl_extfile}'.format(
71 cmd = OPENSSL_RSA_PSS_CERT_COMMAND.format(**kwargs)
75 cmd = OPENSSL_RSA_PSS_DGST_COMMAND.format(**kwargs)
A Dgenerate_psa_wrappers.py121 out.write(' MBEDTLS_TEST_MEMORY_{}({}, {});\n'.format(
178 .format(self._CPP_GUARDS))
184 .format(self._CPP_GUARDS))
223 ['(unsigned) psa_get_key_{}({})'.format(field, var)
239 .format(DEFAULT_C_OUTPUT_FILE_NAME)))
244 .format(DEFAULT_H_OUTPUT_FILE_NAME)))
A Dtest_psa_constant_names.py53 caller='test_psa_constant_names.py for {} values'.format(type_word),
129 sys.stdout.write('{} {}\t{}\n'.format(type_word, value, output))
150 .format(error.type, error.expression,
152 out.write('{} test cases'.format(self.count))
154 out.write(', {} FAIL\n'.format(len(self.errors)))
A Daudit-validity-dates.py39 + "({} is too old)".format(cryptography.__version__))
89 raise ValueError("Unsupported file_type: {}".format(self.data_type))
130 wrapper.__name__ = "{}.parser[{}]".format(type(self).__name__, tag)
299 result.locations.append("{}#{}".format(filename, idx))
306 result.locations.append("{}".format(filename))
366 audit_data.locations.append("{}:{}:#{}".format(filename,
376 print("{}\t{:20}\t{:20}\t{:3}\t{}".format(
449 logger.info("Total: {} objects found!".format(len(audit_results)))
A Dset_psa_test_dependencies.py202 .format(test_case_number, file_name))
205 .format(test_case_number, file_name))
227 .format(test_case_number, file_name))
276 .format(file_name))
/lib/
A Dtpm-common.c22 int pack_byte_string(u8 *str, size_t size, const char *format, ...) in pack_byte_string() argument
29 va_start(args, format); in pack_byte_string()
30 for (; *format; format++) { in pack_byte_string()
31 switch (*format) { in pack_byte_string()
63 switch (*format) { in pack_byte_string()
83 int unpack_byte_string(const u8 *str, size_t size, const char *format, ...) in unpack_byte_string() argument
91 va_start(args, format); in unpack_byte_string()
92 for (; *format; format++) { in unpack_byte_string()
93 switch (*format) { in unpack_byte_string()
127 switch (*format) { in unpack_byte_string()
/lib/mbedtls/external/mbedtls/scripts/
A Dgenerate_ssl_debug_helpers.py66 start_line = '#{} {}'.format(d, p)
68 end_line = '#endif /* {} */'.format(p)
70 end_line = '#endif /* defined({}) */'.format(p)
72 end_line = '#endif /* !defined({}) */'.format(p)
108 param = "!( {} )".format(pair_param)
171 return 'Enum({},{})'.format(self._name, self._span)
201 .format(member=member, space=' '*8)
249 return 'SigAlgs({})'.format(self._definitions[0].span())
308 return 'NamedGroup({})'.format(self._definitions[0].span())
389 sys.stdout.write(OUTPUT_C_TEMPLATE.format(
[all …]
A Dcode_size_compare.py252 .format(self.arch,
313 .format(self.git_rev))
338 .format(self.git_rev))
368 .format(self.git_rev,
388 .format(git_worktree_path))
566 output.write(format_string.format("filename",
573 .format(fname,
678 output.write(line_format.format(*header_line))
706 output.write(line_format.format(*line))
917 .format(comp_args.record_dir))
[all …]
A Dabi_check.py155 raise Exception("{} not installed, aborting".format(command))
163 "Checking out git worktree for revision {} from {}".format(
192 self.log.debug("Commit is {}".format(version.commit))
253 return "{} ({})".format(version.revision, version.commit)
261 self.report_dir, "{}-{}-{}.dump".format(
427 self.report_dir, "{}-{}-{}.html".format(
442 "Compatibility issues found for {}".format(mbed_module)
451 "for details see {}".format(mbed_module, output_path)
455 "No compatibility issues for {}".format(mbed_module)
481 'PASS: All {} storage format test cases are preserved.'.format(
[all …]
A Dassemble_changelog.py36 message = '{}:{}: {}'.format(filename, line_number,
37 message.format(*args, **kwargs))
44 super().__init__('{}: {}'.format(line_offset, error_message))
48 message = ('Lost content from {}: "{}"'.format(filename, line))
53 message = ('Changelog filenames do not end with .txt: {}'.format(", ".join(filenames)))
138 top_version_title = cls._unreleased_version_text.format(name) + '\n\n'
206 categories = self.format.split_categories(text)
240 self.format = changelog_format
244 self.trailer) = self.format.extract_top_version(whole_file)
269 out.write(self.format.format_category(title, body))
/lib/mbedtls/external/mbedtls/library/
A Dplatform.c89 const char *format, ...) in platform_snprintf_uninit() argument
93 ((void) format); in platform_snprintf_uninit()
101 const char *format,
105 const char *format, in mbedtls_platform_set_snprintf() argument
144 const char *format, va_list arg) in platform_vsnprintf_uninit() argument
148 ((void) format); in platform_vsnprintf_uninit()
157 const char *format,
174 static int platform_printf_uninit(const char *format, ...) in platform_printf_uninit() argument
176 ((void) format); in platform_printf_uninit()
197 static int platform_fprintf_uninit(FILE *stream, const char *format, ...) in platform_fprintf_uninit() argument
[all …]
A Dmps_trace.c43 void mbedtls_mps_trace_print_msg(int id, int line, const char *format, ...) in mbedtls_mps_trace_print_msg() argument
48 va_start(argp, format); in mbedtls_mps_trace_print_msg()
49 ret = mbedtls_vsnprintf(str, MPS_TRACE_BUF_SIZE, format, argp); in mbedtls_mps_trace_print_msg()
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_platform_printf.function3 /* The printf test functions take a format argument from the test data
5 * - For some tests, it makes sense to vary the format.
7 * that parses the format at runtime, and not a compiler optimization.
28 void printf_int(char *format, /* any format expecting one int argument, e.g. "%d" */
36 TEST_EQUAL(n, mbedtls_snprintf(output, n + 1, format, x));
47 void printf_long_max(const char *format, /* "%lx" or longer type */
61 TEST_EQUAL(n, mbedtls_snprintf(output, n + 1, format, value));
73 void printf_char2(char *format, /* "%c%c" */
81 TEST_EQUAL(n, mbedtls_snprintf(output, n + 1, format, arg1, arg2));
A Dtest_suite_ecjpake.data37 ECJPAKE round one: KKP1: unknown first point format
52 ECJPAKE round one: KKP1: unknown second point format
85 ECJPAKE round one: KKP2: unknown first point format
100 ECJPAKE round one: KKP2: unknown second point format
151 ECJPAKE round two client: unknown first point format
166 ECJPAKE round two client: unknown second point format
205 ECJPAKE round two server: unknown first point format
220 ECJPAKE round two server: unknown second point format
/lib/mbedtls/external/mbedtls/scripts/mbedtls_dev/
A Dc_wrapper_generator.py74 .format(self.program_name))
84 .format(guard=self.header_guard))
100 .format(guard=self.header_guard))
173 out.write(' {};\n'.format(call))
274 .format(function.name))
276 out.write('#if {}\n'.format(wrapper.guard))
298 .format(function_name=function.name,
426 expr = '*({})'.format(expr)
430 expr = '({}) {}'.format(cast_to, expr)
435 return '{}={}'.format(var, fmt), [expr]
[all …]
A Dbignum_core.py47 return ['"{}"'.format(self.input_hex),
148 return '{} - {} MPI with {} bit window'.format(
262 "\"{:x}\"".format(remainder_4),
263 "\"{:x}\"".format(carry_4),
264 "\"{:x}\"".format(remainder_8),
265 "\"{:x}\"".format(carry_8)
301 res_str = '{:x}'.format(res)
712 "\"{:x}\"".format(x4),
713 "\"{:x}\"".format(x8)
809 mod_read = "{:x}".format(n)
[all …]
A Decp.py80 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
159 return super().format_arg('{:x}'.format(self.int_a)).zfill(hex_digits)
244 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
367 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
473 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
545 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
619 return super().format_arg('{:x}'.format(self.int_a)).zfill(hex_digits)
695 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
764 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
863 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
A Dc_build_helper.py33 c_fd, c_name = tempfile.mkstemp(prefix='tmp-{}-'.format(file_label),
51 .format(printf_format, cast_to, expr))
67 .format(caller))
155 .format(caller, c_name))
A Dbignum_common.py49 return "\"{}\"".format(val)
93 return "{:x}".format(int(target, 16)).zfill(target_len)
140 self.dependencies.append("MBEDTLS_HAVE_INT{:d}".format(bits_in_limb))
172 res_str = '{:x}'.format(res)
201 self.case_description = format_string.format(
205 self.case_description = "{:x} {} {:x}".format(
316 .format(rep.name))
328 return self.format_arg('{:x}'.format(value_a))
371 return super().description() + " mod {:x}".format(self.int_n)
/lib/mbedtls/external/mbedtls/docs/architecture/
A Dmbed-crypto-storage-specification.md49 ### Key file format for 0.1.0
64 ### Nonvolatile random seed file format for 0.1.0
119 ### Key file format for 1.0.0
179 * [Some changes in the key file format](#key-file-format-for-1.1.0).
192 ### Key file format for 1.1.0
194 The key file format is identical to [1.0.0](#key-file-format-for-1.0.0), except for the following c…
258 ### Key file format for TBD
278 ### Transaction file format for TBD
317 ### Key file format for TBD
358 * Transparent, stored in the export format.
[all …]
/lib/mbedtls/external/mbedtls/include/mbedtls/
A Dplatform.h176 extern int (*mbedtls_fprintf)(FILE *stream, const char *format, ...);
202 extern int (*mbedtls_printf)(const char *format, ...);
238 extern int (*mbedtls_snprintf)(char *s, size_t n, const char *format, ...);
249 const char *format, ...));
276 extern int (*mbedtls_vsnprintf)(char *s, size_t n, const char *format, va_list arg);
286 const char *format, va_list arg));
/lib/lwip/lwip/contrib/apps/LwipMibCompiler/Mibs/IANA/
A DIANA-LANGUAGE-MIB23 language registration MUST describe the format used
59 the Java archive file format (JAR)."
69 Tcl language is transferred in Tcl source code format."
79 is transferred in Perl source code format."
89 language is transferred in Scheme source code format."
100 in the SNMP Script Language source code format."
108 Patrol Script Language source code format."
120 format."

Completed in 70 milliseconds

12345