| /lib/mbedtls/external/mbedtls/tests/scripts/ |
| A D | generate_tls13_compat_tests.py | 151 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 D | check_names.py | 81 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 D | run_demos.py | 26 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 D | generate_server9_bad_saltlen.py | 60 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 D | generate_psa_wrappers.py | 121 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 D | test_psa_constant_names.py | 53 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 D | audit-validity-dates.py | 39 + "({} 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 D | set_psa_test_dependencies.py | 202 .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 D | tpm-common.c | 22 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 D | generate_ssl_debug_helpers.py | 66 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 D | code_size_compare.py | 252 .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 D | abi_check.py | 155 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 D | assemble_changelog.py | 36 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 D | platform.c | 89 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 D | mps_trace.c | 43 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 D | test_suite_platform_printf.function | 3 /* 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 D | test_suite_ecjpake.data | 37 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 D | c_wrapper_generator.py | 74 .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 D | bignum_core.py | 47 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 D | ecp.py | 80 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 D | c_build_helper.py | 33 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 D | bignum_common.py | 49 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 D | mbed-crypto-storage-specification.md | 49 ### 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 D | platform.h | 176 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 D | IANA-LANGUAGE-MIB | 23 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."
|