Home
last modified time | relevance | path

Searched +full:- +full:r (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/openthread-latest/third_party/jlink/SEGGER_RTT_V640/Examples/
DMain_RTT_PrintfTest.c6 * (c) 1995 - 2018 SEGGER Microcontroller GmbH *
12 --------- END-OF-HEADER --------------------------------------------
14 Purpose : Sample application to demonstrate RTT bi-directional functionality
33 SEGGER_RTT_WriteString(0, "SEGGER Real-Time-Terminal Sample\r\n\r\n"); in main()
34 SEGGER_RTT_WriteString(0, "###### Testing SEGGER_printf() ######\r\n"); in main()
36 SEGGER_RTT_printf(0, "printf Test: %%c, 'S' : %c.\r\n", 'S'); in main()
37 SEGGER_RTT_printf(0, "printf Test: %%5c, 'E' : %5c.\r\n", 'E'); in main()
38 SEGGER_RTT_printf(0, "printf Test: %%-5c, 'G' : %-5c.\r\n", 'G'); in main()
39 SEGGER_RTT_printf(0, "printf Test: %%5.3c, 'G' : %-5c.\r\n", 'G'); in main()
40 SEGGER_RTT_printf(0, "printf Test: %%.3c, 'E' : %-5c.\r\n", 'E'); in main()
[all …]
DMain_RTT_MenuApp.c6 * (c) 1995 - 2018 SEGGER Microcontroller GmbH *
11 --------- END-OF-HEADER --------------------------------------------
13 Purpose : Sample application to demonstrate RTT bi-directional functionality
30 int r; in main() local
36 SEGGER_RTT_WriteString(0, "SEGGER Real-Time-Terminal Sample\r\n"); in main()
37 …ng(0, "Press <1> to continue in blocking mode (Application waits if necessary, no data lost)\r\n"); in main()
38 …iteString(0, "Press <2> to continue in non-blocking mode (Application does not wait, data lost if … in main()
40 r = SEGGER_RTT_WaitKey(); in main()
41 } while ((r != '1') && (r != '2')); in main()
42 if (r == '1') { in main()
[all …]
/openthread-latest/src/cli/
Dx509_cert_key.hpp50 * 'openssl ecparam -genkey -out myECKey.pem -name prime256v1 -noout'
52 * 'openssl req -x509 -new -key myECKey.pem -out myX509Cert.pem'
60 "-----BEGIN CERTIFICATE-----\r\n" \
61 "MIIBrTCCAVICBgDRArfDJTAKBggqhkjOPQQDAjBcMQswCQYDVQQGEwJaWTESMBAG\r\n" \
62 "A1UECAwJWW91clN0YXRlMRAwDgYDVQQKDAdZb3VyT3JnMRQwEgYDVQQLDAtZb3Vy\r\n" \
63 "T3JnVW5pdDERMA8GA1UEAwwIVmVuZG9yQ0EwIBcNMTgwNzEzMTIzNzA3WhgPMjI5\r\n" \
64 "MjA0MjYxMjM3MDdaMGExCzAJBgNVBAYTAlpZMRIwEAYDVQQIDAlZb3VyU3RhdGUx\r\n" \
65 "EDAOBgNVBAoMB1lvdXJPcmcxFDASBgNVBAsMC1lvdXJPcmdVbml0MRYwFAYDVQQD\r\n" \
66 "DA1QWEMzLkU3NS0xMDBBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEIUtlV99w\r\n" \
67 "OggiASflg6CVsGMzXMXYrNgQ1piLIybCkrq+YoqJ3mwcbJHWlvxGPxNIQw6i8kzK\r\n" \
[all …]
Dcli_tcp.hpp37 #include "openthread-core-config.h"
59 * Implements a CLI-based TCP example.
73 * Processes a CLI sub-command.
149 …mBenchmarkLinks[(sizeof(mReceiveBufferBytes) + sizeof(mSendBufferBytes) - 1) / sizeof(mSendBufferB…
179 static constexpr const char *sCasPem = "-----BEGIN CERTIFICATE-----\r\n"
180 … "MIIBtDCCATqgAwIBAgIBTTAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJOTDERMA8G\r\n"
181 … "A1UEChMIUG9sYXJTU0wxKTAnBgNVBAMTIFBvbGFyU1NMIFRlc3QgSW50ZXJtZWRp\r\n"
182 … "YXRlIEVDIENBMB4XDTE1MDkwMTE0MDg0M1oXDTI1MDgyOTE0MDg0M1owSjELMAkG\r\n"
183 … "A1UEBhMCVUsxETAPBgNVBAoTCG1iZWQgVExTMSgwJgYDVQQDEx9tYmVkIFRMUyBU\r\n"
184 … "ZXN0IGludGVybWVkaWF0ZSBDQSAzMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\r\n"
[all …]
/openthread-latest/third_party/mbedtls/repo/library/
Dsha1.c2 * FIPS-180-1 compliant SHA-1 implementation
5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 * The SHA-1 standard was published by NIST in 1993.
10 * http://www.itl.nist.gov/fipspubs/fip180-1.htm
48 * SHA-1 context setup
52 ctx->total[0] = 0; in mbedtls_sha1_starts()
53 ctx->total[1] = 0; in mbedtls_sha1_starts()
55 ctx->state[0] = 0x67452301; in mbedtls_sha1_starts()
56 ctx->state[1] = 0xEFCDAB89; in mbedtls_sha1_starts()
57 ctx->state[2] = 0x98BADCFE; in mbedtls_sha1_starts()
[all …]
Decdsa.c5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
11 * SEC1 https://www.secg.org/sec1-v2.pdf
35 * Sub-context for ecdsa_verify()
46 * Init verify restart sub-context
50 mbedtls_mpi_init(&ctx->u1); in ecdsa_restart_ver_init()
51 mbedtls_mpi_init(&ctx->u2); in ecdsa_restart_ver_init()
52 ctx->state = ecdsa_ver_init; in ecdsa_restart_ver_init()
56 * Free the components of a verify restart sub-context
64 mbedtls_mpi_free(&ctx->u1); in ecdsa_restart_ver_free()
65 mbedtls_mpi_free(&ctx->u2); in ecdsa_restart_ver_free()
[all …]
Dbignum_mod.c5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
25 int mbedtls_mpi_mod_residue_setup(mbedtls_mpi_mod_residue *r, in mbedtls_mpi_mod_residue_setup() argument
30 if (p_limbs != N->limbs || !mbedtls_mpi_core_lt_ct(p, N->p, N->limbs)) { in mbedtls_mpi_mod_residue_setup()
34 r->limbs = N->limbs; in mbedtls_mpi_mod_residue_setup()
35 r->p = p; in mbedtls_mpi_mod_residue_setup()
40 void mbedtls_mpi_mod_residue_release(mbedtls_mpi_mod_residue *r) in mbedtls_mpi_mod_residue_release() argument
42 if (r == NULL) { in mbedtls_mpi_mod_residue_release()
46 r->limbs = 0; in mbedtls_mpi_mod_residue_release()
47 r->p = NULL; in mbedtls_mpi_mod_residue_release()
56 N->p = NULL; in mbedtls_mpi_mod_modulus_init()
[all …]
Dbignum_mod.h9 * - **Modulus parameters**: the modulus is passed as a pointer to a structure
13 * named \c N and is usually input-only. Functions which take a parameter
15 * - **Bignum parameters**: Bignums are passed as pointers to an array of
19 * - Bignum parameters called \c A, \c B, ... are inputs and are not
22 * - Bignum parameters called \c X, \c Y, ... are outputs or input-output.
23 * The initial bignum value of output-only parameters is ignored, but
25 * functions (typically constant-flow) require that the limbs in an
27 * - Bignum parameters called \c p are inputs used to set up a modulus or
29 * - \c T is a temporary storage area. The initial content of such a
31 * - Some functions use different names, such as \c r for the residue.
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dcrypto_knowledge.py7 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
17 def short_expression(original: str, level: int = 0) -> str:
18 """Abbreviate the expression, keeping it human-readable.
26 short = re.sub(r'\bPSA_(?:ALG|DH_FAMILY|ECC_FAMILY|KEY_[A-Z]+)_', r'', short)
27 short = re.sub(r' +', r'', short)
29 short = re.sub(r'PUBLIC_KEY\b', r'PUB', short)
30 short = re.sub(r'KEY_PAIR\b', r'PAIR', short)
31 short = re.sub(r'\bBRAINPOOL_P', r'BP', short)
32 short = re.sub(r'\bMONTGOMERY\b', r'MGM', short)
33 short = re.sub(r'AEAD_WITH_SHORTENED_TAG\b', r'AEAD_SHORT', short)
[all …]
Dc_parsing_helper.py9 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 #pylint: disable=too-few-public-methods
28 r'(?P<type>\w[\w\s*]*?)\s*' +
29 r'(?!(?:' + r'|'.join(_KEYWORDS) + r'))(?P<name>\b\w+\b)?' +
30 r'\s*(?P<suffix>\[[^][]*\])?\Z',
34 def normalize_type(cls, typ: str) -> str:
36 typ = re.sub(r'\s+', r' ', typ)
37 typ = re.sub(r'\s*\*', r' *', typ)
40 def __init__(self, decl: str) -> None:
52 #pylint: disable=too-few-public-methods
[all …]
Dpsa_information.py5 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
18 def __init__(self) -> None:
24 ) -> None:
25 # Mbed TLS does not support finite-field DSA.
30 def read_psa_interface(self) -> macro_collector.PSAMacroEnumerator:
45 def psa_want_symbol(name: str) -> str:
52 def finish_family_dependency(dep: str, bits: int) -> str:
59 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep)
61 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]:
76 def automatic_dependencies(*expressions: str) -> List[str]:
[all …]
Dmacro_collector.py5 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
14 def __init__(self, filename: str, line_number: Union[int, str]) -> None:
23 # pylint: disable=invalid-name,too-few-public-methods
33 with open(filename, 'r') as input_file:
40 def __init__(self, filename: str, binary: bool = False) -> None:
46 def __enter__(self) -> 'read_file_lines':
47 self.file = open(self.filename, 'rb' if self.binary else 'r')
50 def __iter__(self) -> Iterator[str]:
56 def __exit__(self, exc_type, exc_value, exc_traceback) -> None:
76 #pylint: disable=too-many-instance-attributes
[all …]
/openthread-latest/tests/scripts/thread-cert/
Dtest_diag.py45 ('diag', 'diagnostics mode is disabled\r\n'),
46 ('diag send 10 100', 'Error 13: InvalidState\r\n'),
47 ('diag start', 'Done\r\n'),
49 ('diag', 'diagnostics mode is enabled\r\n'),
50 ('diag channel 10', 'Error 7: InvalidArgs\r\n'),
51 ('diag channel 11', 'Done\r\n'),
52 ('diag channel', '11\r\n'),
53 ('diag power -10', 'Done\r\n'),
54 ('diag power', '-10\r\n'),
57 'received packets: 0\r\n'
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_util.data1 ECDSA Raw -> DER, 256bit, Success
5 ECDSA Raw -> DER, 256bit, DER buffer too small
9 ECDSA Raw -> DER, 256bit, Null r
13 ECDSA Raw -> DER, 256bit, Null s
17 ECDSA Raw -> DER, 256bit, r with MSb set
21 ECDSA Raw -> DER, 256bit, s with MSb set
25 ECDSA Raw -> DER, 256bit, both r and s with MSb set
29 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data
33 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data with MSb set
37 ECDSA Raw -> DER, 256bit, Invalid raw signature (r 1 byte shorter)
[all …]
Dtest_suite_ecdsa.function15 mbedtls_mpi d, r, s;
21 mbedtls_mpi_init(&d); mbedtls_mpi_init(&r); mbedtls_mpi_init(&s);
30 TEST_ASSERT(mbedtls_ecdsa_sign(&grp, &r, &s, &d, buf, sizeof(buf),
33 TEST_ASSERT(mbedtls_ecdsa_verify(&grp, buf, sizeof(buf), &Q, &r, &s) == 0);
38 mbedtls_mpi_free(&d); mbedtls_mpi_free(&r); mbedtls_mpi_free(&s);
47 mbedtls_mpi d, r, s;
53 mbedtls_mpi_init(&d); mbedtls_mpi_init(&r); mbedtls_mpi_init(&s);
65 TEST_ASSERT(mbedtls_ecdsa_sign(&grp, &r, &s, &d, buf, sizeof(buf),
68 TEST_ASSERT(mbedtls_ecdsa_verify(&grp, buf, sizeof(buf), &Q, &r, &s) == 0);
73 mbedtls_mpi_free(&d); mbedtls_mpi_free(&r); mbedtls_mpi_free(&s);
[all …]
Dtest_suite_bignum_mod.function13 static int test_read_residue(mbedtls_mpi_mod_residue *r,
27 r->p = p;
28 r->limbs = limbs;
33 return mbedtls_mpi_mod_residue_setup(r, m, p, limbs);
68 /* Only test if the constants have been set-up */
82 /* Only test if the constants have been set-up */
252 * with a non-zero final parameter. */
274 TEST_CALLOC(X_raw, limbs - 1);
277 x.limbs = limbs - 1;
286 * manually-written test cases with expected_ret != 0. */
[all …]
Dtest_suite_alignment.function7 #pragma clang diagnostic ignored "-Wunreachable-code"
11 * Convert a string of the form "abcd" (case-insensitive) to a uint64_t.
23 *result |= ((uint64_t) raw[i]) << ((olen - i - 1) * 8);
33 /* Define 64-bit aligned raw byte array */
44 uint64_t r = 0;
47 r = mbedtls_get_unaligned_uint16(x + offset);
50 r = mbedtls_get_unaligned_uint32(x + offset);
53 r = mbedtls_get_unaligned_uint64(x + offset);
77 TEST_EQUAL(r, expected);
89 mbedtls_put_unaligned_uint16(x + offset, r);
[all …]
Dtest_suite_bignum_mod_raw.function64 ret = mbedtls_mpi_mod_raw_read(X, &m, input->x, input->len, endian);
77 if (nb > input->len) {
79 size_t leading_zeroes = nb - input->len;
80 TEST_ASSERT(memcmp(buf + nb - input->len, input->x, input->len) == 0);
85 TEST_ASSERT(memcmp(buf, input->x, input->len) == 0);
86 for (size_t i = input->len; i < nb; i++) {
92 size_t leading_zeroes = input->len - nb;
93 TEST_ASSERT(memcmp(input->x + input->len - nb, buf, nb) == 0);
95 TEST_EQUAL(input->x[i], 0);
98 TEST_ASSERT(memcmp(input->x, buf, nb) == 0);
[all …]
/openthread-latest/tools/otci/tests/
Dtest_otci.py77 subprocess.check_call('rm -rf tmp/', shell=True)
113 logging.info('leader version: %r', leader.version)
114 logging.info('leader thread version: %r', leader.thread_version)
115 logging.info('API version: %r', leader.api_version)
116 logging.info('log level: %r', leader.get_log_level())
123 logging.info("RCP version: %r", leader.get_rcp_version())
137 logging.info('leader eui64 = %r', leader.get_eui64())
138 logging.info('leader extpanid = %r', leader.get_extpanid())
139 logging.info('leader networkkey = %r', leader.get_network_key())
163 leader.set_mode('-')
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/src/
Dtest_certs.h5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 /* *INDENT-OFF* */
11 /* This is taken from test-ca2.crt. */
12 /* BEGIN FILE string macro TEST_CA_CRT_EC_PEM test-ca2.crt */
14 "-----BEGIN CERTIFICATE-----\r\n" \
15 "MIICBzCCAYugAwIBAgIJAMFD4n5iQ8zoMAwGCCqGSM49BAMCBQAwPjELMAkGA1UE\r\n" \
16 "BhMCTkwxETAPBgNVBAoMCFBvbGFyU1NMMRwwGgYDVQQDDBNQb2xhcnNzbCBUZXN0\r\n" \
17 "IEVDIENBMB4XDTE5MDIxMDE0NDQwMFoXDTI5MDIxMDE0NDQwMFowPjELMAkGA1UE\r\n" \
18 "BhMCTkwxETAPBgNVBAoMCFBvbGFyU1NMMRwwGgYDVQQDDBNQb2xhcnNzbCBUZXN0\r\n" \
19 "IEVDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEw9orNEE3WC+HVv78ibopQ0tO\r\n" \
[all …]
/openthread-latest/tests/toranj/cli/
Dtest-024-mle-adv-imax-change.py34 # -------------------------------------------------------------------------------------------------…
41 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
42 print('-' * 120)
45 # -------------------------------------------------------------------------------------------------…
56 # -------------------------------------------------------------------------------------------------…
59 leader.form('mle-adv-imax')
79 r = routers[num] variable
81 r.join(leader)
82 verify(r.get_state() == 'router')
92 r = routers[2] variable
[all …]
/openthread-latest/script/
Dcheck-posix-pty30 set -e
31 set -x
44 sudo killall ot-ctl || true
45 sudo killall ot-daemon || true
46 sudo killall ot-cli || true
47 sudo killall ot-rcp || true
55 if [[ "$(head -n2 "$SOCAT_OUTPUT" | wc -l | tr -d ' ')" == 2 ]]; then
56 RADIO_PTY=$(head -n1 "$SOCAT_OUTPUT" | grep -o '/dev/.\+')
57 CORE_PTY=$(head -n2 "$SOCAT_OUTPUT" | tail -n1 | grep -o '/dev/.\+')
67 if grep -q leader "$OT_OUTPUT"; then
[all …]
/openthread-latest/tools/harness-simulation/posix/
Dinstall.sh30 set -euxo pipefail
45 sudo apt install -y "${PACKAGES[@]}"
47 pip3 install -r "${POSIX_DIR}/requirements.txt"
48 python3 -m grpc_tools.protoc -I"${SNIFFER_DIR}" --python_out="${SNIFFER_DIR}" --grpc_python_out="${…
50 CONFIG_NAME=${1:-"${POSIX_DIR}/config.yml"}
52 CONFIG=$(python3 -c 'import json, sys, yaml; print(json.dumps(yaml.safe_load(open(sys.argv[1]))))' …
54 MAX_NETWORK_SIZE=$(jq -r '.ot_build.max_number' <<<"$CONFIG")
60 target="ot-cli-ftd"
61 build_dir=$(jq -r '.subpath' <<<"$1")
62 cflags=$(jq -r '.cflags | join(" ")' <<<"$1")
[all …]
/openthread-latest/examples/platforms/simulation/
Dtrel.c2 * Copyright (c) 2019-21, The OpenThread Authors.
29 #include "platform-simulation.h"
63 …Addr; // Destination (when TREL_DATA_MESSAGE), or peer addr (when DNS-SD service)
89 while (aLength--) in dumpBuffer()
110 str = "add-service"; in messageTypeToString()
113 str = "remove-service"; in messageTypeToString()
123 return (uint16_t)(&aMessage->mData[aMessage->mDataLength] - (const uint8_t *)aMessage); in getMessageSize()
131 fprintf(stderr, "\r\n[trel-sim] Sending message (num:%d, type:%s, port:%u)\r\n", i, in sendPendingTxMessages()
147 message->mType = TREL_DNSSD_BROWSE_MESSAGE; in sendBrowseMessage()
148 message->mDataLength = 0; in sendBrowseMessage()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dcheck_names.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 are consistent with the house style and are also self-consistent. It only runs
12 a comprehensive "run-all" function (comprehensive_parse() and perform_checks())
23 - All exported and available symbols in the library object files, are explicitly
25 - All macros, constants, and identifiers (function names, struct names, etc)
27 - Typo checking: All words that begin with MBED|PSA exist as macros or constants.
47 import scripts_path # pylint: disable=unused-import
53 PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA)_[0-9A-Z_]*[0-9A-Z]$"
54 INTERNAL_MACRO_PATTERN = r"^[0-9A-Za-z_]*[0-9A-Z]$"
56 IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$"
[all …]

12345678910>>...16