/openthread-3.4.0/third_party/mbedtls/repo/tests/ |
D | ssl-opt.sh | 3 # ssl-opt.sh 6 # SPDX-License-Identifier: Apache-2.0 12 # http://www.apache.org/licenses/LICENSE-2.0 33 set -u 37 ulimit -f 20971520 49 : ${GNUTLS_CLI:=gnutls-cli} 50 : ${GNUTLS_SERV:=gnutls-serv} 54 if git diff --quiet ../include/mbedtls/config.h 2>/dev/null; then 62 : ${MBEDTLS_TEST_PLATFORM:="$(uname -s | tr -c \\n0-9A-Za-z _)-$(uname -m | tr -c \\n0-9A-Za-z _)"} 64 O_SRV="$OPENSSL_CMD s_server -www -cert data_files/server5.crt -key data_files/server5.key" [all …]
|
/openthread-3.4.0/tests/scripts/thread-cert/border_router/ |
D | test_firewall.py | 45 # ----------------(eth)---------------------- 102 host.bash(f'ip -6 addr add {interface}/64 dev {host.ETH_DEV} scope global') 104 host.bash(f'ip -6 route del {route} dev {host.ETH_DEV}') 106 host.bash(f'ip -6 route add {dest} dev {host.ETH_DEV} via {gateway}') 110 host.bash(f'ip -6 route del {dest}') 112 host.bash(f'ip -6 addr del {interface}/64 dev {host.ETH_DEV} scope global') 116 # 1. Host pings router1's OMR from host's infra address. 119 # 2. Host pings router1's DUA from host's infra address. 122 # 3. Host pings router1's OMR from router1's RLOC. 128 # 4. Host pings router1's OMR from BR1's OMR. [all …]
|
/openthread-3.4.0/src/cli/ |
D | cli_history.cpp | 62 if (aArgs->ParseAsUint16(aNumEntries) == OT_ERROR_NONE) in ParseArgs() 93 …// +----------------------+---------+---------------------------------------------+--------+-----+… in Process() 111 otIp6AddressToString(&info->mAddress, addressString, sizeof(addressString)); in Process() 117 snprintf(&addressString[len], sizeof(addressString) - len, "/%d", info->mPrefixLength); in Process() 119 OutputLine("| %20s | %-7s | %-43s | %-6s | %3d | %c | %c | %c |", ageString, in Process() 120 Stringify(info->mEvent, kSimpleEventStrings), addressString, in Process() 121 Interpreter::AddressOriginToString(info->mAddressOrigin), info->mScope, in Process() 122 … info->mPreferred ? 'Y' : 'N', info->mValid ? 'Y' : 'N', info->mRloc ? 'Y' : 'N'); in Process() 126 …OutputLine("%s -> event:%s address:%s prefixlen:%d origin:%s scope:%d preferred:%s valid:%s rloc:%… in Process() 127 … ageString, Stringify(info->mEvent, kSimpleEventStrings), addressString, info->mPrefixLength, in Process() [all …]
|
/openthread-3.4.0/tools/harness-thci/ |
D | OpenThread_WpanCtl.py | 112 print('[%s] Expecting [%s]' % (self.port, expected)) 117 print('[%s] Got line [%s]' % (self.port, line)) 120 print('[%s] Expected [%s]' % (self.port, expected)) 124 retry_times -= 1 127 times -= 1 129 raise Exception('failed to find expected string[%s]' % expected) 132 logging.info('%s: reading', self.port) 139 logging.info('%s: writing', self.port) 151 logging.info('%s: reading line', self.port) 162 logging.exception('%s: No new data', self.port) [all …]
|
D | OpenThread_BR.py | 49 LOGX = re.compile(r'.*Under-voltage detected!') 52 assert LOGX.match('[57522.618196] Under-voltage detected! (0x00050005)') 54 OTBR_AGENT_SYSLOG_PATTERN = re.compile(r'raspberrypi otbr-agent\[\d+\]: (.*)') 56 …'Jun 23 05:21:22 raspberrypi otbr-agent[323]: =========[[THCI] direction=send | type=JOIN_FIN.req … 110 if i < retry - 1: 120 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg)) 173 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg)) 204 raise Exception('%s: failed to find end of response' % self.port) 216 print('[%s] Got line [%r]' % (self.port, line)) 224 print('[%s] Expected [%r]' % (self.port, expected)) [all …]
|
D | OpenThread.py | 70 # Replace by the actual version string for the vendor's reference device 88 LOGX = re.compile(r'((\[(-|C|W|N|I|D)\])' 89 … r'|(-+$)' # e.x. ------------------------------------------------------------------------ 95 assert LOGX.match('[-]') 101 assert LOGX.match('------------------------------------------------------------------------') 108 logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s") 119 callstr = '====' * _callStackDepth + "> %s%s%s" % (func_name, str(args) if args else "", 125 self.log("%s returns %r", callstr, ret) 128 self.log("FUNC %s failed: %s", func_name, str(ex)) 131 _callStackDepth -= 1 [all …]
|
/openthread-3.4.0/third_party/nlbuild-autotools/repo/third_party/autoconf/m4/ |
D | ax_compare_version.m4 | 2 # http://www.gnu.org/software/autoconf-archive/ax_compare_version.html 7 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 12 # minor-version numbers that can exist, and the fact that string 18 # limited to a certain number of minor-version levels. 23 # eq - equal (test A == B) 24 # ne - not equal (test A != B) 25 # le - less than or equal (test A <= B) 26 # ge - greater than or equal (test A >= B) 27 # lt - less than (test A < B) 28 # gt - greater than (test A > B) [all …]
|
/openthread-3.4.0/tests/scripts/thread-cert/pktverify/ |
D | bytes.py | 36 def __init__(self, s: Union[str, bytearray, 'Bytes', Any]): 37 if isinstance(s, str): 39 s = Bytes._parse_compact(s) 42 s = Bytes._parse_octets(s) 44 s = Bytes._parse_hextets(s) 46 super().__init__(s) 52 return '%s(%r)' % (self.__class__.__name__, self.format_compact()) 54 def format_compact(self) -> str: 60 def format_octets(self) -> str: 66 def format_hextets(self) -> str: [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/3rdparty/everest/library/kremlib/ |
D | FStar_UInt128_extracted.c | 5 …-fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrB9w -minimal -fparentheses -fcurl… 27 return (a ^ ((a ^ b) | ((a - b) ^ b))) >> (uint32_t)63U; in FStar_UInt128_constant_time_carry() 60 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub() 68 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub_underspec() 76 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub_mod_impl() 111 static uint64_t FStar_UInt128_add_u64_shift_left(uint64_t hi, uint64_t lo, uint32_t s) in FStar_UInt128_add_u64_shift_left() argument 113 return (hi << s) + (lo >> (FStar_UInt128_u32_64 - s)); in FStar_UInt128_add_u64_shift_left() 116 static uint64_t FStar_UInt128_add_u64_shift_left_respec(uint64_t hi, uint64_t lo, uint32_t s) in FStar_UInt128_add_u64_shift_left_respec() argument 118 return FStar_UInt128_add_u64_shift_left(hi, lo, s); in FStar_UInt128_add_u64_shift_left_respec() 122 FStar_UInt128_shift_left_small(FStar_UInt128_uint128 a, uint32_t s) in FStar_UInt128_shift_left_small() argument [all …]
|
/openthread-3.4.0/tests/scripts/thread-cert/ |
D | node.py | 79 … self._socat_proc = subprocess.Popen(['socat', '-d', '-d', 'pty,raw,echo=0', 'pty,raw,echo=0'], 100 # We expect ot-rcp not to quit in 1 second. 103 raise Exception(f"ot-rcp {nodeid} exited unexpectedly!") 105 def _get_ot_rcp_path(self) -> str: 107 path = '%s/examples/apps/ncp/ot-rcp' % srcdir 108 logging.info("ot-rcp path: %s", path) 113 subprocess.check_call(f"docker rm -f {self._docker_name} || true", shell=True) 115 dns = ['--dns=127.0.0.1'] if INFRA_DNS64 == 1 else ['--dns=8.8.8.8'] 116 nat64_prefix = ['--nat64-prefix', '2001:db8:1:ffff::/96'] if INFRA_DNS64 == 1 else [] 120 '--rm', [all …]
|
D | Cert_9_2_09_PendingPartition.py | 62 # ----------------------------- 67 # ------------- 79 # ---------- 243 # - State TLV (value = Accept) 252 # - Source Address TLV 253 # - Leader Data TLV: 256 # - Network Data TLV: 257 # - Commissioner Data TLV: 261 # - Active Timestamp TLV: 10s 262 # - Pending Timestamp TLV: 30s [all …]
|
/openthread-3.4.0/tools/harness-automation/autothreadharness/ |
D | runner.py | 75 logger.info('Initial state is %s', json.dumps(self.result, indent=2)) 79 … '\n========================================\n%s\n========================================', 87 os.system('echo %s > "%s"' % 88 … (' '.join(self.auto_reboot_args + ['-c', test.__class__.__name__]), RESUME_SCRIPT_PATH)) 91 self.started = time.strftime('%Y-%m-%dT%H:%M:%S') 93 os.system('mkdir %s' % test.result_dir) 94 …self.log_handler = logging.FileHandler('%s\\auto-%s.log' % (test.result_dir, time.strftime('%Y%m%d… 96 self.log_handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(message)s')) 111 'stopped': time.strftime('%Y-%m-%dT%H:%M:%S'), 118 os.system('del "%s"' % RESUME_SCRIPT_PATH) [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/scripts/ |
D | bump_version.sh | 4 # SPDX-License-Identifier: Apache-2.0 10 # http://www.apache.org/licenses/LICENSE-2.0 22 # Usage: bump_version.sh [ --version <version> ] [ --so-crypto <version>] 23 # [ --so-x509 <version> ] [ --so-tls <version> ] 24 # [ -v | --verbose ] [ -h | --help ] 32 until [ -z "$1" ] 35 --version) 40 --so-crypto) 44 --so-x509) 48 --so-tls) [all …]
|
D | generate_visualc_files.pl | 10 # SPDX-License-Identifier: Apache-2.0 16 # http://www.apache.org/licenses/LICENSE-2.0 30 my $vsx_app_tpl_file = "scripts/data_files/vs2010-app-template.$vsx_ext"; 31 my $vsx_main_tpl_file = "scripts/data_files/vs2010-main-template.$vsx_ext"; 33 my $vsx_sln_tpl_file = "scripts/data_files/vs2010-sln-template.sln"; 91 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "{APPNAME}", "{APPNAME}.vcxproj", "{GUID}"\r 93 {46CF2D25-6A36-4189-B59C-E4815388E554} = {46CF2D25-6A36-4189-B59C-E4815388E554}\r 113 if (not (-d $d)) { return 0; } 115 return -d $vsx_dir 116 && -d $mbedtls_header_dir [all …]
|
D | generate_errors.pl | 9 # SPDX-License-Identifier: Apache-2.0 15 # http://www.apache.org/licenses/LICENSE-2.0 32 -d $include_dir or die "No such directory: $include_dir\n"; 33 -d $data_dir or die "No such directory: $data_dir\n"; 39 unless( -d $include_dir && -d $data_dir ) { 41 -d $include_dir && -d $data_dir 72 # Both the before-comment and the after-comment are optional. 75 (?:/\*[*!](?!<) # Doxygen before-comment start 78 \s*\#\s*define\s+(MBEDTLS_ERR_\w+) # $2: name 79 \s+\-(0[Xx][0-9A-Fa-f]+)\s* # $3: value (without the sign) [all …]
|
D | generate_psa_constants.py | 15 # SPDX-License-Identifier: Apache-2.0 21 # http://www.apache.org/licenses/LICENSE-2.0 40 %(status_cases)s 48 %(ecc_curve_cases)s 56 %(dh_group_cases)s 64 %(hash_algorithm_cases)s 72 %(ka_algorithm_cases)s 82 %(key_type_cases)s 84 %(key_type_code)s{ 137 %(algorithm_cases)s [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/tests/scripts/ |
D | generate_test_code.py | 5 # SPDX-License-Identifier: Apache-2.0 11 # http://www.apache.org/licenses/LICENSE-2.0 28 ------ 36 --------------------- 60 enc_dec_buf:MBEDTLS_CIPHER_AES_128_GCM:"AES-128-GCM":128:8:-1 63 --------------- 71 ---------- 73 - Generating test_suite_<module>[.<optional sub module>].c file 75 - Building each source file into executables. 76 - Running each executable and printing report. [all …]
|
D | basic-build-test.sh | 3 # basic-build-tests.sh 6 # SPDX-License-Identifier: Apache-2.0 12 # http://www.apache.org/licenses/LICENSE-2.0 26 # * Unit tests - executed using tests/scripts/run-test-suite.pl 27 # * Self-tests - executed using the test suites above 28 # * System tests - executed using tests/ssl-opt.sh 29 # * Interoperability tests - executed using tests/compat.sh 33 # Note the tests self-adapt due to configurations in include/mbedtls/config.h 39 # Usage: basic-build-tests.sh 43 set -eu [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/programs/x509/ |
D | cert_write.c | 5 * SPDX-License-Identifier: Apache-2.0 11 * http://www.apache.org/licenses/LICENSE-2.0 65 " request_file=%%s default: (empty)\n" \ 86 #define DFL_MAX_PATHLEN -1 99 " subject_key=%%s default: subject.key\n" \ 100 " subject_pwd=%%s default: (empty)\n" \ 101 " subject_name=%%s default: CN=Cert,O=mbed TLS,C=UK\n" \ 103 " issuer_crt=%%s default: (empty)\n" \ 106 " issuer_name=%%s default: CN=CA,O=mbed TLS,C=UK\n" \ 112 " issuer_key=%%s default: ca.key\n" \ [all …]
|
/openthread-3.4.0/tools/harness-simulation/posix/ |
D | launch_testbed.py | 51 def if_nametoindex(ifname: str) -> int: 59 def get_ipaddr(ifname: str) -> str: 66 def init_socket(ifname: str, group: str, port: int) -> socket.socket: 72 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 73 s.setsockopt(socket.SOL_SOCKET, socket.SO_BINDTODEVICE, (ifname + '\0').encode('ascii')) 76 s.bind((group, port)) 82 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq) 84 return s 87 def _advertise(s: socket.socket, dst, info): 89 s.sendto(json.dumps(info).encode('utf-8'), dst) [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/library/ |
D | ecdsa.c | 5 * SPDX-License-Identifier: Apache-2.0 11 * http://www.apache.org/licenses/LICENSE-2.0 59 * Sub-context for ecdsa_verify() 71 * Init verify restart sub-context 75 mbedtls_mpi_init( &ctx->u1 ); in ecdsa_restart_ver_init() 76 mbedtls_mpi_init( &ctx->u2 ); in ecdsa_restart_ver_init() 77 ctx->state = ecdsa_ver_init; in ecdsa_restart_ver_init() 81 * Free the components of a verify restart sub-context 88 mbedtls_mpi_free( &ctx->u1 ); in ecdsa_restart_ver_free() 89 mbedtls_mpi_free( &ctx->u2 ); in ecdsa_restart_ver_free() [all …]
|
D | bignum.c | 2 * Multi-precision integer library 5 * SPDX-License-Identifier: Apache-2.0 11 * http://www.apache.org/licenses/LICENSE-2.0 21 * The following sources were referenced in the design of this Multi-precision 24 * [1] Handbook of Applied Cryptography - 1997 27 * [2] Multi-Precision Math 31 * [3] GNU Multi-Precision Arithmetic Library 68 #define MPI_SIZE_T_MAX ( (size_t) -1 ) /* SIZE_T_MAX is not standard */ 90 X->s = 1; in mbedtls_mpi_init() 91 X->n = 0; in mbedtls_mpi_init() [all …]
|
/openthread-3.4.0/src/posix/platform/ |
D | multicast_routing.cpp | 45 #error "Multicast Routing feature is not ported to non-Linux platforms yet." 64 …otLogInfoPlat(OT_FIRST_ARG(__VA_ARGS__) ": %s" OT_REST_ARGS(__VA_ARGS__), otThreadErrorToString(_e… 68 …otLogWarnPlat(OT_FIRST_ARG(__VA_ARGS__) ": %s" OT_REST_ARGS(__VA_ARGS__), otThreadErrorToString(_e… 93 static_cast<MulticastRoutingManager *>(aContext)->HandleBackboneMulticastListenerEvent( in HandleBackboneMulticastListenerEvent() 117 LogResult(OT_ERROR_NONE, "MulticastRoutingManager: %s", __FUNCTION__); in Enable() 126 LogResult(OT_ERROR_NONE, "MulticastRoutingManager: %s", __FUNCTION__); in Disable() 136 …LogResult(OT_ERROR_NONE, "MulticastRoutingManager: %s: %s", __FUNCTION__, aAddress.ToString().AsCS… in Add() 151 …LogResult(error, "MulticastRoutingManager: %s: %s", __FUNCTION__, aAddress.ToString().AsCString()); in Remove() 169 …LogResult(error, "MulticastRoutingManager: %s: address %s %s", __FUNCTION__, aAddress.ToString().A… in UpdateMldReport() 222 VerifyOrDie(mMulticastRouterSock != -1, OT_EXIT_ERROR_ERRNO); in InitMulticastRouterSock() [all …]
|
/openthread-3.4.0/third_party/nlbuild-autotools/repo/examples/ |
D | Makefile-doc.am | 8 # http://www.apache.org/licenses/LICENSE-2.0 20 # in-package, documentation. 30 # Override autotool's default notion of the package version variables. 35 PACKAGE_VERSION = $(shell cat $(top_builddir)/.local-version) 42 $(PACKAGE_TARNAME)-docs 45 $(@PACKAGE_SHORT_LOWER@_docdist_alias)-$(VERSION) 57 all-local: html/index.html 68 -e "s,\@DOXYGEN_USE_DOT\@,$(DOXYGEN_USE_DOT),g" \ 69 -e "s,\@PACKAGE_NAME\@,$(PACKAGE_NAME),g" \ 70 -e "s,\@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g" \ [all …]
|
/openthread-3.4.0/tests/scripts/thread-cert/backbone/ |
D | test_ndproxy.py | 29 # This test verifies PBBR's ND Proxy feature: 55 # ---- -(eth)------------ 57 # PBBR----SBBR HOST 154 # PBBR must send unsolicited NA for PBBR's DUA 156 'icmpv6.nd.na.flag.s == 0').must_next().must_verify(""" 164 # PBBR must send unsolicited NA for SBBR's DUA 166 'icmpv6.nd.na.flag.s == 0').must_next().must_verify(""" 174 # PBBR must send unsolicited NA for ROUTER1's DUA 176 'icmpv6.nd.na.flag.s == 0').must_next().must_verify(""" 184 # HOST should send NS for PBBR's DUA [all …]
|