Home
last modified time | relevance | path

Searched +full:thread +full:- +full:cert (Results 1 – 24 of 24) sorted by relevance

/openthread-latest/.github/workflows/
Dsimulation-1.4.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
43 permissions: # added using https://github.com/step-security/secure-workflows
48 thread-1-4:
49 name: thread-1-4-${{ matrix.compiler.c }}-${{ matrix.arch }}
50 runs-on: ubuntu-22.04
52 CFLAGS: -${{ matrix.arch }}
[all …]
Dsimulation-1.1.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 packet-verification:
49 runs-on: ubuntu-24.04
57 - name: Harden Runner
58 uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
60 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
[all …]
Dotbr.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 backbone-router:
49 runs-on: ubuntu-22.04
65 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
68 - name: Build OTBR Docker
73 - name: Bootstrap
[all …]
Dposix.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 expects-linux:
49 runs-on: ubuntu-22.04
51 CFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15
52 CXXFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15
54 - name: Harden Runner
[all …]
Dotci.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
43 permissions: # added using https://github.com/step-security/secure-workflows
48 cli-sim:
49 name: cli-sim VIRTUAL_TIME=${{ matrix.virtual_time }}
50 runs-on: ubuntu-24.04
52 fail-fast: false
[all …]
Dtoranj.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 toranj-ncp:
49 name: toranj-ncp-${{ matrix.TORANJ_RADIO }}
50 runs-on: ubuntu-22.04
52 fail-fast: false
61 - name: Harden Runner
[all …]
/openthread-latest/script/
Dtest33 set -euo pipefail
35 OT_BUILDDIR="${OT_BUILDDIR:-${PWD}/build}"
53 OT_NODE_TYPE="${OT_NODE_TYPE:-cli}"
56 OT_NATIVE_IP="${OT_NATIVE_IP:-0}"
59 THREAD_VERSION="${THREAD_VERSION:-1.4}"
62 INTER_OP="${INTER_OP:-0}"
65 VERBOSE="${VERBOSE:-0}"
68 BORDER_ROUTING="${BORDER_ROUTING:-1}"
71 NAT64="${NAT64:-0}"
74 NAT64_SERVICE="${NAT64_SERVICE:-openthread}"
[all …]
/openthread-latest/tests/toranj/
DREADME_CLI.md1 # `toranj-cli`
3 `toranj-cli` is a test framework for OpenThread using its CLI interface.
7 - It is developed in Python.
8 - It can be used to simulate multiple nodes forming complex network topologies.
9 - It allows testing of network interactions between many nodes.
10 - `toranj` in CLI mode runs `ot-cli-ftd` on simulation platform (real-time).
21 -- OpenThread Source Directory: /Users/abtink/GitHub/openthread
22 -- OpenThread CMake build type: Debug
23 -- Package Name: OPENTHREAD
28-cli` tests are included in `tests/toranj/cli` folder. Each test-case has its own script following…
[all …]
/openthread-latest/tools/tcat_ble_client/
DREADME.md5 … is a Python implementation of Bluetooth-Based Thread Commissioning (BBTC) client, based on Thread
9 If you don't have the poetry module installed (check with `poetry --version`), install it first usi…
12 python3 -m pip install poetry
26 poetry run python3 bbtc.py --help
32 poetry run python3 bbtc.py {<device specifier> | --scan}
37 - `--name <NAME>` - name advertised by the device
38 - `--mac <ADDRESS>` - physical address of the device's Bluetooth interface
40 Using the `--scan` option will scan for every TCAT device and display them in a list, to allow sele…
45 poetry run python3 bbtc.py --name 'Thread BLE'
52 …rder to use a different TCAT Commissioner certificate (identity), use the `--cert_path` argument, …
[all …]
DGENERATING_CERTIFICATES.md3 ---
9 … OID (Object Identifier), is marked as "Critical" or "Non-Critical", and includes the extension-sp…
13 The directory `auth-generate` contains example scripts and a Makefile to generate TCAT Commissioner…
18 cd auth-generate
22 …ities. Each subdirectory can be used as a value for the BBTC Commissioner `--cert_path` argument, …
24-generate/ca` contains an example CA certificate and private key (for signing). Other CAs can be a…
28 Thread TCAT uses Elliptic Curve Cryptography (ECC), so we use the `ecparam` `openssl` argument to g…
35 openssl ecparam -genkey -name prime256v1 -out ca_key.pem
41 openssl req -new -sha256 -key ca_key.pem -out ca.csr
47 openssl req -x509 -sha256 -days 365 -key ca_key.pem -in ca.csr -out ca_cert.pem
[all …]
/openthread-latest/tests/scripts/thread-cert/
DREADME.md17 ./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
41 - `list` - list available nodes.
42 - `exit` - end inspecting, continue running test case.
43 - \<number\> - select the node with id \<number\>. This will result in entering `>` mode.
49 - `exit` - go back to `#` mode.
Drun_cert_suite.py45 _BACKBONE_TESTS_DIR = 'tests/scripts/thread-cert/backbone'
53 '%(asctime)s - %(levelname)s - %(message)s')
100 bash(f'docker rm -f $(docker ps -a -q -f "name=otbr_") 2>/dev/null || true')
101 bash(f'docker network rm $(docker network ls -q -f "name=backbone") 2>/dev/null || true')
117 parser.add_argument('--multiply', type=int, default=1, help='run each test for multiple times')
118 …parser.add_argument('--run-directory', type=str, default=None, help='run each test in the specifie…
146 def allocate(self) -> int:
155 print("---------------------------------------")
157 print("---------------------------------------")
Dnode.py82 … self._socat_proc = subprocess.Popen(['socat', '-d', '-d', 'pty,raw,echo=0', 'pty,raw,echo=0'],
103 # We expect ot-rcp not to quit in 1 second.
106 raise Exception(f"ot-rcp {nodeid} exited unexpectedly!")
108 def _get_ot_rcp_path(self) -> str:
110 path = '%s/examples/apps/ncp/ot-rcp' % srcdir
111 logging.info("ot-rcp path: %s", path)
116 subprocess.check_call(f"docker rm -f {self._docker_name} || true", shell=True)
118 dns = ['--dns=127.0.0.1'] if INFRA_DNS64 == 1 else ['--dns=8.8.8.8']
119 nat64_prefix = ['--nat64-prefix', '2001:db8:1:ffff::/96'] if INFRA_DNS64 == 1 else []
123 '--rm',
[all …]
/openthread-latest/tests/scripts/thread-cert/border_router/
DREADME.md14 git clean -xfd
17 LOCAL_OTBR_DIR=$HOME/ot-br-posix ./script/test build_otbr_docker
23 TEST_CASE=./tests/scripts/thread-cert/border_router/test_advertising_proxy.py
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dverify.py37 THREAD_CERT_DIR = './tests/scripts/thread-cert'
45 '%(asctime)s - %(levelname)s - %(message)s')
/openthread-latest/tests/unit/
Dtest_tcat.cpp29 #include "openthread-core-config.h"
39 "-----BEGIN CERTIFICATE-----\n" \
51 "-----END CERTIFICATE-----\n"
54 "-----BEGIN EC PRIVATE KEY-----\n" \
58 "-----END EC PRIVATE KEY-----\n"
61 "-----BEGIN CERTIFICATE-----\n" \
74 "-----END CERTIFICATE-----\n"
105 static_cast<TestBleSecure *>(aContext)->HandleBleSecureConnect(aConnected, aBleConnectionOpen); in HandleBleSecureConnect()
146 …// Verify that Thread-attribute parsing isn't available yet when not connected as client or server. in TestTcat()
166 // Once in TLS client connecting state, the below cert eval functions are available. in TestTcat()
[all …]
/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_pthread_server.c6 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
56 "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \
91 pthread_t thread; member
101 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection()
114 if ((ret = mbedtls_ssl_setup(&ssl, thread_info->config)) != 0) { in handle_ssl_connection()
115 mbedtls_printf(" [ #%ld ] failed: mbedtls_ssl_setup returned -0x%04x\n", in handle_ssl_connection()
116 thread_id, (unsigned int) -ret); in handle_ssl_connection()
129 mbedtls_printf(" [ #%ld ] failed: mbedtls_ssl_handshake returned -0x%04x\n", in handle_ssl_connection()
130 thread_id, (unsigned int) -ret); in handle_ssl_connection()
143 len = sizeof(buf) - 1; in handle_ssl_connection()
[all …]
Dssl_fork_server.c5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
55 "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \
125 mbedtls_printf(" . Loading the server cert. and key..."); in main()
212 * 3.5. Forking server thread in main()
293 len = sizeof(buf) - 1; in main()
/openthread-latest/tools/harness-thci/
DOpenThread_BR.py29 >> Thread Host Controller Interface
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))
328 self.bash('ip -6 addr del 910b::1 dev %s || true' % self.backboneNetif)
329 self.bash('ip -6 addr del fd00:7d03:7d03:7d03::1 dev %s || true' % self.backboneNetif)
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/
Dssl-opt.sh3 # ssl-opt.sh
6 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 set -u
25 ulimit -f 20971520
38 : ${GNUTLS_CLI:=gnutls-cli}
39 : ${GNUTLS_SERV:=gnutls-serv}
54 if git diff --quiet ../include/mbedtls/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 _)"}
65 O_SRV="$OPENSSL s_server -www -cert data_files/server5.crt -key data_files/server5.key"
67 G_SRV="$GNUTLS_SERV --x509certfile data_files/server5.crt --x509keyfile data_files/server5.key"
[all …]
/openthread-latest/src/core/thread/
Dnetwork_data_notifier.cpp120 // - `kErrorNone` when a stale child entry was found and successfully in RemoveStaleChildEntries()
122 // - `kErrorNoBufs` if could not allocate message to send message. in RemoveStaleChildEntries()
123 // - `kErrorNotFound` if no stale child entries were found. in RemoveStaleChildEntries()
198 tlv.SetLength(aNetworkData->GetLength()); in SendServerDataNotification()
199 SuccessOrExit(error = message->Append(tlv)); in SendServerDataNotification()
200 … SuccessOrExit(error = message->AppendBytes(aNetworkData->GetBytes(), aNetworkData->GetLength())); in SendServerDataNotification()
257 static_cast<Notifier *>(aContext)->HandleCoapResponse(aResult); in HandleCoapResponse()
300 // cert tests to disallow device to become router. in IsEligibleForRouterRoleUpgradeAsBorderRouter()
327 // older version of Thread stack which does not support in ScheduleRouterRoleUpgradeIfEligible()
350 mRouterRoleUpgradeTimeout--; in HandleTimeTick()
/openthread-latest/third_party/mbedtls/repo/
DChangeLog3 = Mbed TLS 3.6.0 branch released 2024-03-28
42 * Support Armv8-A Crypto Extension acceleration for SHA-256
43 when compiling for Thumb (T32) or 32-bit Arm (A32).
44 * AES-NI is now supported in Windows builds with clang and clang-cl.
50 This affects both the low-level modules and the high-level APIs
53 * Support use of Armv8-A Cryptographic Extensions for hardware acclerated
54 AES when compiling for Thumb (T32) or 32-bit Arm (A32).
56 library without the corresponding built-in implementation. Generally
58 or they'll both be built in. However, for CCM and GCM the built-in
61 docs/driver-only-builds.md for full details and current limitations.
[all …]
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dssl.h8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
47 #define MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS -0x7000
49 #define MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE -0x7080
51 #define MBEDTLS_ERR_SSL_BAD_INPUT_DATA -0x7100
53 #define MBEDTLS_ERR_SSL_INVALID_MAC -0x7180
55 #define MBEDTLS_ERR_SSL_INVALID_RECORD -0x7200
57 #define MBEDTLS_ERR_SSL_CONN_EOF -0x7280
59 #define MBEDTLS_ERR_SSL_DECODE_ERROR -0x7300
62 #define MBEDTLS_ERR_SSL_NO_RNG -0x7400
64 #define MBEDTLS_ERR_SSL_NO_CLIENT_CERTIFICATE -0x7480
[all …]
/openthread-latest/src/core/border_router/
Drouting_manager.cpp31 * This file includes implementation for the RA-based routing management.
85 LogInfo("Initializing - InfraIfIndex:%lu", ToUlong(aInfraIfIndex)); in Init()
96 …LogInfo("Reinitializing - InfraIfIndex:%lu -> %lu", ToUlong(mInfraIf.GetIfIndex()), ToUlong(aInfra… in Init()
398 switch (icmp6Header->GetType()) in HandleReceived()
477 // If SRP server uses the auto-enable mode, we enable the SRP in EvaluateRoutingPolicy()
493 // the OMR and on-link prefixes are determined, advertised in in IsInitialPolicyEvaluationDone()
495 // and published in the Thread Network Data. in IsInitialPolicyEvaluationDone()
550 uint32_t duration = evaluateTime - now; in ScheduleRoutingPolicyEvaluation()
597 // Append PIO for local on-link prefix if is either being in SendRouterAdvertisement()
636 DumpDebg("[BR-CERT] direction=send | type=RA |", packet.GetBytes(), packet.GetLength()); in SendRouterAdvertisement()
[all …]