Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 110) sorted by relevance

12345

/openthread-3.7.0/third_party/mbedtls/repo/library/
Dbase64.c62 const unsigned char *src, size_t slen) in mbedtls_base64_encode() argument
90 C1 = *src++; in mbedtls_base64_encode()
91 C2 = *src++; in mbedtls_base64_encode()
92 C3 = *src++; in mbedtls_base64_encode()
103 C1 = *src++; in mbedtls_base64_encode()
104 C2 = ((i + 1) < slen) ? *src++ : 0; in mbedtls_base64_encode()
129 const unsigned char *src, size_t slen) in mbedtls_base64_decode() argument
143 while (i < slen && src[i] == ' ') { in mbedtls_base64_decode()
154 src[i] == '\r' && src[i + 1] == '\n') { in mbedtls_base64_decode()
158 if (src[i] == '\n') { in mbedtls_base64_decode()
[all …]
Dmd.c335 const mbedtls_md_context_t *src) in mbedtls_md_clone() argument
338 src == NULL || src->md_info == NULL || in mbedtls_md_clone()
339 dst->md_info != src->md_info) { in mbedtls_md_clone()
344 if (src->engine != dst->engine) { in mbedtls_md_clone()
352 if (src->engine == MBEDTLS_MD_ENGINE_PSA) { in mbedtls_md_clone()
353 psa_status_t status = psa_hash_clone(src->md_ctx, dst->md_ctx); in mbedtls_md_clone()
358 switch (src->md_info->type) { in mbedtls_md_clone()
361 mbedtls_md5_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
366 mbedtls_ripemd160_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
371 mbedtls_sha1_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
[all …]
Dcamellia.c867 unsigned char src[16]; in mbedtls_camellia_self_test() local
908 memcpy(src, camellia_test_ecb_cipher[u][i], 16); in mbedtls_camellia_self_test()
914 memcpy(src, camellia_test_ecb_plain[i], 16); in mbedtls_camellia_self_test()
918 mbedtls_camellia_crypt_ecb(&ctx, v, src, buf); in mbedtls_camellia_self_test()
950 memcpy(src, camellia_test_cbc_iv, 16); in mbedtls_camellia_self_test()
963 memcpy(iv, src, 16); in mbedtls_camellia_self_test()
964 memcpy(src, camellia_test_cbc_cipher[u][i], 16); in mbedtls_camellia_self_test()
968 memcpy(src, camellia_test_cbc_plain[i], 16); in mbedtls_camellia_self_test()
972 mbedtls_camellia_crypt_cbc(&ctx, v, 16, iv, src, buf); in mbedtls_camellia_self_test()
Ddhm.c117 const mbedtls_mpi *src = NULL; in mbedtls_dhm_get_value() local
120 src = &ctx->P; in mbedtls_dhm_get_value()
123 src = &ctx->G; in mbedtls_dhm_get_value()
126 src = &ctx->X; in mbedtls_dhm_get_value()
129 src = &ctx->GX; in mbedtls_dhm_get_value()
132 src = &ctx->GY; in mbedtls_dhm_get_value()
135 src = &ctx->K; in mbedtls_dhm_get_value()
140 return mbedtls_mpi_copy(dest, src); in mbedtls_dhm_get_value()
/openthread-3.7.0/third_party/mbedtls/repo/tests/
DMakefile124 src/%.o : src/%.c $(TEST_OBJS_DEPS)
128 src/drivers/%.o : src/drivers/%.c
132 src/test_helpers/%.o : src/test_helpers/%.c
172 rm -f src/*.o src/drivers/*.o src/test_helpers/*.o src/libmbed*
181 if exist src/*.o del /Q /F src/*.o
182 if exist src/drivers/*.o del /Q /F src/drivers/*.o
183 if exist src/test_helpers/*.o del /Q /F src/test_helpers/*.o
184 if exist src/libmbed* del /Q /F src/libmed*
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_base64.function106 void base64_encode_hex(data_t *src, char *dst, int dst_buf_size,
114 TEST_CF_SECRET(src->x, src->len);
115 TEST_ASSERT(mbedtls_base64_encode(res, dst_buf_size, &len, src->x, src->len) == result);
116 TEST_CF_PUBLIC(src->x, src->len);
133 void base64_decode_hex(char *src, data_t *dst, int dst_buf_size,
141 TEST_ASSERT(mbedtls_base64_decode(res, dst_buf_size, &len, (unsigned char *) src,
142 strlen(src)) == result);
154 void base64_decode_hex_src(data_t *src, char *dst_ref, int result)
159 TEST_ASSERT(mbedtls_base64_decode(dst, sizeof(dst), &len, src->x, src->len) == result);
Dtest_suite_constant_time.function338 uint8_t *src = NULL, *src2 = NULL, *result = NULL, *expected = NULL;
339 TEST_CALLOC(src, size + offset);
346 src[i] = 1;
353 TEST_CF_SECRET(src, size + offset);
356 mbedtls_ct_memcpy_if(mbedtls_ct_bool(secret_eq), result + offset, src, NULL, size);
359 TEST_CF_PUBLIC(src, size + offset);
365 /* Apply offset to src only */
367 src[i] = 1;
373 TEST_CF_SECRET(src, size + offset);
376 mbedtls_ct_memcpy_if(mbedtls_ct_bool(secret_eq), result, src + offset, NULL, size);
[all …]
/openthread-3.7.0/
DBUILD.gn70 deps = [ "src/core:libopenthread-ftd" ]
75 deps = [ "src/core:libopenthread-mtd" ]
80 deps = [ "src/core:libopenthread-radio" ]
85 deps = [ "src/cli:libopenthread-cli-ftd" ]
90 deps = [ "src/cli:libopenthread-cli-mtd" ]
94 public_deps = [ "src/lib/spinel:spinel-api" ]
95 deps = [ "src/lib/spinel:libopenthread-spinel-ncp" ]
99 public_deps = [ "src/lib/spinel:spinel-api" ]
100 deps = [ "src/lib/spinel:libopenthread-spinel-rcp" ]
107 "src/core:libopenthread-ftd",
[all …]
DREADME.md7 …ww.threadgroup.org/What-is-Thread/Thread-Benefits#certifiedproducts"> <img src="https://cdn.rawgit…
30src="https://github.com/openthread/openthread/raw/main/doc/images/ot-contrib-amazon.png" alt="Amaz…
DCMakeLists.txt55 ${PROJECT_SOURCE_DIR}/src
56 ${PROJECT_SOURCE_DIR}/src/core
120 target_include_directories(ot-config INTERFACE ${PROJECT_SOURCE_DIR}/src/posix/platform)
122 add_subdirectory("${PROJECT_SOURCE_DIR}/src/posix/platform")
150 add_subdirectory(src/posix)
152 add_subdirectory(src/posix EXCLUDE_FROM_ALL)
162 add_subdirectory(src)
/openthread-3.7.0/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dasymmetric_key_data.py19 def construct_asymmetric_key_data(src) -> Dict[str, Dict[int, bytes]]: argument
26 for typ in src:
31 for size in src[typ]:
32 dst[private][size] = unhexlify(src[typ][size][0])
33 dst[public][size] = unhexlify(src[typ][size][1])
/openthread-3.7.0/tools/ot-fct/
DCMakeLists.txt35 ${OPENTHREAD_DIR}/src
36 ${OPENTHREAD_DIR}/src/core
37 ${OPENTHREAD_DIR}/src/posix/platform
44 ${OPENTHREAD_DIR}/src/core/common/string.cpp
45 ${OPENTHREAD_DIR}/src/core/utils/parse_cmdline.cpp
46 ${OPENTHREAD_DIR}/src/lib/platform/exit_code.c
47 ${OPENTHREAD_DIR}/src/posix/platform/power.cpp
48 ${OPENTHREAD_DIR}/src/posix/platform/config_file.cpp
/openthread-3.7.0/tests/toranj/ncp/
Dtest-013-off-mesh-route-traffic.py157 src = sed2.find_ip6_address_with_prefix(ON_MESH_PREFIX) variable
158 sender = sed2.prepare_tx(src, OFF_MESH_ADDR_1, "Hello Route1")
166 src = r1.find_ip6_address_with_prefix(ON_MESH_PREFIX) variable
167 sender = r1.prepare_tx(src, OFF_MESH_ADDR_2, "Hello Route2")
175 src = r2.find_ip6_address_with_prefix(ON_MESH_PREFIX) variable
176 sender = r2.prepare_tx(src, OFF_MESH_ADDR_3, "Hello Route3")
Dtest-012-multi-hop-traffic.py149 src = routers[0].get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] variable
153 sender = routers[0].prepare_tx(src, dst, msg_length, NUM_MSGS)
162 src = sed_children[-1].get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] variable
166 sender = sed_children[-1].prepare_tx(src, dst, msg_length, NUM_MSGS)
175 src = fed_children[0].get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] variable
179 sender = fed_children[0].prepare_tx(src, dst, msg_length, NUM_MSGS)
Dtest-006-traffic-router-end-device.py80 for src, dst in [(ll1, ll2), (ll1, ml2), (ml1, ll2), (ml1, ml2)]:
83 sender = node1.prepare_tx(src, dst, msg_length, NUM_MSGS)
93 s1 = node1.prepare_tx((src, PORT), (dst, PORT), 'Hi there!', NUM_MSGS)
95 s2 = node2.prepare_tx((dst, PORT), (src, PORT), 'Hello back to you!', NUM_MSGS)
Dtest-007-traffic-router-sleepy.py85 for src, dst in [(ll1, ll2), (ll1, ml2), (ml1, ll2), (ml1, ml2)]:
88 sender = node1.prepare_tx(src, dst, msg_length, NUM_MSGS)
98 s1 = node1.prepare_tx((src, PORT), (dst, PORT), 'Hi there!', NUM_MSGS)
100 s2 = node2.prepare_tx((dst, PORT), (src, PORT), 'Hello back to you!', NUM_MSGS)
/openthread-3.7.0/src/cli/
DREADME_HISTORY.md431 | 00:00:07.640 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
435 | 00:00:09.263 | src: [fdde:ad00:beef:0:0:ff:fe00:4800]:0 …
439 | 00:00:09.302 | src: [fdde:ad00:beef:0:0:ff:fe00:4800]:61631 …
443 | 00:00:09.304 | src: [fdde:ad00:beef:0:ac09:a16b:3204:dc09]:0 …
447 | 00:00:09.304 | src: [fdde:ad00:beef:0:0:ff:fe00:4800]:0 …
451 | 00:00:21.622 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
455 | 00:00:26.640 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
459 | 00:00:30.000 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
463 | 00:00:30.480 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
467 | 00:00:30.772 | src: [fe80:0:0:0:d03d:d3e7:cc5e:7cd7]:19788 …
[all …]
/openthread-3.7.0/tests/scripts/thread-cert/pktverify/
Dsummary.py145 extaddr, src = None, None
154 src = p.ipv6.src
156 if extaddr and src:
159 role_sum.add_ipaddr(src, i)
Dpacket_verifier.py219 …def verify_ping(self, src: str, dst: str, bbr: str = None, pkts: 'PacketVerifier' = None) -> Verif…
232 assert not (self.is_thread_device(src) and self.is_thread_device(dst)), \
234 assert not (self.is_backbone_device(src) and self.is_backbone_device(dst)), \
240 src_dua = self.vars[src + '_DUA']
248 if self.is_backbone_device(src):
249 p = ping_req.filter_eth_src(self.vars[src + '_ETH']).must_next()
251 p = ping_req.filter_wpan_src64(self.vars[src]).must_next()
261 if self.is_backbone_device(src):
/openthread-3.7.0/tests/scripts/thread-cert/
Dtest_ping.py141 .filter_ipv6_dst(_pkt.ipv6.src) \
152 .filter_ipv6_dst(_pkt.ipv6.src) \
164 .filter_ipv6_dst(_pkt.ipv6.src) \
175 .filter_ipv6_dst(_pkt.ipv6.src) \
186 .filter_ipv6_dst(_pkt.ipv6.src) \
/openthread-3.7.0/src/posix/
DREADME.md25 If built successfully, the binary should be found at: `build/posix/src/posix/ot-cli`.
42 …[command line document](../../src/cli/README.md). You can also perform radio diagnostics using the…
45 ./build/posix/src/posix/ot-cli 'spinel+hdlc+forkpty://build/simulation/examples/apps/ncp/ot-rcp?for…
139 ./build/posix/src/posix/ot-cli 'spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=115200'
150 ./build/posix/src/posix/ot-daemon 'spinel+hdlc+forkpty://build/simulation/examples/apps/ncp/ot-rcp?…
152 ./build/posix/src/posix/ot-daemon 'spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=115200'
154 ./build/posix/src/posix/ot-ctl
DCMakeLists.txt31 ${PROJECT_SOURCE_DIR}/src
32 ${PROJECT_SOURCE_DIR}/src/core
33 ${PROJECT_SOURCE_DIR}/src/posix/platform
34 ${PROJECT_SOURCE_DIR}/src/posix/platform/include
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dbase64.h46 const unsigned char *src, size_t slen);
66 const unsigned char *src, size_t slen);
/openthread-3.7.0/script/
Dcheck-gn-build44 test -f gn-out/obj/src/core/libopenthread-ftd.a
53 test -f gn-out/obj/src/core/libopenthread-ftd.a
/openthread-3.7.0/src/posix/platform/
DCMakeLists.txt200 ${PROJECT_SOURCE_DIR}/src
201 ${PROJECT_SOURCE_DIR}/src/core
205 ${PROJECT_SOURCE_DIR}/src/posix/platform/include
217 ${PROJECT_SOURCE_DIR}/src
218 ${PROJECT_SOURCE_DIR}/src/core
219 ${PROJECT_SOURCE_DIR}/src/posix/platform/include

12345