Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 73) sorted by relevance

123

/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_xtea.function12 data_t * dst )
23 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
28 void xtea_decrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst )
39 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
45 data_t * src_str, data_t * dst )
57 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
58 src_str->len, dst->len ) == 0 );
64 data_t * src_str, data_t * dst )
76 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
77 src_str->len, dst->len ) == 0 );
Dtest_suite_des.function18 void des_encrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst )
30 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
38 void des_decrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst )
50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
59 data_t * src_str, data_t * dst, int cbc_result )
73 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len,
74 dst->len ) == 0 );
84 data_t * src_str, data_t * dst,
99 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len,
100 dst->len ) == 0 );
[all …]
Dtest_suite_blowfish.function170 data_t * dst, int setkey_result )
184 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
194 data_t * dst, int setkey_result )
208 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
218 data_t * src_str, data_t * dst,
234 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
235 src_str->len, dst->len ) == 0 );
245 data_t * src_str, data_t * dst,
260 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len,
261 dst->len ) == 0 );
[all …]
Dtest_suite_camellia.function178 data_t * dst, int setkey_result )
192 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
202 data_t * dst, int setkey_result )
216 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
226 data_t * src_str, data_t * dst, int cbc_result )
240 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len,
241 dst->len ) == 0 );
251 data_t * src_str, data_t * dst,
266 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len,
267 dst->len ) == 0 );
[all …]
Dtest_suite_aes.function12 data_t * dst, int setkey_result )
26 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
36 data_t * dst, int setkey_result )
50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
60 data_t * src_str, data_t * dst,
75 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
76 src_str->len, dst->len ) == 0 );
86 data_t * src_str, data_t * dst,
100 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
101 src_str->len, dst->len ) == 0 );
[all …]
Dtest_suite_base64.function129 void base64_encode_hex( data_t * src, char * dst, int dst_buf_size,
147 TEST_ASSERT( len == strlen( dst ) );
148 TEST_ASSERT( memcmp( dst, res, len ) == 0 );
157 void base64_decode_hex( char * src, data_t * dst, int dst_buf_size,
169 TEST_ASSERT( len == dst->len );
170 TEST_ASSERT( memcmp( dst->x, res, len ) == 0 );
181 unsigned char dst[1000] = { 0 };
184 TEST_ASSERT( mbedtls_base64_decode( dst, sizeof( dst ), &len, src->x, src->len ) == result );
188 TEST_ASSERT( memcmp( dst, dst_ref, len ) == 0 );
Dtest_suite_arc4.function11 void mbedtls_arc4_crypt( data_t * src_str, data_t * key_str, data_t * dst )
24 TEST_ASSERT( mbedtls_test_hexcmp( dst_str, dst->x,
25 src_str->len, dst->len ) == 0 );
Dtest_suite_chacha20.function75 unsigned char dst[1];
94 mbedtls_chacha20_update( NULL, 0, src, dst ) );
96 mbedtls_chacha20_update( &ctx, len, NULL, dst ) );
101 mbedtls_chacha20_crypt( NULL, nonce, counter, 0, src, dst ) );
103 mbedtls_chacha20_crypt( key, NULL, counter, 0, src, dst ) );
105 mbedtls_chacha20_crypt( key, nonce, counter, len, NULL, dst ) );
/openthread-3.5.0/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dasymmetric_key_data.py36 dst = {} #type: Dict[str, Dict[int, bytes]]
40 dst[private] = {}
41 dst[public] = {}
43 dst[private][size] = unhexlify(src[typ][size][0])
44 dst[public][size] = unhexlify(src[typ][size][1])
45 return dst
/openthread-3.5.0/third_party/mbedtls/repo/library/
Dbase64.c44 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
67 if( ( dlen < n + 1 ) || ( NULL == dst ) ) in mbedtls_base64_encode()
75 for( i = 0, p = dst; i < n; i += 3 ) in mbedtls_base64_encode()
105 *olen = p - dst; in mbedtls_base64_encode()
114 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
182 if( dst == NULL || dlen < n ) in mbedtls_base64_decode()
189 for( x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode()
209 *olen = p - dst; in mbedtls_base64_decode()
Dmd.c335 int mbedtls_md_clone( mbedtls_md_context_t *dst, in mbedtls_md_clone() argument
338 if( dst == NULL || dst->md_info == NULL || in mbedtls_md_clone()
340 dst->md_info != src->md_info ) in mbedtls_md_clone()
349 mbedtls_md2_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
354 mbedtls_md4_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
359 mbedtls_md5_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
364 mbedtls_ripemd160_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
369 mbedtls_sha1_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
375 mbedtls_sha256_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
383 mbedtls_sha512_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
Dccm.c132 #define CTR_CRYPT( dst, src, len ) \ argument
142 (dst)[i] = (src)[i] ^ b[i]; \
162 unsigned char *dst; in ccm_auth_crypt() local
269 dst = output; in ccm_auth_crypt()
282 CTR_CRYPT( dst, src, use_len ); in ccm_auth_crypt()
287 memcpy( b, dst, use_len ); in ccm_auth_crypt()
291 dst += use_len; in ccm_auth_crypt()
/openthread-3.5.0/tests/toranj/ncp/
Dtest-012-multi-hop-traffic.py150 dst = routers[-1].get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] variable
153 sender = routers[0].prepare_tx(src, dst, msg_length, NUM_MSGS)
163 dst = sed_children[0].get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] variable
166 sender = sed_children[-1].prepare_tx(src, dst, msg_length, NUM_MSGS)
176 dst = fed_children[-1].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.5.0/src/cli/
DREADME_HISTORY.md432 | | dst: [ff02:0:0:0:0:0:0:1]:19788 …
436 | | dst: [ff03:0:0:0:0:0:0:2]:0 …
440 | | dst: [fdde:ad00:beef:0:0:ff:fe00:4801]:61631 …
444 | | dst: [fdde:ad00:beef:0:dc0e:d6b3:f180:b75b]:0 …
448 | | dst: [ff03:0:0:0:0:0:0:2]:0 …
452 | | dst: [ff02:0:0:0:0:0:0:1]:19788 …
456 | | dst: [ff02:0:0:0:0:0:0:1]:19788 …
460 | | dst: [fe80:0:0:0:a4a5:bbac:a8e:bd07]:19788 …
464 | | dst: [fe80:0:0:0:a4a5:bbac:a8e:bd07]:19788 …
468 | | dst: [ff02:0:0:0:0:0:0:1]:19788 …
[all …]
/openthread-3.5.0/src/core/utils/
Dotns.cpp133 Mac::Address dst; in EmitTransmit() local
138 IgnoreError(aFrame.GetDstAddr(dst)); in EmitTransmit()
140 if (dst.IsShort()) in EmitTransmit()
142 … EmitStatus("transmit=%d,%04x,%d,%04x", channel, frameControlField, sequence, dst.GetShort()); in EmitTransmit()
144 else if (dst.IsExtended()) in EmitTransmit()
146 …EmitStatus("transmit=%d,%04x,%d,%s", channel, frameControlField, sequence, dst.ToString().AsCStrin… in EmitTransmit()
/openthread-3.5.0/src/core/backbone_router/
Dbackbone_tmf.cpp114 const Ip6::Address &dst = aMessageInfo.GetSockAddr(); in IsBackboneTmfMessage() local
124 … (dst.IsLinkLocal() || dst == Get<BackboneRouter::Local>().GetAllNetworkBackboneRoutersAddress() || in IsBackboneTmfMessage()
125 dst == Get<BackboneRouter::Local>().GetAllDomainBackboneRoutersAddress())); in IsBackboneTmfMessage()
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/
Dbase64.h61 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
81 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
/openthread-3.5.0/tools/harness-simulation/posix/
Dlaunch_testbed.py87 def _advertise(s: socket.socket, dst, info): argument
89 s.sendto(json.dumps(info).encode('utf-8'), dst)
92 def advertise_devices(s: socket.socket, dst, ven: str, add: str, nodeids: Iterable[int], tag: str): argument
101 _advertise(s, dst, info)
104 def advertise_sniffers(s: socket.socket, dst, add: str, ports: Iterable[int]): argument
110 _advertise(s, dst, info)
/openthread-3.5.0/tests/scripts/thread-cert/
DCert_5_8_02_KeyIncrement.py109 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
115 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
122 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
128 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
DCert_5_8_03_KeyIncrementRollOver.py111 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
117 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
125 … _lpkts.filter(lambda p: p.ipv6.dst == router_mleid).filter_ping_request().must_next().must_verify(
131 … _rpkts.filter(lambda p: p.ipv6.dst == leader_mleid).filter_ping_reply().must_next().must_verify(
DCert_9_2_19_PendingDatasetGet.py143 pkts.filter_ipv6_src_dst(_mgmt_get_pkt.ipv6.dst, COMMISSIONER_RLOC).\
179 pkts.filter_ipv6_src_dst(_mgmt_pending_set_pkt.ipv6.dst, COMMISSIONER_RLOC).\
216 pkts.filter_ipv6_src_dst(_mgmt_pending_get_pkt.ipv6.dst, COMMISSIONER_RLOC).\
257 pkts.filter_ipv6_src_dst(_mgmt_pending_get_pkt.ipv6.dst, COMMISSIONER_RLOC).\
286 pkts.filter_ipv6_src_dst(_mgmt_pending_get_pkt.ipv6.dst, COMMISSIONER_RLOC).\
/openthread-3.5.0/examples/platforms/utils/
Dmac_frame.cpp43 Mac::Address dst; in otMacFrameDoesAddrMatch() local
46 SuccessOrExit(frame.GetDstAddr(dst)); in otMacFrameDoesAddrMatch()
48 switch (dst.GetType()) in otMacFrameDoesAddrMatch()
51 …VerifyOrExit(dst.GetShort() == Mac::kShortAddrBroadcast || dst.GetShort() == aShortAddress, rval =… in otMacFrameDoesAddrMatch()
55 …VerifyOrExit(dst.GetExtended() == *static_cast<const Mac::ExtAddress *>(aExtAddress), rval = false… in otMacFrameDoesAddrMatch()
/openthread-3.5.0/third_party/mbedtls/repo/programs/test/
Dudp_proxy.c504 mbedtls_net_context *dst; member
557 mbedtls_net_context *dst = p->dst; in send_packet() local
580 if( ( ret = dispatch_data( dst, buf, p->len ) ) <= 0 ) in send_packet()
604 if( ( ret = dispatch_data( dst, buf, p->len ) ) <= 0 ) in send_packet()
612 if( ( ret = dispatch_data( dst, p->buf, p->len ) ) <= 0 ) in send_packet()
625 if( ( ret = dispatch_data( dst, p->buf, p->len ) ) <= 0 ) in send_packet()
639 if( ( ret = dispatch_data( dst, initial_clihlo.buf, in send_packet()
703 mbedtls_net_context *dst, in handle_message() argument
724 cur.dst = dst; in handle_message()

123