/mbedtls-3.5.0/tests/scripts/ |
D | generate_tls13_compat_tests.py | 156 ret += ["-ciphersuites {ciphersuites}".format(ciphersuites=ciphersuites)] 161 ret += ["-sigalgs {signature_algorithms}".format( 167 ret += ["-groups {named_groups}".format(named_groups=named_groups)] 195 ret += ['-cert {cert} -key {key}'.format(cert=cert, key=key)] 206 '-CAfile {cafile}'.format(cafile=CERTIFICATES[self._cert_sig_algs[0]].cafile)] 295 ret += ['--priority={priority_string}'.format( 308 ret += ['--x509certfile {cert} --x509keyfile {key}'.format( 323 '--x509cafile {cafile}'.format(cafile=CERTIFICATES[self._cert_sig_algs[0]].cafile)] 346 ret += ["force_ciphersuite={ciphers}".format(ciphers=ciphers)] 349 ret += ['sig_algs={sig_algs}'.format( [all …]
|
D | check_names.py | 93 gutter = format(self.line_no, "4d") 97 " {0} |\n".format(" " * len(gutter)) + 98 " {0} | {1}".format(gutter, self.line) + 99 " {0} | {1}\n".format(" " * len(gutter), underline) 152 return "{0}".format(self.symbol_name) 158 .format(self.symbol_name)) 178 .format(self.match.filename, self.match.line_no, self.match.name) 184 .format( 208 .format(self.match.filename, self.match.line_no, self.match.name) 216 .format(self.match.filename, self.match.line_no, self.match.name) [all …]
|
D | test_psa_constant_names.py | 65 caller='test_psa_constant_names.py for {} values'.format(type_word), 141 sys.stdout.write('{} {}\t{}\n'.format(type_word, value, output)) 162 .format(error.type, error.expression, 164 out.write('{} test cases'.format(self.count)) 166 out.write(', {} FAIL\n'.format(len(self.errors)))
|
D | set_psa_test_dependencies.py | 214 .format(test_case_number, file_name)) 217 .format(test_case_number, file_name)) 239 .format(test_case_number, file_name)) 288 .format(file_name))
|
D | generate_bignum_tests.py | 101 self.case_description = "{} {} {}".format( 191 return ", result{}0".format('>' if self._result > 0 else 195 return [bignum_common.quote_str("{:x}".format(self._result))]
|
D | psa_collect_statuses.py | 80 sys.stdout.write('{} {}\n'.format(function, name)) 124 help='Log file location (default: {})'.format( 129 help='Path to psa_constant_names (default: {})'.format(
|
D | generate_test_code.py | 191 CONDITION_REGEX = r'({})(?:\s*({})\s*({}))?$'.format(C_IDENTIFIER_REGEX, 316 '''.format(name=name, 344 '''.format(preprocessor_check=preprocessor_check, name=name) 348 '''.format(name=name) 793 break;'''.format(_not=_not, _defined=_defined, 818 break;'''.format(exp_id=exp_id, expression=exp) 903 '''.format(preprocessor_check=preprocessor_check, code=dep_check_code) 908 '''.format(preprocessor_check=preprocessor_check, code=expression_code)
|
D | analyze_outcomes.py | 25 sys.stderr.write((fmt + '\n').format(*args, **kwargs)) 143 Results.log("\n*** Analyze driver {} vs reference {} ***\n".format( 240 Results.log('Error: invalid task: {}'.format(task))
|
/mbedtls-3.5.0/scripts/ |
D | generate_ssl_debug_helpers.py | 78 start_line = '#{} {}'.format(d, p) 80 end_line = '#endif /* {} */'.format(p) 82 end_line = '#endif /* defined({}) */'.format(p) 84 end_line = '#endif /* !defined({}) */'.format(p) 120 param = "!( {} )".format(pair_param) 183 return 'Enum({},{})'.format(self._name, self._span) 212 '{space}[{member}] = "{member}",'.format(member=member, 232 body = body.format(translation_table='\n'.join(translation_table), 267 return 'SigAlgs({})'.format(self._definitions[0].span()) 281 ' case {}:\n return "{}";'.format(name, return_val)) [all …]
|
D | abi_check.py | 167 raise Exception("{} not installed, aborting".format(command)) 175 "Checking out git worktree for revision {} from {}".format( 188 self.log.debug("Checking out git worktree for revision {}".format( 204 self.log.debug("Commit is {}".format(version.commit)) 265 return "{} ({})".format(version.revision, version.commit) 273 self.report_dir, "{}-{}-{}.dump".format( 439 self.report_dir, "{}-{}-{}.html".format( 454 "Compatibility issues found for {}".format(mbed_module) 463 "for details see {}".format(mbed_module, output_path) 467 "No compatibility issues for {}".format(mbed_module) [all …]
|
D | assemble_changelog.py | 48 message = '{}:{}: {}'.format(filename, line_number, 49 message.format(*args, **kwargs)) 56 super().__init__('{}: {}'.format(line_offset, error_message)) 60 message = ('Lost content from {}: "{}"'.format(filename, line)) 211 categories = self.format.split_categories(text) 245 self.format = changelog_format 249 self.trailer) = self.format.extract_top_version(whole_file) 273 out.write(self.format.format_category(title, body))
|
D | code_size_compare.py | 104 csv_file.write("{}, {}\n".format(data[5], data[3])) 164 res_file.write("{}, {}, {}, {}, {:.2%}\n".format(fname, \ 167 res_file.write("{}, {}\n".format(fname, this_size)) 205 print("Error: {} is not a directory".format(comp_args.result_dir))
|
/mbedtls-3.5.0/library/ |
D | platform.c | 101 const char *format, ...) in platform_snprintf_uninit() argument 105 ((void) format); in platform_snprintf_uninit() 113 const char *format, 117 const char *format, in mbedtls_platform_set_snprintf() argument 156 const char *format, va_list arg) in platform_vsnprintf_uninit() argument 160 ((void) format); in platform_vsnprintf_uninit() 169 const char *format, 173 const char *format, in mbedtls_platform_set_vsnprintf() argument 186 static int platform_printf_uninit(const char *format, ...) in platform_printf_uninit() argument 188 ((void) format); in platform_printf_uninit() [all …]
|
D | mps_trace.c | 57 void mbedtls_mps_trace_print_msg(int id, int line, const char *format, ...) in mbedtls_mps_trace_print_msg() argument 62 va_start(argp, format); in mbedtls_mps_trace_print_msg() 63 ret = mbedtls_vsnprintf(str, MPS_TRACE_BUF_SIZE, format, argp); in mbedtls_mps_trace_print_msg()
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | bignum_core.py | 57 return ['"{}"'.format(self.input_hex), 59 '"{:0{}x}"'.format(self.result, len(self.input_hex))] 62 return 'Core shift {} >> {}'.format(self.number_description, 96 return '{} - {} MPI with {} bit window'.format( 195 self.case_description = "0x{} + 0x{} * 0x{}".format( 208 "\"{:x}\"".format(remainder_4), 209 "\"{:x}\"".format(carry_4), 210 "\"{:x}\"".format(remainder_8), 211 "\"{:x}\"".format(carry_8) 595 raise Exception("Limbs of input A ({}) exceeds N ({})".format( [all …]
|
D | c_build_helper.py | 44 c_fd, c_name = tempfile.mkstemp(prefix='tmp-{}-'.format(file_label), 62 .format(printf_format, cast_to, expr)) 78 .format(caller)) 166 .format(caller, c_name))
|
D | ecp.py | 71 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits) 137 return super().format_arg('{:x}'.format(self.int_a)).zfill(hex_digits) 210 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits) 302 return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
|
D | bignum_common.py | 58 return "\"{}\"".format(val) 124 self.dependencies = ["MBEDTLS_HAVE_INT{:d}".format(bits_in_limb)] 156 res_str = '{:x}'.format(res) 185 self.case_description = format_string.format( 189 self.case_description = "{:x} {} {:x}".format( 300 .format(rep.name)) 312 return self.format_arg('{:x}'.format(value_a)) 355 return super().description() + " mod {:x}".format(self.int_n)
|
/mbedtls-3.5.0/docs/architecture/ |
D | mbed-crypto-storage-specification.md | 26 * [Persistent transparent keys](#key-file-format-for-0.1.0) designated by a [slot number](#key-name… 27 * [Nonvolatile random seed](#nonvolatile-random-seed-file-format-for-0.1.0) on ITS only. 37 …s on the storage backend. The content of the file is described [below](#key-file-format-for-0.1.0). 47 ### Key file format for 0.1.0 62 ### Nonvolatile random seed file format for 0.1.0 66 The file format is just the seed as a byte string with no metadata or encoding of any kind. 73 * Files 1 through 0xfffeffff: [content](#key-file-format-for-0.1.0) of the [key whose identifier is… 74 …O_ITS_RANDOM_SEED_UID`): [nonvolatile random seed](#nonvolatile-random-seed-file-format-for-0.1.0). 84 * `sprintf(CRYPTO_STORAGE_FILE_LOCATION "psa_key_slot_%lu", key_id)` [content](#key-file-format-for… 103 * [Persistent transparent keys](#key-file-format-for-1.0.0) designated by a [key identifier and own… [all …]
|
/mbedtls-3.5.0/include/mbedtls/ |
D | platform.h | 173 extern int (*mbedtls_fprintf)(FILE *stream, const char *format, ...); 198 extern int (*mbedtls_printf)(const char *format, ...); 233 extern int (*mbedtls_snprintf)(char *s, size_t n, const char *format, ...); 244 const char *format, ...)); 270 extern int (*mbedtls_vsnprintf)(char *s, size_t n, const char *format, va_list arg); 280 const char *format, va_list arg));
|
D | debug.h | 96 #if __has_attribute(format) 102 __attribute__((format(printf, string_index, first_to_check))) 172 const char *format, ...) MBEDTLS_PRINTF_ATTRIBUTE(5, 6);
|
/mbedtls-3.5.0/tests/suites/ |
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
|
/mbedtls-3.5.0/docs/architecture/testing/ |
D | psa-storage-format-testing.md | 1 # Mbed TLS PSA keystore format stability testing strategy 15 The goal of storage format stability testing is: as a user of Mbed TLS, I want to store a key under… 23 …y is deterministic. Therefore we can ensure the stability of the storage format by creating test c… 33 ### Keeping up with storage format evolution 39 …old keys (which should only be done by retiring a version of the storage format), then we should k… 56 …format version. When the storage format changes, if backward compatibility is desired, old test da… 64 ### General key format 66 Objective: test the format of the key file: which field goes where and how big it is.
|
/mbedtls-3.5.0/programs/pkey/ |
D | gen_key.c | 133 int format; /* the output format to use */ member 146 if (opt.format == FORMAT_PEM) { in write_private_key() 221 opt.format = DFL_FORMAT; in main() 241 opt.format = FORMAT_PEM; in main() 243 opt.format = FORMAT_DER; in main()
|
/mbedtls-3.5.0/ |
D | .pylintrc | 50 # * logging-format-interpolation: Pylint warns about things like 51 # ``log.info('...'.format(...))``. It insists on ``log.info('...', ...)``. 55 # Ubuntu 18.04) only recognize old-style format strings using '%', 67 disable=locally-disabled,locally-enabled,logging-format-interpolation,no-else-return,unnecessary-pa…
|