/openthread-latest/.github/workflows/ |
D | size.yml | 29 name: Size 33 branches-ignore: 34 - 'dependabot/**' 37 - 'main' 40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent… 41 cancel-in-progress: true 48 size-report: 49 runs-on: ubuntu-24.04 51 - name: Harden Runner 52 uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 [all …]
|
/openthread-latest/include/openthread/ |
D | ping_sender.h | 49 * @addtogroup api-ping-sender 64 …uint16_t mSize; ///< Data size (number of bytes) in reply (excluding IPv6 and ICMP6 … 86 * @param[in] aContext A pointer to application-specific context. 91 * Pointer type specifies the callback to report the ping statistics. 95 * @param[in] aContext A pointer to application-specific context. 106 …otPingSenderReplyCallback mReplyCallback; ///< Callback function to report replies (can be NULL if… 108 … mStatisticsCallback; ///< Callback function to report statistics (can be NULL if not needed). 109 void *mCallbackContext; ///< A pointer to the callback application-specific context. 110 …uint16_t mSize; ///< Data size (# of bytes) excludes IPv6/ICMPv6 header. Zero for de…
|
D | dns_client.h | 2 * Copyright (c) 2017-2021, The OpenThread Authors. 32 * This file defines the top-level DNS functions for the OpenThread library. 47 * @addtogroup api-dns 148 …* In a non-NULL @p aConfig, caller can choose to leave some of the fields in `otDnsQueryConfig` in… 154 …* set or specify it. This behavior requires SRP client and its auto-start feature to be enabled. S… 180 * @param[in] aResponse A pointer to the response (it is always non-NULL). 181 * @param[in] aContext A pointer to application-specific context. 185 * - OT_ERROR_NONE A response was received successfully. 186 * - OT_ERROR_ABORT A DNS transaction was aborted by stack. 187 * - OT_ERROR_RESPONSE_TIMEOUT No DNS response has been received within timeout. [all …]
|
D | commissioner.h | 49 * @addtogroup api-commissioner 79 #define OT_COMMISSIONING_PASSPHRASE_MIN_SIZE 6 ///< Minimum size of the Commissioning Passphrase 80 #define OT_COMMISSIONING_PASSPHRASE_MAX_SIZE 255 ///< Maximum size of the Commissioning Passphrase 82 #define OT_PROVISIONING_URL_MAX_SIZE 64 ///< Max size (number of chars) in Provisioning URL string … 109 …bool mHasExtraTlv : 1; ///< TRUE if the Dataset contains any extra unknown sub-TLV, FALSE o… 119 …char m8[OT_JOINER_MAX_PSKD_LENGTH + 1]; ///< Char string array (must be null terminated - +1 is fo… 128 …OT_JOINER_INFO_TYPE_EUI64 = 1, ///< Joiner EUI-64 is specified (`mSharedId.mEui64` in `otJoine… 151 * @param[in] aContext A pointer to application-specific context. 161 * @param[in] aContext A pointer to application-specific context. 174 * @param[in] aCallbackContext A pointer to application-specific context. [all …]
|
/openthread-latest/script/ |
D | check-size | 30 set -euo pipefail 32 OT_TMP_DIR=/tmp/ot-size-report 35 OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)} 38 OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)" 47 OT_REPORTER="${OT_SIZE_REPORTER-}" 52 if arm-none-eabi-gcc --version | grep -q 'Arm Embedded Processors 7'; then 57 …wget --tries 4 --no-check-certificate --quiet https://developer.arm.com/-/media/Files/downloads/gn… 58 && tar xjf gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2) 59 export PATH=/tmp/gcc-arm-none-eabi-7-2018-q2-update/bin:$PATH 61 arm-none-eabi-gcc --version [all …]
|
D | bootstrap | 34 set -euxo pipefail 40 # add clang-format and clang-tidy for pretty 41 …sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 || echo 'WARNING: co… 44 …python3 -m pip install yapf==0.31.0 || echo 'WARNING: could not install yapf, which is useful if y… 46 # add mdv for local size report 47 …python3 -m pip install mdv || echo 'WARNING: could not install mdv, which is required to post mark… 50 …command -v shfmt || sudo apt-get install shfmt || echo 'WARNING: could not install shfmt, which is… 57 # apt-get update and install dependencies 58 sudo apt-get update 59 sudo apt-get --no-install-recommends install -y g++ lsb-release cmake ninja-build shellcheck [all …]
|
/openthread-latest/src/core/net/ |
D | dns_client.hpp | 2 * Copyright (c) 2017-2021, The OpenThread Authors. 32 #include "openthread-core-config.h" 346 * @param[in] aNameBufferSize The size of @p aNameBuffer. 404 * @param[in] aNameBufferSize The size of @p aNameBuffer. 427 * @param[in] aLabelBufferSize The size of @p aLabelBuffer. 445 * - If no matching SRV record is found, `kErrorNotFound` is returned. 446 * - If a matching SRV record is found, @p aServiceInfo is updated returning `kErrorNone`. 447 * - If no matching TXT record is found, `mTxtDataSize` in @p aServiceInfo is set to zero. 448 … * - If no matching AAAA record is found, `mHostAddress is set to all zero or unspecified address. 449 …* - If there are multiple AAAA records for the host name `mHostAddress` is set to the first one. T… [all …]
|
D | mdns.hpp | 32 #include "openthread-core-config.h" 207 …* - The `mHostName` field specifies the host name to register (e.g., "myhost"). MUST NOT contain t… 208 …* - The `mAddresses` is array of IPv6 addresses to register with the host. `mAddressesLength` prov… 210 …* - The `mAddresses` array can be empty with zero `mAddressesLength`. In this case, mDNS will trea… 212 …* - The `mTtl` specifies the TTL if non-zero. If zero, the mDNS core will choose a default TTL to … 221 * - `kErrorNone` indicates registration was successful 222 …* - `kErrorDuplicated` indicates a name conflict, i.e., the name is already claimed by another mDN… 230 …* @param[in] aCallback The callback function pointer to report the outcome (can be `nullptr` i… 232 …* @retval kErrorNone Successfully started registration. @p aCallback will report the outc… 242 …* - The `mHostName` field specifies the host name to unregister (e.g., "myhost"). MUST NOT contain… [all …]
|
/openthread-latest/src/core/config/ |
D | dns_dso.h | 31 * This file includes compile-time configurations for the DNS Stateful Operations (DSO). 38 * @addtogroup config-dns-dso 87 * This is intended for generating code size report only and should not be used otherwise.
|
D | dnssd_server.h | 31 * This file includes compile-time configurations for the DNS-SD Server. 38 * @addtogroup config-dnssd-server 41 * This module includes configuration variables for the DNS-SD server. 49 * Define to 1 to enable DNS-SD Server support. 58 * Define the DNS-SD Server port. 67 * Define to 1 to bind DNS-SD server to unspecified interface, 0 to bind to Thread interface. 76 …* Specifies the default wait time that DNS-SD Server waits for a query response (e.g. from Discove… 85 * Define to 1 to enable DNS-SD Discovery Proxy support. 106 * This is intended for generating code size report only and should not be used otherwise.
|
D | mdns.h | 31 * This file includes compile-time configurations for the Multicast DNS (mDNS). 38 * @addtogroup config-mdns 80 …* Define to 1 for mDNS module to be automatically enabled/disabled on the same infra-if used for b… 81 * based on infra-if state. 92 …stion. The `otMdnsSetQuestionUnicastAllowed()` can be used to change the default value at run-time. 103 * This is intended for generating code size report only and should not be used otherwise.
|
D | border_routing.h | 2 * Copyright (c) 2021-22, The OpenThread Authors. 31 * This file includes compile-time configurations for Border Routing Manager. 38 * @addtogroup config-border-routing 61 * discovered routers and the advertised on-link prefixes on infra link. 63 * When disabled pre-allocated pools are used instead where max number of entries are specified by 77 …* Router Advertisements of peer BRs. These entries are disregarded in decision-making (e.g., selec… 78 * on-link prefix or determining which route to publish in the Thread Network Data). 93 …* source address matches a BR-generated ULA OMR prefix (with low preference), and the destination … 96 …* For example, this situation can occur when a local, non-infrastructure-derived ULA OMR prefix is… 102 …* Destination Unreachable - No Route" messages. This reachability function will only generate "ICM… [all …]
|
/openthread-latest/src/ncp/ |
D | ncp_base.hpp | 36 #include "openthread-core-config.h" 73 // In case of host<->ncp<->rcp configuration, notifications shall be 89 kSpinelCmdHeaderSize = 2, ///< Size of spinel command header (in bytes). 90 kSpinelPropIdSize = 3, ///< Size of spinel property identifier (in bytes). 171 * If aDataLen is non-zero, this param MUST NOT be nullptr. 238 …* @note Per RFC 4861, the implementation should send the message with IPv6 link-local source addr… 251 * Registers or updates a host on the infrastructure network's DNS-SD module (on host). 255 …* @param[in] aCallback The callback function pointer to report the outcome (may be NULL if no … 262 * Unregisters a host on the infrastructure network's DNS-SD module (on host). 266 …* @param[in] aCallback The callback function pointer to report the outcome (may be NULL if no … [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/include/test/ |
D | helpers.h | 10 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 23 #if defined(__SANITIZE_ADDRESS__) /* gcc -fsanitize=address */ 26 #if defined(__SANITIZE_THREAD__) /* gcc -fsanitize-thread */ 31 # if __has_feature(address_sanitizer) /* clang -fsanitize=address */ 34 # if __has_feature(memory_sanitizer) /* clang -fsanitize=memory */ 37 # if __has_feature(thread_sanitizer) /* clang -fsanitize=thread */ 120 * function concurrently - whilst it is entirely thread safe, 136 * \param line Buffer of minimum size \c MBEDTLS_TEST_LINE_LENGTH, 144 * \param line Buffer of minimum size \c MBEDTLS_TEST_LINE_LENGTH, 184 * 0 (`"-"`, `"-0"`, `"-00"`, etc., constructing a result with [all …]
|
/openthread-latest/include/openthread/platform/ |
D | trel.h | 32 …udes the platform abstraction for Thread Radio Encapsulation Link (TREL) using DNS-SD and UDP/IPv6. 49 * @addtogroup plat-trel 52 …odule includes the platform abstraction for Thread Radio Encapsulation Link (TREL) using DNS-SD and 68 …* 2) Platform layer MUST initiate an ongoing DNS-SD browse on the service name "_trel._udp" within… 72 … guaranteed, however. When a TREL service instance is discovered, a new ongoing DNS-SD query for an 89 …* After this call, the platform layer MUST stop DNS-SD browse on the service name "_trel._udp", st… 90 …* TREL DNS-SD service (from `otPlatTrelRegisterService()`) and MUST close the UDP socket used to r… 97 * Represents a TREL peer info discovered using DNS-SD browse on the service name "_trel._udp". 104 * - TRUE indicates that peer is removed. 105 * - FALSE indicates that it is a new entry or an update to an existing entry. [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/psa/ |
D | key_ladder_demo.c | 20 * - "generate": generate a random master key. 21 * - "wrap": derive a wrapping key from the last intermediate key, 22 * and use that key to encrypt-and-authenticate some data. 23 * - "unwrap": derive a wrapping key from the last intermediate key, 24 * and use that key to decrypt-and-authenticate some 26 * - "save": save the last intermediate key so that it can be reused as 35 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 99 /* To report operational errors in this program, use an error code that is 114 /* Size of the key derivation keys (applies both to the master key and 121 /* Type and size of the key used to wrap data. */ [all …]
|
/openthread-latest/third_party/mbedtls/repo/docs/proposed/ |
D | psa-driver-interface.md | 4 …tography API specification](https://armmbed.github.io/mbed-crypto/psa/#application-programming-int… 8 …S, see our [PSA Cryptoprocessor driver development examples](../psa-driver-example-and-guide.html). 16 …icies, and dispatches cryptographic operations either to the applicable driver or to built-in code. 24 …size, etc.), it is used instead of the default software implementation. Transparent drivers can al… 25 …tc. An opaque driver is invoked for the specific [key location](#lifetimes-and-locations) that the… 29 The present specification was designed to fulfill the following high-level requirements. 35 …erate on keys in cleartext; cryptoprocessors that can wrap keys with a built-in keys but not store… 37 …does not involve any platform-specific consideration. Driver calls are simple C function calls. In… 51 …is JSON file is specified in the section [“Driver description syntax”](#driver-description-syntax). 57 …ow drivers to be provided as source files and compiled with the core instead of being pre-compiled. [all …]
|
/openthread-latest/third_party/mbedtls/repo/include/psa/ |
D | crypto_types.h | 18 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 25 * Include the build-time configuration information header. Here, we do not 28 * TF-PSA-Crypto repository which has a different build system and 89 * Values defined by this standard will never be in the range 0x80-0xff. 99 /** The type of PSA Diffie-Hellman group family identifiers. 104 * The group identifier is required to create a Diffie-Hellman key using the 108 * Values defined by this standard will never be in the range 0x80-0xff. 148 * - Bits 0-7 (#PSA_KEY_LIFETIME_GET_PERSISTENCE(\c lifetime)): 153 * - Bits 8-31 (#PSA_KEY_LIFETIME_GET_LOCATION(\c lifetime)): 161 * integration-specific device management event occurs (for example, [all …]
|
D | crypto_values.h | 24 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 50 * it might change the spacing to something that is not PSA-compliant 53 * *INDENT-OFF* 64 #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132) 73 #define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134) 86 #define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133) 91 * description to determine a sufficient buffer size. 97 * to the parameters that determine the necessary output buffer size. */ 98 #define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138) 104 #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139) [all …]
|
/openthread-latest/third_party/mbedtls/repo/library/ |
D | psa_crypto_rsa.c | 6 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 37 /* Mbed TLS doesn't support non-byte-aligned key sizes (i.e. key sizes 40 * way to return the exact bit size of a key. 41 * To keep things simple, reject non-byte-aligned key sizes. */ 82 /* The size of an RSA key doesn't have to be a multiple of 8. Mbed TLS in mbedtls_psa_rsa_load_representation() 83 * supports non-byte-aligned key sizes, but not well. For example, in mbedtls_psa_rsa_load_representation() 84 * mbedtls_rsa_get_len() returns the key size in bytes, not in bits. */ in mbedtls_psa_rsa_load_representation() 119 status = mbedtls_psa_rsa_load_representation(attributes->type, in mbedtls_psa_rsa_import_key() 129 /* Re-export the data to PSA export format, such that we can store export in mbedtls_psa_rsa_import_key() 131 * the smallest representation that's allowed as input, so a straight-up in mbedtls_psa_rsa_import_key() [all …]
|
D | psa_crypto_slot_management.c | 6 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 85 * ( key_id - #PSA_KEY_ID_VOLATILE_MIN ). 90 * If multi-threading is enabled, the caller must hold the 115 slot = &global_data.key_slots[key_id - PSA_KEY_ID_VOLATILE_MIN]; in psa_get_and_lock_key_slot_in_memory() 119 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory() 120 (mbedtls_svc_key_id_equal(key, slot->attr.id))) { in psa_get_and_lock_key_slot_in_memory() 133 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory() 134 (mbedtls_svc_key_id_equal(key, slot->attr.id))) { in psa_get_and_lock_key_slot_in_memory() 155 * guarantee that the key slots are initialized to all-zero, which in psa_initialize_key_slots() 169 slot->registered_readers = 1; in psa_wipe_all_key_slots() [all …]
|
D | pkcs12.c | 5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 …* http://www.rsa.com/rsalabs/pkcs/files/h11301-wp-pkcs-12v1-1-personal-information-exchange-synta… 11 * ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12v1-1.asn 40 unsigned char **p = ¶ms->p; in pkcs12_parse_pbe_params() 41 const unsigned char *end = params->p + params->len; in pkcs12_parse_pbe_params() 44 * pkcs-12PbeParams ::= SEQUENCE { in pkcs12_parse_pbe_params() 50 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs12_parse_pbe_params() 55 if ((ret = mbedtls_asn1_get_tag(p, end, &salt->len, MBEDTLS_ASN1_OCTET_STRING)) != 0) { in pkcs12_parse_pbe_params() 59 salt->p = *p; in pkcs12_parse_pbe_params() 60 *p += salt->len; in pkcs12_parse_pbe_params() [all …]
|
D | pkcs5.c | 9 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 46 unsigned char *p = params->p; in pkcs5_parse_pbkdf2_params() 47 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params() 49 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs5_parse_pbkdf2_params() 54 * PBKDF2-params ::= SEQUENCE { in pkcs5_parse_pbkdf2_params() 58 * prf AlgorithmIdentifier DEFAULT algid-hmacWithSHA1 in pkcs5_parse_pbkdf2_params() 62 if ((ret = mbedtls_asn1_get_tag(&p, end, &salt->len, in pkcs5_parse_pbkdf2_params() 67 salt->p = p; in pkcs5_parse_pbkdf2_params() 68 p += salt->len; in pkcs5_parse_pbkdf2_params() 122 * for the output size actually being correct. in mbedtls_pkcs5_pbes2() [all …]
|
/openthread-latest/src/core/thread/ |
D | mesh_forwarder.hpp | 37 #include "openthread-core-config.h" 70 * @addtogroup core-mesh-forwarding 79 * Represents link-specific information for messages received from the Thread radio. 195 * @retval kErrorInvalidState Device is not in Rx-Off-When-Idle mode or it has no parent. 202 * Is called by the address resolver when an EID-to-RLOC mapping has been resolved. 210 * Indicates whether or not rx-on-when-idle mode is enabled. 212 * @retval TRUE The rx-on-when-idle mode is enabled. 213 * @retval FALSE The rx-on-when-idle-mode is disabled. 218 * Sets the rx-on-when-idle mode 230 * The `aChild` can be either sleepy or non-sleepy. [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_asn1parse.function | 12 /* Used internally to report an error that indicates a bug in a parsing function. */ 51 int val = -257; 76 int val = -257; 143 if (buffer_size > input->len) { 144 memcpy(buf, input->x, input->len); 145 memset(buf + input->len, 'A', buffer_size - input->len); 147 memcpy(buf, input->x, buffer_size); 155 if (buffer_size >= input->len + actual_length) { 157 TEST_ASSERT(p == buf + input->len); 187 const char *rest = state->description; [all …]
|