Home
last modified time | relevance | path

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

1234567

/mbedtls-3.5.0/library/
DCMakeLists.txt14 aes.c
15 aesni.c
16 aesce.c
17 aria.c
18 asn1parse.c
19 asn1write.c
20 base64.c
21 bignum.c
22 bignum_core.c
23 bignum_mod.c
[all …]
Dx509write_crt.c170 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_basic_constraints() local
181 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_int(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
184 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_bool(&c, buf, 1)); in mbedtls_x509write_crt_set_basic_constraints()
187 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_basic_constraints()
188 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
205 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_key_identifier() local
214 mbedtls_pk_write_pubkey(&c, in mbedtls_x509write_crt_set_key_identifier()
240 c = buf + sizeof(buf) - 20; in mbedtls_x509write_crt_set_key_identifier()
243 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_key_identifier()
244 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, tag)); in mbedtls_x509write_crt_set_key_identifier()
[all …]
Dbn_mul.h50 #define MBEDTLS_BYTES_TO_T_UINT_4(a, b, c, d) \ argument
53 ((mbedtls_mpi_uint) (c) << 16) | \
59 #define MBEDTLS_BYTES_TO_T_UINT_8(a, b, c, d, e, f, g, h) \ argument
60 MBEDTLS_BYTES_TO_T_UINT_4(a, b, c, d), \
65 #define MBEDTLS_BYTES_TO_T_UINT_8(a, b, c, d, e, f, g, h) \ argument
68 ((mbedtls_mpi_uint) (c) << 16) | \
75 #define MBEDTLS_BYTES_TO_T_UINT_4(a, b, c, d) \ argument
76 MBEDTLS_BYTES_TO_T_UINT_8(a, b, c, d, 0, 0, 0, 0)
138 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \
139 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \
[all …]
Dpkwrite.c215 unsigned char *c; in mbedtls_pk_write_pubkey_der() local
224 c = buf + size; in mbedtls_pk_write_pubkey_der()
226 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_pk_write_pubkey(&c, buf, key)); in mbedtls_pk_write_pubkey_der()
228 if (c - buf < 1) { in mbedtls_pk_write_pubkey_der()
237 *--c = 0; in mbedtls_pk_write_pubkey_der()
240 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_pk_write_pubkey_der()
241 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, MBEDTLS_ASN1_BIT_STRING)); in mbedtls_pk_write_pubkey_der()
246 MBEDTLS_ASN1_CHK_ADD(par_len, pk_write_ec_param(&c, buf, mbedtls_pk_ec(*key))); in mbedtls_pk_write_pubkey_der()
279 MBEDTLS_ASN1_CHK_ADD(par_len, mbedtls_asn1_write_oid(&c, buf, in mbedtls_pk_write_pubkey_der()
299 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_algorithm_identifier(&c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
[all …]
Dx509write_csr.c191 unsigned char *c; in mbedtls_x509write_csr_set_key_usage() local
194 c = buf + 4; in mbedtls_x509write_csr_set_key_usage()
196 ret = mbedtls_asn1_write_named_bitstring(&c, buf, &key_usage, 8); in mbedtls_x509write_csr_set_key_usage()
203 0, c, (size_t) ret); in mbedtls_x509write_csr_set_key_usage()
215 unsigned char *c; in mbedtls_x509write_csr_set_ns_cert_type() local
218 c = buf + 4; in mbedtls_x509write_csr_set_ns_cert_type()
220 ret = mbedtls_asn1_write_named_bitstring(&c, buf, &ns_cert_type, 8); in mbedtls_x509write_csr_set_ns_cert_type()
227 0, c, (size_t) ret); in mbedtls_x509write_csr_set_ns_cert_type()
245 unsigned char *c, *c2; in x509write_csr_der_internal() local
256 c = buf + size; in x509write_csr_der_internal()
[all …]
Daria.c128 uint32_t *c, uint32_t *d) in aria_a() argument
135 *d = ARIA_P1(*c); // 98ba in aria_a()
136 *c = ARIA_P1(tb); // fedc in aria_a()
139 ta = ARIA_P1(ta) ^ tc ^ *c; // 2301+5476+89ab+fedc in aria_a()
148 *c ^= ARIA_P1(tc) ^ ta; // 0123+1032+4567+7654+ab89+dcfe+fedc OUT in aria_a()
160 uint32_t *c, uint32_t *d, in aria_sl() argument
172 *c = ((uint32_t) sa[MBEDTLS_BYTE_0(*c)]) ^ in aria_sl()
173 (((uint32_t) sb[MBEDTLS_BYTE_1(*c)]) << 8) ^ in aria_sl()
174 (((uint32_t) sc[MBEDTLS_BYTE_2(*c)]) << 16) ^ in aria_sl()
175 (((uint32_t) sd[MBEDTLS_BYTE_3(*c)]) << 24); in aria_sl()
[all …]
Dx509_create.c129 const char *s = name, *c = s; in mbedtls_x509_string_to_names() local
140 while (c <= end) { in mbedtls_x509_string_to_names()
141 if (in_tag && *c == '=') { in mbedtls_x509_string_to_names()
142 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()
154 c++; in mbedtls_x509_string_to_names()
157 if (c == end || *c != ',') { in mbedtls_x509_string_to_names()
161 } else if (!in_tag && (*c == ',' || c == end)) { in mbedtls_x509_string_to_names()
174 while (c < end && *(c + 1) == ' ') { in mbedtls_x509_string_to_names()
[all …]
DMakefile304 .c.o:
310 error.c version_features.c \
311 ssl_debug_helpers_generated.c \
312 psa_crypto_driver_wrappers.c
315 error.c: ../scripts/generate_errors.pl
316 error.c: ../scripts/data_files/error.fmt
317 error.c: $(filter-out %config%,$(wildcard ../include/mbedtls/*.h))
318 error.c:
322 ssl_debug_helpers_generated.c: ../scripts/generate_ssl_debug_helpers.py
323 ssl_debug_helpers_generated.c: $(filter-out %config%,$(wildcard ../include/mbedtls/*.h))
[all …]
Dbignum_core.c361 mbedtls_mpi_uint c = 0; in mbedtls_mpi_core_add() local
364 mbedtls_mpi_uint t = c + A[i]; in mbedtls_mpi_core_add()
365 c = (t < A[i]); in mbedtls_mpi_core_add()
367 c += (t < B[i]); in mbedtls_mpi_core_add()
371 return c; in mbedtls_mpi_core_add()
379 mbedtls_mpi_uint c = 0; in mbedtls_mpi_core_add_if() local
386 mbedtls_mpi_uint t = c + X[i]; in mbedtls_mpi_core_add_if()
387 c = (t < X[i]); in mbedtls_mpi_core_add_if()
389 c += (t < add); in mbedtls_mpi_core_add_if()
393 return c; in mbedtls_mpi_core_add_if()
[all …]
/mbedtls-3.5.0/programs/
DMakefile10 MBEDTLS_TEST_OBJS:=$(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/*.c ${MBEDTLS_TEST_PATH}/driv…
176 GENERATED_FILES = psa/psa_constant_names_generated.c test/query_config.c
179 psa/psa_constant_names_generated.c: ../scripts/generate_psa_constants.py
180 psa/psa_constant_names_generated.c: ../include/psa/crypto_values.h
181 psa/psa_constant_names_generated.c: ../include/psa/crypto_extra.h
182 psa/psa_constant_names_generated.c: ../tests/suites/test_suite_psa_crypto_metadata.data
183 psa/psa_constant_names_generated.c:
187 test/query_config.c: ../scripts/generate_query_config.pl
194 test/query_config.c: ../scripts/data_files/query_config.fmt
195 test/query_config.c:
[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 …]
/mbedtls-3.5.0/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:
Dserver9-with-ca.crt35 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18:
40 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90:
41 71:f1:bd:83:d9:3f:d6:a5:e2:3c:2a:8f:ef:27:60:
49 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9:
66 32:89:be:63:47:53:ff:b6:be:f1:2e:8c:54:c0:99:3f:a0:b9:
67 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62:
68 09:3a:24:e4:36:d9:e9:2c:da:38:d0:73:75:61:d7:c1:6c:26:
69 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d:
70 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5:
72 e9:c0:3e:a8:7a:72:3d:87:53:1f:e5:2c:84:84:e7:9a:9e:7f:
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:
Dserver10_int3_int-ca2_ca.crt56 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18:
61 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90:
62 71:f1:bd:83:d9:3f:d6:a5:e2:3c:2a:8f:ef:27:60:
70 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9:
87 32:89:be:63:47:53:ff:b6:be:f1:2e:8c:54:c0:99:3f:a0:b9:
88 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62:
89 09:3a:24:e4:36:d9:e9:2c:da:38:d0:73:75:61:d7:c1:6c:26:
90 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d:
91 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5:
93 e9:c0:3e:a8:7a:72:3d:87:53:1f:e5:2c:84:84:e7:9a:9e:7f:
/mbedtls-3.5.0/tests/suites/
Dtest_suite_base64.function23 unsigned c;
24 for (c = 0; c <= 0xff; c++) {
25 mbedtls_test_set_step(c);
26 TEST_CF_SECRET(&c, sizeof(c));
27 unsigned char m = mbedtls_ct_uchar_mask_of_range(low, high, c);
28 TEST_CF_PUBLIC(&c, sizeof(c));
30 if (low <= c && c <= high) {
59 for (unsigned c = 0; c <= 0xff; c++) {
60 mbedtls_test_set_step(c);
62 p = memchr(base64_digits, c, sizeof(base64_digits) - 1);
[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…
/mbedtls-3.5.0/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:
/mbedtls-3.5.0/tests/data_files/dir2/
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:
/mbedtls-3.5.0/tests/data_files/dir3/
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:
/mbedtls-3.5.0/tests/src/
Dhelpers.c51 int mbedtls_test_ascii2uc(const char c, unsigned char *uc) in mbedtls_test_ascii2uc() argument
53 if ((c >= '0') && (c <= '9')) { in mbedtls_test_ascii2uc()
54 *uc = c - '0'; in mbedtls_test_ascii2uc()
55 } else if ((c >= 'a') && (c <= 'f')) { in mbedtls_test_ascii2uc()
56 *uc = c - 'a' + 10; in mbedtls_test_ascii2uc()
57 } else if ((c >= 'A') && (c <= 'F')) { in mbedtls_test_ascii2uc()
58 *uc = c - 'A' + 10; in mbedtls_test_ascii2uc()
/mbedtls-3.5.0/programs/ssl/
Dssl_context_info.c364 int c = 0; in read_next_b64_code() local
366 while (EOF != c) { in read_next_b64_code()
369 c = fgetc(b64_file); in read_next_b64_code()
372 if (c == '=' && pad == 1) { in read_next_b64_code()
376 } else if ((c >= 'A' && c <= 'Z') || in read_next_b64_code()
377 (c >= 'a' && c <= 'z') || in read_next_b64_code()
378 (c >= '0' && c <= '9') || in read_next_b64_code()
379 c == '+' || c == '/') { in read_next_b64_code()
381 } else if (c == '=') { in read_next_b64_code()
384 } else if (c == '-') { in read_next_b64_code()
[all …]
/mbedtls-3.5.0/tests/
DMakefile163 MBEDTLS_TEST_OBJS=$(patsubst %.c,%.o,$(wildcard src/*.c src/drivers/*.c src/test_helpers/*.c))
176 src/%.o : src/%.c $(TEST_OBJS_DEPS)
180 src/drivers/%.o : src/drivers/%.c
184 src/test_helpers/%.o : src/test_helpers/%.c
188 C_FILES := $(addsuffix .c,$(APPS))
189 c: $(C_FILES) target
206 %.c: suites/$$(firstword $$(subst ., ,$$*)).function suites/%.data scripts/generate_test_code.py su…
217 $(BINARIES): %$(EXEXT): %.c $(MBEDLIBS) $(TEST_OBJS_DEPS) $(MBEDTLS_TEST_OBJS)
223 rm -rf $(BINARIES) *.c *.datax
230 if exist *.c del /Q /F *.c
/mbedtls-3.5.0/programs/fuzz/
DMakefile2 MBEDTLS_TEST_OBJS:=$(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/*.c ${MBEDTLS_TEST_PATH}/driv…
33 APPS = $(basename $(wildcard fuzz_*.c))
47 C_FILES := $(addsuffix .c,$(APPS))
49 %.o: %.c

1234567