Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 263) sorted by relevance

1234567891011

/openthread-3.5.0/third_party/mbedtls/repo/library/
DCMakeLists.txt14 aes.c
15 aesni.c
16 arc4.c
17 aria.c
18 asn1parse.c
19 asn1write.c
20 base64.c
21 bignum.c
22 blowfish.c
23 camellia.c
[all …]
Dx509write_crt.c140 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_basic_constraints() local
152 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_int( &c, buf, in mbedtls_x509write_crt_set_basic_constraints()
155 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_bool( &c, buf, 1 ) ); in mbedtls_x509write_crt_set_basic_constraints()
158 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_basic_constraints()
159 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, in mbedtls_x509write_crt_set_basic_constraints()
174 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_subject_key_identifier() local
179 mbedtls_pk_write_pubkey( &c, buf, ctx->subject_key ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
185 c = buf + sizeof( buf ) - 20; in mbedtls_x509write_crt_set_subject_key_identifier()
188 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
190 mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_OCTET_STRING ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
[all …]
Dx509write_csr.c95 unsigned char *c; in mbedtls_x509write_csr_set_key_usage() local
98 c = buf + 4; in mbedtls_x509write_csr_set_key_usage()
100 ret = mbedtls_asn1_write_named_bitstring( &c, buf, &key_usage, 8 ); in mbedtls_x509write_csr_set_key_usage()
106 c, (size_t)ret ); in mbedtls_x509write_csr_set_key_usage()
117 unsigned char *c; in mbedtls_x509write_csr_set_ns_cert_type() local
120 c = buf + 4; in mbedtls_x509write_csr_set_ns_cert_type()
122 ret = mbedtls_asn1_write_named_bitstring( &c, buf, &ns_cert_type, 8 ); in mbedtls_x509write_csr_set_ns_cert_type()
128 c, (size_t)ret ); in mbedtls_x509write_csr_set_ns_cert_type()
145 unsigned char *c, *c2; in x509write_csr_der_internal() local
157 c = buf + size; in x509write_csr_der_internal()
[all …]
Dpkwrite.c228 unsigned char *c; in mbedtls_pk_write_pubkey_der() local
238 c = buf + size; in mbedtls_pk_write_pubkey_der()
240 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_pk_write_pubkey( &c, buf, key ) ); in mbedtls_pk_write_pubkey_der()
242 if( c - buf < 1 ) in mbedtls_pk_write_pubkey_der()
250 *--c = 0; in mbedtls_pk_write_pubkey_der()
253 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_pk_write_pubkey_der()
254 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_BIT_STRING ) ); in mbedtls_pk_write_pubkey_der()
260 MBEDTLS_ASN1_CHK_ADD( par_len, pk_write_ec_param( &c, buf, mbedtls_pk_ec( *key ) ) ); in mbedtls_pk_write_pubkey_der()
289 MBEDTLS_ASN1_CHK_ADD( par_len, mbedtls_asn1_write_oid( &c, buf, in mbedtls_pk_write_pubkey_der()
303 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
[all …]
Dx509_create.c126 const char *s = name, *c = s; in mbedtls_x509_string_to_names() local
137 while( c <= end ) in mbedtls_x509_string_to_names()
139 if( in_tag && *c == '=' ) in mbedtls_x509_string_to_names()
141 if( ( attr_descr = x509_attr_descr_from_name( s, c - s ) ) == NULL ) in mbedtls_x509_string_to_names()
148 s = c + 1; in mbedtls_x509_string_to_names()
153 if( !in_tag && *c == '\\' && c != end ) in mbedtls_x509_string_to_names()
155 c++; in mbedtls_x509_string_to_names()
158 if( c == end || *c != ',' ) in mbedtls_x509_string_to_names()
164 else if( !in_tag && ( *c == ',' || c == end ) ) in mbedtls_x509_string_to_names()
179 while( c < end && *(c + 1) == ' ' ) in mbedtls_x509_string_to_names()
[all …]
Daria.c179 uint32_t *c, uint32_t *d ) in aria_a() argument
186 *d = ARIA_P1( *c ); // 98ba in aria_a()
187 *c = ARIA_P1( tb ); // fedc in aria_a()
190 ta = ARIA_P1( ta ) ^ tc ^ *c; // 2301+5476+89ab+fedc in aria_a()
199 *c ^= ARIA_P1( tc ) ^ ta; // 0123+1032+4567+7654+ab89+dcfe+fedc OUT in aria_a()
211 uint32_t *c, uint32_t *d, in aria_sl() argument
223 *c = ( (uint32_t) sa[ MBEDTLS_BYTE_0( *c ) ] ) ^ in aria_sl()
224 (((uint32_t) sb[ MBEDTLS_BYTE_1( *c ) ]) << 8) ^ in aria_sl()
225 (((uint32_t) sc[ MBEDTLS_BYTE_2( *c ) ]) << 16) ^ in aria_sl()
226 (((uint32_t) sd[ MBEDTLS_BYTE_3( *c ) ]) << 24); in aria_sl()
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/programs/
DMakefile11 MBEDTLS_TEST_OBJS:=$(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/*.c ${MBEDTLS_TEST_PATH}/driv…
164 aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP)
166 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
168 hash/hello$(EXEXT): hash/hello.c $(DEP)
170 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
172 hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP)
174 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
176 pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP)
178 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
180 pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c $(DEP)
[all …]
DREADME.md8 * [`aes/crypt_and_hash.c`](aes/crypt_and_hash.c): file encryption and authentication, demonstrating…
12 * [`hash/generic_sum.c`](hash/generic_sum.c): file hash calculator and verifier, demonstrating the …
14 * [`hash/hello.c`](hash/hello.c): hello-world program for MD5.
20 * [`pkey/gen_key.c`](pkey/gen_key.c): generates a key for any of the supported public-key algorithm…
22 * [`pkey/key_app.c`](pkey/key_app.c): loads a PEM or DER public key or private key file and dumps i…
24 * [`pkey/key_app_writer.c`](pkey/key_app_writer.c): loads a PEM or DER public key or private key fi…
26 * [`pkey/pk_encrypt.c`](pkey/pk_encrypt.c), [`pkey/pk_decrypt.c`](pkey/pk_decrypt.c): loads a PEM o…
28 * [`pkey/pk_sign.c`](pkey/pk_sign.c), [`pkey/pk_verify.c`](pkey/pk_verify.c): loads a PEM or DER pr…
32 * [`pkey/ecdsa.c`](pkey/ecdsa.c): generates an ECDSA key, signs a fixed message and verifies the si…
34 * [`pkey/rsa_encrypt.c`](pkey/rsa_encrypt.c), [`pkey/rsa_decrypt.c`](pkey/rsa_decrypt.c): loads an …
[all …]
/openthread-3.5.0/third_party/mbedtls/
DBUILD.gn1 # Copyright (c) 2020, The OpenThread Authors.
128 "repo/library/aes.c",
129 "repo/library/aesni.c",
130 "repo/library/arc4.c",
131 "repo/library/aria.c",
132 "repo/library/asn1parse.c",
133 "repo/library/asn1write.c",
134 "repo/library/base64.c",
135 "repo/library/bignum.c",
136 "repo/library/blowfish.c",
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/
Dbn_mul.h54 #define MBEDTLS_BYTES_TO_T_UINT_4( a, b, c, d ) \ argument
57 ( (mbedtls_mpi_uint) (c) << 16 ) | \
63 #define MBEDTLS_BYTES_TO_T_UINT_8( a, b, c, d, e, f, g, h ) \ argument
64 MBEDTLS_BYTES_TO_T_UINT_4( a, b, c, d ), \
69 #define MBEDTLS_BYTES_TO_T_UINT_8( a, b, c, d, e, f, g, h ) \ argument
72 ( (mbedtls_mpi_uint) (c) << 16 ) | \
79 #define MBEDTLS_BYTES_TO_T_UINT_4( a, b, c, d ) \ argument
80 MBEDTLS_BYTES_TO_T_UINT_8( a, b, c, d, 0, 0, 0, 0 )
194 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \
195 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \
[all …]
/openthread-3.5.0/tests/toranj/cli/
Dtest-015-clear-addresss-cache-for-sed.py62 c = cli.Node() variable
73 r3.allowlist_node(c)
75 c.allowlist_node(r3)
85 c.join(r1, cli.JOIN_TYPE_SLEEPY_END_DEVICE)
86 c.set_pollperiod(400)
91 verify(c.get_state() == 'child')
116 c_rloc = int(c.get_rloc16(), 16)
121 c_address = next(addr for addr in c.get_ip_addrs() if addr.startswith('fd00:abba:'))
155 r3.un_allowlist_node(c)
156 r2.allowlist_node(c)
[all …]
/openthread-3.5.0/third_party/jlink/SEGGER_RTT_V640/RTT/
DSEGGER_RTT_printf.c117 static void _StoreChar(SEGGER_RTT_PRINTF_DESC * p, char c) { in _StoreChar() argument
122 *(p->pBuffer + Cnt) = c; in _StoreChar()
148 char c; in _PrintUnsigned() local
169 c = '0'; in _PrintUnsigned()
171 c = ' '; in _PrintUnsigned()
175 _StoreChar(pBufferDesc, c); in _PrintUnsigned()
328 char c; in SEGGER_RTT_vprintf() local
343 c = *sFormat; in SEGGER_RTT_vprintf()
345 if (c == 0u) { in SEGGER_RTT_vprintf()
348 if (c == '%') { in SEGGER_RTT_vprintf()
[all …]
/openthread-3.5.0/tests/unit/
Dtest_linked_list.cpp135 Entry a("a", 1, kAlphaType), b("b", 2, kAlphaType), c("c", 3, kBetaType); in TestLinkedList() local
157 VerifyOrQuit(list.Find(c, prev) == kErrorNotFound, "succeeded for a missing entry"); in TestLinkedList()
159 list.Push(c); in TestLinkedList()
160 VerifyLinkedListContent(&list, &c, &b, &a, nullptr); in TestLinkedList()
163 VerifyLinkedListContent(&list, &d, &c, &b, &a, nullptr); in TestLinkedList()
166 VerifyLinkedListContent(&list, &e, &d, &c, &b, &a, nullptr); in TestLinkedList()
174 VerifyLinkedListContent(&list, &d, &c, &b, &a, nullptr); in TestLinkedList()
179 VerifyOrQuit(list.FindMatching(c.GetId(), prev) == &c); in TestLinkedList()
182 VerifyOrQuit(prev == &c); in TestLinkedList()
189 VerifyLinkedListContent(&list, &e, &d, &c, &b, &a, nullptr); in TestLinkedList()
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/tests/data_files/
Ddh.optlen.pem5 80:0a:bf:e7:dc:66:7a:a1:7b:cd:7c:04:61:4b:c2:
7 93:8e:a1:1b:48:dc:51:5d:ab:7a:bc:bb:1e:0c:7f:
12 7c:63:96:b9:24:46:21:be:2b:00:b6:3c:65:92:53:
13 31:84:13:44:3c:d2:44:21:5c:d7:fd:4c:be:79:6e:
14 82:c6:cf:70:f8:9c:c0:c5:28:fb:8e:34:48:09:b3:
16 c8:75:5c:7a:46:8d:47:f5:6d:6d:b9:ea:01:29:24:
19 0c:b0:2e:90:f3:23:fe:04:55:21:f3:4c:68:35:4a:
26 b5:bd:5a:6c:9e:ae:1c:13:7a:f3:40:87:fc:e2:a3:
27 6a:57:8d:70:c5:c5:60:ad:2b:db:92:4c:4a:4d:be:
30 e4:94:05:e5:90:2f:a0:59:6a:1c:ba:a8:95:cc:40:
[all …]
Ddh.998.pem5 6c:75:39:08:16:d1:a4:b8:0c:68:c5:63:21:61:eb:
6 48:2d:77:99:08:1d:67:38:37:0a:cd:cf:39:b6:3c:
7 9d:8a:e5:85:3c:71:e3:4b:3e:1e:b9:80:e3:cc:7a:
10 8f:93:78:96:8f:2c:25:8d:7d:1f:eb:5c:3c:bf:51:
Ddh.1000.pem5 23:84:3c:0d:55:8c:b9:7d:a9:d5:9a:80:82:fb:50:
13 a6:d9:36:f8:8c:
17 ba:0d:92:08:9d:d9:b3:28:41:5d:88:4e:fe:3c:ae:
18 c1:d4:3e:7e:fb:d8:2c:bf:7b:63:70:99:9e:c4:ac:
19 d0:1e:7c:4e:22:07:d2:b5:f9:9a:9e:52:e2:97:9d:
22 23:6e:42:8c:1e:70:3d:21:bb:b9:b9:8f:f9:fd:9c:
/openthread-3.5.0/tests/toranj/ncp/
Dtest-038-clear-address-cache-for-sed.py52 c = wpan.Node() variable
82 c.set(wpan.WPAN_POLL_INTERVAL, str(POLL_INTERVAL))
83 c.allowlist_node(r2)
84 r2.allowlist_node(c)
85 c.join_node(r2, wpan.JOIN_TYPE_SLEEPY_END_DEVICE)
106 verify(c.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_SLEEPY_END_DEVICE)
111 c_address = c.find_ip6_address_with_prefix(PREFIX)
118 recver = c.prepare_rx(sender)
134 c.set(wpan.WPAN_CHILD_SUPERVISION_CHECK_TIMEOUT, str(CHILD_SUPERVISION_CHECK_TIMEOUT))
139 r2.un_allowlist_node(c)
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_base64.function23 unsigned c;
24 for( c = 0; c <= 0xff; c++ )
26 mbedtls_test_set_step( c );
27 TEST_CF_SECRET( &c, sizeof( c ) );
28 unsigned char m = mbedtls_ct_uchar_mask_of_range( low, high, c );
29 TEST_CF_PUBLIC( &c, sizeof( c ) );
31 if( low <= c && c <= high )
60 for( unsigned c = 0; c <= 0xff; c++ )
62 mbedtls_test_set_step( c );
64 p = memchr( base64_digits, c, sizeof( base64_digits ) - 1 );
[all …]
Dtest_suite_psa_crypto_storage_format.current.data5 …LOCAL_STORAGE):PSA_KEY_TYPE_RAW_DATA:8:PSA_KEY_USAGE_EXPORT:0x0000:0x0000:"4c":"505341004b45590000…
9 …LOCAL_STORAGE):PSA_KEY_TYPE_RAW_DATA:8:PSA_KEY_USAGE_EXPORT:0x0000:0x0000:"4c":"505341004b45590000…
13 …LOCAL_STORAGE):PSA_KEY_TYPE_RAW_DATA:8:PSA_KEY_USAGE_EXPORT:0x0000:0x0000:"4c":"505341004b45590000…
17 …IME_PERSISTENT:PSA_KEY_TYPE_RAW_DATA:8:PSA_KEY_USAGE_EXPORT:0x0000:0x0000:"4c":"505341004b45590000…
477 …_EXPORT:0x0000:PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG(PSA_ALG_CCM, 1):"4c":"505341004b45590000…
485 …:PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG(PSA_ALG_CHACHA20_POLY1305, 1):"4c":"505341004b45590000…
493 …_EXPORT:0x0000:PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG(PSA_ALG_GCM, 1):"4c":"505341004b45590000…
501 …EXPORT:0x0000:PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG(PSA_ALG_CCM, 63):"4c":"505341004b45590000…
509 …A_KEY_USAGE_EXPORT:0x0000:PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, 1):"4c":"505341004b45590000…
517 …PORT:0x0000:PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CHACHA20_POLY1305, 1):"4c":"505341004b45590000…
[all …]
Dtest_suite_debug.data32 …ue' (16 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ..........…
35 …ue' (17 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ..........…
38c 0d 0e 0f ................\nMyFile(0999)\: 0010\: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e …
53c ee 66 88 3e 62 90 ff\nMyFile(0999)\: e7 03 f4 ea 59 63 bf 21 27 13 ce e4 6b 10 7c 09\nMyFile(09…
56c ee 66 88 3e 62 90\nMyFile(0999)\: ff e7 03 f4 ea 59 63 bf 21 27 13 ce e4 6b 10 7c\nMyFile(0999)…
59c ee 66 88 3e 62 90\nMyFile(0999)\: ff e7 03 f4 ea 59 63 bf 21 27 13 ce e4 6b 10 7c\nMyFile(0999)…
63c 09 04 47 82 b0 57 39\nMyFile(0999)\: 70 ed a3 ec 15 19 1e a8 33 08 47 c1 05 42 a9 fd\nMyFile(09…
67 …c 1a 95 29 ce 2c 2d\nMyFile(0999)\: value of 'crt->eckey.Q(Y)' (384 bits) is\:\nMyFile(0999)\: 87…
/openthread-3.5.0/third_party/jlink/SEGGER_RTT_V640/
DREADME.txt7 - Main_RTT_InputEchoApp.c - Sample application which echoes input on Channel 0.
8 … - Main_RTT_MenuApp.c - Sample application to demonstrate RTT bi-directional functionality.
9 - Main_RTT_PrintfTest.c - Sample application to test RTT small printf implementation.
10 - Main_RTT_SpeedTestApp.c - Sample application for measuring RTT performance. embOS needed.
12 - SEGGER_RTT.c - The RTT implementation.
15 …- SEGGER_RTT_Printf.c - Simple implementation of printf to write formatted strings via RTT.
17 … - RTT_Syscalls_GCC.c - Low-level syscalls to retarget printf() to RTT with GCC / Newlib.
18 … - RTT_Syscalls_IAR.c - Low-level syscalls to retarget printf() to RTT with IAR compiler.
19 …- RTT_Syscalls_KEIL.c - Low-level syscalls to retarget printf() to RTT with KEIL/uVision c…
20 …- RTT_Syscalls_SES.c - Low-level syscalls to retarget printf() to RTT with SEGGER Embedde…
/openthread-3.5.0/examples/platforms/simulation/
DCMakeLists.txt2 # Copyright (c) 2019, The OpenThread Authors.
61 alarm.c
62 crypto.c
63 diag.c
64 dns.c
65 dso_transport.c
66 entropy.c
67 flash.c
68 infra_if.c
69 logging.c
[all …]
/openthread-3.5.0/third_party/tcplp/
DCMakeLists.txt2 # Copyright (c) 2021, The OpenThread Authors.
32 bsdtcp/cc/cc_newreno.c
33 bsdtcp/tcp_fastopen.c
34 bsdtcp/tcp_input.c
35 bsdtcp/tcp_output.c
36 bsdtcp/tcp_reass.c
37 bsdtcp/tcp_sack.c
38 bsdtcp/tcp_subr.c
39 bsdtcp/tcp_timer.c
40 bsdtcp/tcp_timewait.c
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/programs/ssl/
DCMakeLists.txt33 ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
35 add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>
42 ssl_test_lib.c ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
44 ssl_test_lib.c ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
47 add_executable(ssl_pthread_server ssl_pthread_server.c $<TARGET_OBJECTS:mbedtls_test>)
/openthread-3.5.0/third_party/mbedtls/repo/tests/data_files/dir1/
Dtest-ca.crt16 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18:
21 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90:
22 71:f1:bd:83:d9:3f:d6:a5:e2:3c:2a:8f:ef:27:60:
30 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9:
47 32:89:be:63:47:53:ff:b6:be:f1:2e:8c:54:c0:99:3f:a0:b9:
48 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62:
49 09:3a:24:e4:36:d9:e9:2c:da:38:d0:73:75:61:d7:c1:6c:26:
50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d:
51 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5:
53 e9:c0:3e:a8:7a:72:3d:87:53:1f:e5:2c:84:84:e7:9a:9e:7f:

1234567891011