Home
last modified time | relevance | path

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

12345678910

/openthread-3.7.0/third_party/mbedtls/repo/tests/scripts/
Dgenerate_tls13_compat_tests.py146 ret += ["-ciphersuites {ciphersuites}".format(ciphersuites=ciphersuites)]
151 ret += ["-sigalgs {signature_algorithms}".format(
157 ret += ["-groups {named_groups}".format(named_groups=named_groups)]
193 ret += ['-cert {cert} -key {key}'.format(cert=cert, key=key)]
204 '-CAfile {cafile}'.format(cafile=CERTIFICATES[self._cert_sig_algs[0]].cafile)]
294 ret += ['--priority={priority_string}'.format(
307 ret += ['--x509certfile {cert} --x509keyfile {key}'.format(
322 '--x509cafile {cafile}'.format(cafile=CERTIFICATES[self._cert_sig_algs[0]].cafile)]
345 ret += ["force_ciphersuite={ciphers}".format(ciphers=ciphers)]
348 ret += ['sig_algs={sig_algs}'.format(
[all …]
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))
166 .format(self.match.filename, self.match.line_no, self.match.name)
172 .format(
196 .format(self.match.filename, self.match.line_no, self.match.name)
204 .format(self.match.filename, self.match.line_no, self.match.name)
[all …]
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)))
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)
/openthread-3.7.0/tests/toranj/ncp/
Dwpan.py333 …ncp_socket_path = 'system:{}{} {} --time-speed={}'.format(self._OT_NCP_FTD, '' if radios is None e…
337 ' -o Config:NCP:SocketPath \"{}\"'.format(ncp_socket_path) + \
338 ' -o Config:TUN:InterfaceName {}'.format(self._interface_name) + \
348 _log('$ Node{}.__init__() cmd: {}'.format(index, cmd))
365 return 'Node (index={}, interface_name={})'.format(self._index, self._interface_name)
386 _log('$ Node{}.wpanctl(\'{}\')'.format(self._index, cmd), new_line=False)
399 _log(' -> \'{}\''.format(result))
442 …return self.wpanctl('form \"' + name + '\"' + (' -c {}'.format(channel) if channel is not None els…
443 (' -m {}'.format(channel_mask) if channel_mask is not None else '') +
444 (' -p {}'.format(panid) if panid is not None else '') +
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/library/
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,
161 const char *format, in mbedtls_platform_set_vsnprintf() argument
174 static int platform_printf_uninit(const char *format, ...) in platform_printf_uninit() argument
176 ((void) format); in platform_printf_uninit()
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/scripts/
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)
214 body = body.format(translation_table='\n'.join(translation_table),
249 return 'SigAlgs({})'.format(self._definitions[0].span())
263 ' case {}:\n return "{}";'.format(name, return_val))
[all …]
Dcode_size_compare.py83 return '{git_rev}-{arch}-{config}-{compiler}'.format(**self.__dict__)
103 .format(measure_tool=self.measure_cmd.strip().split(' ')[0])
217 .format(src=TFM_MEDIUM_CONFIG_H, dest=CONFIG_H))
219 .format(src=TFM_MEDIUM_CRYPTO_CONFIG_H,
245 self.make_cmd.append('CFLAGS=\'{}\''.format(self.infer_make_cflags()))
247 self.make_cmd.append('CC={}'.format(self.compiler))
252 .format(self.arch,
313 .format(self.git_rev))
338 .format(self.git_rev))
368 .format(self.git_rev,
[all …]
Dabi_check.py155 raise Exception("{} not installed, aborting".format(command))
163 "Checking out git worktree for revision {} from {}".format(
176 self.log.debug("Checking out git worktree for revision {}".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)
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
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));
/openthread-3.7.0/tools/harness-automation/autothreadharness/
Drf_shield_controller.py67 self._display_string('CLOSE {}'.format(self._channel))
68 self._write('CLOSE (@{})'.format(self._channel))
71 self._display_string('OPEN {}'.format(self._channel))
72 self._write('OPEN (@{})'.format(self._channel))
75 return self._conn.write('{}\r\n'.format(data))
78 self._write('DIAGNOSTIC:DISPLAY "{}"'.format(string))
100 logger.exception('Unknown RF shield controller type: {}'.format(shield_type))
Dpdu_controller.py183 os.system('nrfjprog -f NRF52 --snr {} -p'.format(serial_number))
210 raise KeyError('Missing keys in PDU params: {}'.format(missing_fields))
256 msg = 'Found PDU errorIndication: {}'.format(errorIndication)
260 msg = 'Found PDU errorStatus: {}'.format(errorStatus)
279 msg = 'Found PDU errorIndication: {}'.format(errorIndication)
283 msg = 'Found PDU errorStatus: {}'.format(errorStatus)
331 logger.info('Executing turn OFF for: {}'.format(sockets))
342 logger.debug('Turned OFF socket {} at {}'.format(socket, self.ip))
344 logger.error('Failed to turn OFF socket {} at {}'.format(socket, self.ip))
354 logger.info('Executing turn ON for: {}'.format(sockets))
[all …]
/openthread-3.7.0/script/
Dclang-format42 if command -v clang-format-14 >/dev/null; then
43 alias clang-format=clang-format-14
44 elif command -v clang-format >/dev/null; then
56 clang-format "$@" || die
Dupdate-makefiles.py44 "{}/{}".format(dir_path, file_name)[2:]
97 raise RuntimeError('failed to update build file: {}'.format(file_name))
125 formatted_list = [" {}\n".format(file_name[9:]) for file_name in core_cpp_files]
135 formatted_list = [" \"{}\",\n".format(file_name[9:]) for file_name in core_hpp_cpp_files]
138 formatted_list = [" \"{}\",\n".format(file_name[9:]) for file_name in core_h_files]
145 formatted_list = [" \"{}\",\n".format(file_name[19:]) for file_name in include_h_files]
Dbootstrap41 …sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 || echo 'WARNING: co…
115 …command -v clang-format-14 || (command -v clang-format && (clang-format --version | grep -q "${CLA…
117 sudo ln -s "$(brew --prefix llvm@14)/bin/clang-format" /usr/local/bin/clang-format-14
/openthread-3.7.0/tests/scripts/thread-cert/
Dtest_dns_client_config_auto_start.py87 self.assertEqual(dns_config['Server'], '[{}]:53'.format(DEFAULT_ADDRESS))
106 self.assertEqual(dns_config['Server'], '[{}]:53'.format(srp_server_address))
112 self.assertEqual(dns_config['Server'], '[{}]:53'.format(DEFAULT_ADDRESS))
119 self.assertEqual(dns_config['Server'], '[{}]:53'.format(srp_server_address))
125 self.assertEqual(dns_config['Server'], '[{}]:53'.format(DEFAULT_ADDRESS))
143 self.assertEqual(dns_config['Server'], '[{}]:53'.format(srp_server_address))
146 self.assertEqual(dns_config['Server'], '[{}]:53'.format(DEFAULT_ADDRESS))
Dmesh_cop.py127 return 'Channel(channel_page={},channel={})'.format(self._channel_page, self._channel)
169 return "ExtendedPanid(extended_panid={})".format(self.extended_panid)
193 return "NetworkName(network_name={})".format(self.network_name)
200 network_name = struct.unpack("{}s".format(10), data.read(len))[0]
272 return "SteeringData(bloom_filter={})".format(hexlify(self._bloom_filter))
302 return "BorderAgentLocator(rloc16={})".format(hex(self._border_agent_locator))
329 return "CommissionerId(commissioner_id={})".format(self.commissioner_id)
355 … return "CommissionerSessionId(commissioner_session_id={})".format(self._commissioner_session_id)
428 return "CommissionerUdpPort(udp_port={})".format(self._udp_port)
452 return "State(state={})".format(self.state)
[all …]
Dmle.py129 return "SourceAddress(address={})".format(hex(self._address))
170 return "Mode(receiver={}, secure={}, device_type={}, network_data={})".format(
200 return "Timeout(timeout={})".format(self.timeout)
225 return "Challenge(challenge={})".format(hexlify(self.challenge))
250 return "Response(response={})".format(hexlify(self.response))
275 return "LinkLayerFrameCounter(frame_counter={})".format(self.frame_counter)
300 return "MleFrameCounter(frame_counter={})".format(self.frame_counter)
335 …return "LinkQualityAndRouteData(output={}, input={}, route={})".format(self.output, self.input, se…
374 lqrd_str = ", ".join(["{}".format(lqrd) for lqrd in self.link_quality_and_route_data])
375 … return "Route64(id_sequence={}, router_id_mask={}, link_quality_and_route_data=[{}])".format(
[all …]
Dnetwork_layer.py76 return "TargetEid(eid={})".format(hexlify(self.eid))
101 return "MacExtendedAddress(mac_address={})".format(hexlify(self.mac_address))
126 return "Rloc16(rloc16={})".format(hex(self.rloc16))
151 return "MlEid(ml_eid={})".format(hexlify(self.ml_eid))
176 return "Status(status={})".format(self.status)
201 return "TimeSinceLastTransaction(seconds={})".format(self.seconds)
231 …return "RouterMask(id_sequence={}, router_id_mask={})".format(self.id_sequence, hex(self.router_id…
257 return "NdOption(options=[{}])".format(", ".join([str(opt) for opt in self.options]))
306 return "ThreadNetworkData(tlvs=[{}])".format(", ".join([str(tlv) for tlv in self.tlvs]))
Dcommon.py50 raise TypeError("Expected the same class. Got {} and {}".format(type(self), type(other)))
150 … raise RuntimeError("Could not convert to IID. Invalid MAC address type: {}".format(self._type))
155 … RuntimeError("Could not create MAC address from EUI64. Invalid data type: {}".format(type(eui64)))
166 …untimeError("Could not create MAC address from RLOC16. Invalid data type: {}".format(type(rloc16)))
174 …return "MacAddress(mac_address=b'{}', type={})".format(hexlify(self.mac_address), MacAddressType(s…
/openthread-3.7.0/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dc_wrapper_generator.py74 .format(self.program_name))
84 .format(guard=self.header_guard))
100 .format(guard=self.header_guard))
170 call = '({})({})'.format(self._underlying_function_name(function),
173 out.write(' {};\n'.format(call))
177 out.write(' {} = {};\n'.format(ret_decl, call))
191 out.write(' return {};\n'.format(ret_name))
274 .format(function.name))
276 out.write('#if {}\n'.format(wrapper.guard))
282 out.write('#endif /* {} */\n'.format(wrapper.guard))
[all …]
Dbignum_core.py47 return ['"{}"'.format(self.input_hex),
49 '"{:0{}x}"'.format(self.result, len(self.input_hex))]
52 return 'Core shift {} >> {}'.format(self.number_description,
97 bits = "({} bits in {} limbs)".format(self.int_n.bit_length(), self.val_n_max_limbs)
98 return "{} #{} {} {} {} {}".format(self.test_name,
107 res_str = bignum_common.zfill_match(self.val_n, "{:x}".format(res))
148 return '{} - {} MPI with {} bit window'.format(
249 self.case_description = "0x{} + 0x{} * 0x{}".format(
262 "\"{:x}\"".format(remainder_4),
263 "\"{:x}\"".format(carry_4),
[all …]
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)
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/
Dmbed-crypto-storage-specification.md28 * [Persistent transparent keys](#key-file-format-for-0.1.0) designated by a [slot number](#key-name…
29 * [Nonvolatile random seed](#nonvolatile-random-seed-file-format-for-0.1.0) on ITS only.
39 …s on the storage backend. The content of the file is described [below](#key-file-format-for-0.1.0).
49 ### Key file format for 0.1.0
64 ### Nonvolatile random seed file format for 0.1.0
68 The file format is just the seed as a byte string with no metadata or encoding of any kind.
75 * Files 1 through 0xfffeffff: [content](#key-file-format-for-0.1.0) of the [key whose identifier is…
76 …O_ITS_RANDOM_SEED_UID`): [nonvolatile random seed](#nonvolatile-random-seed-file-format-for-0.1.0).
86 * `sprintf(CRYPTO_STORAGE_FILE_LOCATION "psa_key_slot_%lu", key_id)` [content](#key-file-format-for…
105 * [Persistent transparent keys](#key-file-format-for-1.0.0) designated by a [key identifier and own…
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
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));

12345678910