Home
last modified time | relevance | path

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

12345678

/mbedtls/tests/suites/
A Dtest_suite_platform_printf.data65 printf "%c%c", SPACE, SPACE
68 printf "%c%c", NEWLINE, SPACE
74 printf "%c%c", COLON, SPACE
77 printf "%c%c", QUESTION, SPACE
80 printf "%c%c", BACKSLASH, SPACE
83 printf "%c%c", SPACE, BACKSLASH
86 printf "%c%c", COLON, COLON
89 printf "%c%c", COLON, NEWLINE
95 printf "%c%c", QUESTION, NEWLINE
104 printf "%c%c", BACKSLASH, COLON
[all …]
A 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…
A Dtest_suite_constant_time.function122 int expected = c ? t : f;
123 int expected0 = c ? t : 0;
125 TEST_CF_SECRET(&c, sizeof(c));
132 TEST_CF_PUBLIC(&c, sizeof(c));
145 mbedtls_ct_uint_t expected = c ? t : f;
148 TEST_CF_SECRET(&c, sizeof(c));
168 TEST_CF_PUBLIC(&c, sizeof(c));
185 TEST_CF_SECRET(&c, sizeof(c));
187 mbedtls_ct_zeroize_if(c, buf, len);
188 TEST_CF_PUBLIC(&c, sizeof(c));
[all …]
A Dtest_suite_base64.function39 for (unsigned c = 0; c <= 0xff; c++) {
40 mbedtls_test_set_step(c);
42 p = memchr(base64_digits, c, sizeof(base64_digits) - 1);
48 TEST_CF_SECRET(&c, sizeof(c));
49 signed char actual = mbedtls_ct_base64_dec_value(c);
50 TEST_CF_PUBLIC(&c, sizeof(c));
/mbedtls/library/
A DCMakeLists.txt14 aes.c
17 aria.c
27 ccm.c
35 des.c
36 dhm.c
40 ecp.c
46 gcm.c
50 lms.c
51 md.c
52 md5.c
[all …]
A Dx509write_crt.c285 unsigned char *c; in mbedtls_x509write_crt_set_key_usage() local
302 c = buf + 5; in mbedtls_x509write_crt_set_key_usage()
367 unsigned char *c; in mbedtls_x509write_crt_set_ns_cert_type() local
370 c = buf + 4; in mbedtls_x509write_crt_set_ns_cert_type()
440 c = buf + size; in mbedtls_x509write_crt_der()
486 c -= pub_len; in mbedtls_x509write_crt_der()
553 if (*c & 0x80) { in mbedtls_x509write_crt_der()
557 *(--c) = 0x0; in mbedtls_x509write_crt_der()
624 memmove(buf, c, len); in mbedtls_x509write_crt_der()
625 c = buf + len; in mbedtls_x509write_crt_der()
[all …]
A Dbn_mul.h64 MBEDTLS_BYTES_TO_T_UINT_8(a, b, c, d, 0, 0, 0, 0)
530 : "=m" (c), "=m" (d), "=m" (s) \
531 : "m" (s), "m" (d), "m" (c), "m" (b) \
562 : "=m" (c), "=m" (d), "=m" (s) \
563 : "m" (s), "m" (d), "m" (c), "m" (b) \
654 : "=m" (c), "=m" (d), "=m" (s) \
655 : "m" (s), "m" (d), "m" (c), "m" (b) \
1039 r0 += c; r1 += (r0 < c); \
1041 c = r1; *(d++) = r0;
1065 r0 += c; r1 += (r0 < c); \
[all …]
A Dx509_create.c121 return ('0' <= c && c <= '9') ? (c - '0') : in hex_to_int()
122 ('a' <= c && c <= 'f') ? (c - 'a' + 10) : in hex_to_int()
123 ('A' <= c && c <= 'F') ? (c - 'A' + 10) : -1; in hex_to_int()
143 const char *c; in parse_attribute_value_string() local
148 for (c = s; c < end; c++) { in parse_attribute_value_string()
150 c++; in parse_attribute_value_string()
153 if (c + 1 < end && (n = hexpair_to_int(c)) != -1) { in parse_attribute_value_string()
159 } else if (c < end && strchr(" ,=+<>#;\"\\", *c)) { in parse_attribute_value_string()
317 if (!in_attr_type && ((*c == ',' && *(c-1) != '\\') || c == end)) { in mbedtls_x509_string_to_names()
359 while (c < end && *(c + 1) == ' ') { in mbedtls_x509_string_to_names()
[all …]
A Dx509write_csr.c86 unsigned char *c; in mbedtls_x509write_csr_set_key_usage() local
89 c = buf + 4; in mbedtls_x509write_csr_set_key_usage()
110 unsigned char *c; in mbedtls_x509write_csr_set_ns_cert_type() local
113 c = buf + 4; in mbedtls_x509write_csr_set_ns_cert_type()
140 unsigned char *c, *c2; in x509write_csr_der_internal() local
151 c = buf + size; in x509write_csr_der_internal()
184 &c, buf, in x509write_csr_der_internal()
189 c -= pub_len; in x509write_csr_der_internal()
206 &c, buf, in x509write_csr_der_internal()
215 c, in x509write_csr_der_internal()
[all …]
A Daria.c154 *c = ((uint32_t) sa[MBEDTLS_BYTE_0(*c)]) ^ in aria_sl()
277 uint32_t a, b, c, d; in aria_fo_xor() local
281 c = p[2] ^ k[2]; in aria_fo_xor()
289 r[2] = c ^ x[2]; in aria_fo_xor()
303 c = p[2] ^ k[2]; in aria_fe_xor()
311 r[2] = c ^ x[2]; in aria_fe_xor()
481 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
571 unsigned char c; in mbedtls_aria_crypt_cfb128() local
594 iv[n] = c; in mbedtls_aria_crypt_cfb128()
628 int c, i; in mbedtls_aria_crypt_ctr() local
[all …]
A Dbase64.c41 signed char mbedtls_ct_base64_dec_value(unsigned char c) in mbedtls_ct_base64_dec_value() argument
48 val |= mbedtls_ct_uchar_in_range_if('A', 'Z', c, c - 'A' + 0 + 1); in mbedtls_ct_base64_dec_value()
49 val |= mbedtls_ct_uchar_in_range_if('a', 'z', c, c - 'a' + 26 + 1); in mbedtls_ct_base64_dec_value()
50 val |= mbedtls_ct_uchar_in_range_if('0', '9', c, c - '0' + 52 + 1); in mbedtls_ct_base64_dec_value()
51 val |= mbedtls_ct_uchar_in_range_if('+', '+', c, c - '+' + 62 + 1); in mbedtls_ct_base64_dec_value()
52 val |= mbedtls_ct_uchar_in_range_if('/', '/', c, c - '/' + 63 + 1); in mbedtls_ct_base64_dec_value()
A Dbignum_core.c414 c = (t < A[i]); in mbedtls_mpi_core_add()
420 return c; in mbedtls_mpi_core_add()
435 c = (t < X[i]); in mbedtls_mpi_core_add_if()
437 c += (t < add); in mbedtls_mpi_core_add_if()
441 return c; in mbedtls_mpi_core_add_if()
458 return c; in mbedtls_mpi_core_sub()
491 *d += c; in mbedtls_mpi_core_mla()
492 c = (*d < c); in mbedtls_mpi_core_mla()
496 return c; in mbedtls_mpi_core_mla()
852 c = (t > s); in mbedtls_mpi_core_sub_int()
[all …]
A DMakefile6 error.c version_features.c \
7 ssl_debug_helpers_generated.c \
9 psa_crypto_driver_wrappers_no_static.c
336 .c.o:
351 error.c: $(gen_file_dep) ../scripts/generate_errors.pl
352 error.c: $(gen_file_dep) ../scripts/data_files/error.fmt
354 error.c:
360 ssl_debug_helpers_generated.c:
364 version_features.c: $(gen_file_dep) ../scripts/generate_features.pl
372 version_features.c:
[all …]
A Dpkwrite.c440 unsigned char *c; in mbedtls_pk_write_pubkey_der() local
450 c = buf + size; in mbedtls_pk_write_pubkey_der()
454 if (c - buf < 1) { in mbedtls_pk_write_pubkey_der()
463 *--c = 0; in mbedtls_pk_write_pubkey_der()
466 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_pk_write_pubkey_der()
497 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_pk_write_pubkey_der()
506 unsigned char *c; in mbedtls_pk_write_key_der() local
512 c = buf + size; in mbedtls_pk_write_key_der()
516 return pk_write_rsa_der(&c, buf, key); in mbedtls_pk_write_key_der()
523 return pk_write_ec_rfc8410_der(&c, buf, key); in mbedtls_pk_write_key_der()
[all …]
A D.gitignore6 #/error.c
7 #/version_features.c
8 #/ssl_debug_helpers_generated.c
10 #/psa_crypto_driver_wrappers_no_static.c
/mbedtls/programs/
A DMakefile126 GENERATED_FILES = psa/psa_constant_names_generated.c test/query_config.c
133 psa/psa_constant_names_generated.c:
145 test/query_config.c:
161 hash/hello$(EXEXT): hash/hello.c $(DEP)
185 pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP)
189 pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP)
193 pkey/key_app$(EXEXT): pkey/key_app.c $(DEP)
213 pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP)
265 psa/psa_constant_names$(EXEXT): psa/psa_constant_names.c psa/psa_constant_names_generated.c $(DEP)
297 ssl/ssl_test_common_source.c \
[all …]
A DREADME.md14 * [`hash/hello.c`](hash/hello.c): hello-world program for MD5.
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…
34 * [`pkey/rsa_encrypt.c`](pkey/rsa_encrypt.c), [`pkey/rsa_decrypt.c`](pkey/rsa_decrypt.c): loads an …
38 * [`pkey/rsa_sign.c`](pkey/rsa_sign.c), [`pkey/rsa_verify.c`](pkey/rsa_verify.c): loads an RSA priv…
40 * [`pkey/rsa_sign_pss.c`](pkey/rsa_sign_pss.c), [`pkey/rsa_verify_pss.c`](pkey/rsa_verify_pss.c): l…
52 * [`pkey/mpi_demo.c`](pkey/mpi_demo.c): demonstrates operations on big integers.
93 * [`test/benchmark.c`](test/benchmark.c): benchmark for cryptographic algorithms.
95 * [`test/selftest.c`](test/selftest.c): runs the self-test function in each library module.
115 * [`x509/crl_app.c`](x509/crl_app.c): loads and dumps a certificate revocation list (CRL).
[all …]
/mbedtls/tests/data_files/
A 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:
32 a4:c4:75:af:eb:0c:a6:60:b7:36:8c:38:c8:e8:09:
[all …]
A 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:
A 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:
A Ddh.999.pem3 4f:b8:d2:d8:3c:b3:02:c9:64:f5:99:fe:61:cc:b3:
4 69:1c:ba:bb:a2:33:db:38:2f:85:87:b7:12:fb:69:
5 6e:a5:32:3e:ff:24:df:c4:61:07:0c:e1:88:72:fa:
7 69:be:45:71:6e:ac:c5:56:d8:22:9e:c4:9c:23:2b:
9 82:bc:09:7c:cd:e1:09:21:1e:3d:69:2a:76:41:00:
/mbedtls/tests/data_files/dir1/
A 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/tests/data_files/dir2/
A 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/tests/data_files/dir3/
A 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/programs/ssl/
A Dssl_context_info.c351 int c = 0; in read_next_b64_code() local
353 while (EOF != c) { in read_next_b64_code()
356 c = fgetc(b64_file); in read_next_b64_code()
363 } else if ((c >= 'A' && c <= 'Z') || in read_next_b64_code()
364 (c >= 'a' && c <= 'z') || in read_next_b64_code()
365 (c >= '0' && c <= '9') || in read_next_b64_code()
366 c == '+' || c == '/') { in read_next_b64_code()
368 } else if (c == '=') { in read_next_b64_code()
371 } else if (c == '-') { in read_next_b64_code()
372 c = '+'; in read_next_b64_code()
[all …]

Completed in 30 milliseconds

12345678