/mbedtls-3.5.0/library/ |
D | bn_mul.h | 50 #define MBEDTLS_BYTES_TO_T_UINT_4(a, b, c, d) \ argument 54 ((mbedtls_mpi_uint) (d) << 24) 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 69 ((mbedtls_mpi_uint) (d) << 24) | \ 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 …]
|
D | poly1305.c | 186 uint64_t d; in poly1305_compute_mac() local 204 d = ((uint64_t) acc0 + 5U); in poly1305_compute_mac() 205 g0 = (uint32_t) d; in poly1305_compute_mac() 206 d = ((uint64_t) acc1 + (d >> 32)); in poly1305_compute_mac() 207 g1 = (uint32_t) d; in poly1305_compute_mac() 208 d = ((uint64_t) acc2 + (d >> 32)); in poly1305_compute_mac() 209 g2 = (uint32_t) d; in poly1305_compute_mac() 210 d = ((uint64_t) acc3 + (d >> 32)); in poly1305_compute_mac() 211 g3 = (uint32_t) d; in poly1305_compute_mac() 212 g4 = acc4 + (uint32_t) (d >> 32U); in poly1305_compute_mac() [all …]
|
D | aria.c | 128 uint32_t *c, uint32_t *d) in aria_a() argument 134 tb = ARIA_P2(*d); // efcd in aria_a() 135 *d = ARIA_P1(*c); // 98ba in aria_a() 137 ta ^= *d; // 4567+98ba in aria_a() 140 tb ^= ARIA_P2(*d); // ba98+efcd in aria_a() 146 *d ^= ARIA_P1(ta) ^ tc; // 1032+2301+6745+7654+98ba+ba98+cdef OUT in aria_a() 160 uint32_t *c, uint32_t *d, in aria_sl() argument 176 *d = ((uint32_t) sa[MBEDTLS_BYTE_0(*d)]) ^ in aria_sl() 177 (((uint32_t) sb[MBEDTLS_BYTE_1(*d)]) << 8) ^ in aria_sl() 178 (((uint32_t) sc[MBEDTLS_BYTE_2(*d)]) << 16) ^ in aria_sl() [all …]
|
D | ecdh.c | 67 mbedtls_mpi *d, mbedtls_ecp_point *Q, in ecdh_gen_public_restartable() argument 80 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, d, f_rng, p_rng)); in ecdh_gen_public_restartable() 83 MBEDTLS_MPI_CHK(mbedtls_ecp_mul_restartable(grp, Q, d, &grp->G, in ecdh_gen_public_restartable() 93 int mbedtls_ecdh_gen_public(mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecdh_gen_public() argument 97 return ecdh_gen_public_restartable(grp, d, Q, f_rng, p_rng, NULL); in mbedtls_ecdh_gen_public() 107 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in ecdh_compute_shared_restartable() argument 117 MBEDTLS_MPI_CHK(mbedtls_ecp_mul_restartable(grp, &P, d, Q, in ecdh_compute_shared_restartable() 137 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in mbedtls_ecdh_compute_shared() argument 141 return ecdh_compute_shared_restartable(grp, z, Q, d, in mbedtls_ecdh_compute_shared() 149 mbedtls_mpi_init(&ctx->d); in ecdh_init_internal() [all …]
|
D | ecp.c | 542 mbedtls_mpi_init(&key->d); in mbedtls_ecp_keypair_init() 610 mbedtls_mpi_free(&key->d); in mbedtls_ecp_keypair_free() 1792 static void ecp_comb_recode_core(unsigned char x[], size_t d, in ecp_comb_recode_core() argument 1798 memset(x, 0, d+1); in ecp_comb_recode_core() 1801 for (i = 0; i < d; i++) { in ecp_comb_recode_core() 1803 x[i] |= mbedtls_mpi_get_bit(m, i + d * j) << j; in ecp_comb_recode_core() 1809 for (i = 1; i <= d; i++) { in ecp_comb_recode_core() 1859 unsigned char w, size_t d, in ecp_precompute_comb() argument 1914 for (; j < d * (w - 1); j++) { in ecp_precompute_comb() 1917 i = 1U << (j / d); in ecp_precompute_comb() [all …]
|
D | chacha20.c | 65 size_t d) in chacha20_quarter_round() argument 69 state[d] ^= state[a]; in chacha20_quarter_round() 70 state[d] = ROTL32(state[d], 16); in chacha20_quarter_round() 73 state[c] += state[d]; in chacha20_quarter_round() 79 state[d] ^= state[a]; in chacha20_quarter_round() 80 state[d] = ROTL32(state[d], 8); in chacha20_quarter_round() 83 state[c] += state[d]; in chacha20_quarter_round()
|
D | ecdsa.c | 244 const mbedtls_mpi *d, const unsigned char *buf, size_t blen, in mbedtls_ecdsa_sign_restartable() argument 262 if (mbedtls_mpi_cmp_int(d, 1) < 0 || mbedtls_mpi_cmp_mpi(d, &grp->N) >= 0) { in mbedtls_ecdsa_sign_restartable() 351 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(s, pr, d)); in mbedtls_ecdsa_sign_restartable() 393 const mbedtls_mpi *d, const unsigned char *buf, size_t blen, in mbedtls_ecdsa_sign() argument 397 return mbedtls_ecdsa_sign_restartable(grp, r, s, d, buf, blen, in mbedtls_ecdsa_sign() 411 const mbedtls_mpi *d, const unsigned char *buf, size_t blen, in mbedtls_ecdsa_sign_det_restartable() argument 447 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(d, data, grp_len)); in mbedtls_ecdsa_sign_det_restartable() 462 ret = mbedtls_ecdsa_sign(grp, r, s, d, buf, blen, in mbedtls_ecdsa_sign_det_restartable() 465 ret = mbedtls_ecdsa_sign_restartable(grp, r, s, d, buf, blen, in mbedtls_ecdsa_sign_det_restartable() 483 mbedtls_mpi *s, const mbedtls_mpi *d, in mbedtls_ecdsa_sign_det_ext() argument [all …]
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | build_tree.py | 33 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]): 42 for d in [os.path.curdir, 45 if looks_like_mbedtls_root(d): 46 os.chdir(d) 59 for d in ['.', os.path.pardir] \ 61 d = os.path.abspath(os.path.join(path, d)) 62 if d in dirs: 64 dirs.add(d) 65 if looks_like_mbedtls_root(d): 66 return d
|
/mbedtls-3.5.0/tests/data_files/dir1/ |
D | test-ca.crt | 15 00:c0:df:37:fc:17:bb:e0:96:9d:3f:86:de:96:32: 16 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 23 c3:c6:9f:cb:ba:ec:60:7d:b7:e6:84:32:be:4f:fb: 25 e4:2e:bd:fc:2e:ee:e2:41:55:c0:34:2e:7d:24:72: 26 69:cb:47:b1:14:40:83:7d:67:f4:86:f6:31:ab:f1: 28 58:b1:54:0d:21:9a:73:37:a1:30:cf:6f:92:dc:f6: 46 1d:87:89:4a:c4:78:11:d8:07:b5:d7:22:50:8e:48:eb:62:7a: 48 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: [all …]
|
/mbedtls-3.5.0/tests/data_files/dir2/ |
D | test-ca.crt | 15 00:c0:df:37:fc:17:bb:e0:96:9d:3f:86:de:96:32: 16 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 23 c3:c6:9f:cb:ba:ec:60:7d:b7:e6:84:32:be:4f:fb: 25 e4:2e:bd:fc:2e:ee:e2:41:55:c0:34:2e:7d:24:72: 26 69:cb:47:b1:14:40:83:7d:67:f4:86:f6:31:ab:f1: 28 58:b1:54:0d:21:9a:73:37:a1:30:cf:6f:92:dc:f6: 46 1d:87:89:4a:c4:78:11:d8:07:b5:d7:22:50:8e:48:eb:62:7a: 48 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: [all …]
|
/mbedtls-3.5.0/tests/data_files/dir3/ |
D | test-ca.crt | 15 00:c0:df:37:fc:17:bb:e0:96:9d:3f:86:de:96:32: 16 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 23 c3:c6:9f:cb:ba:ec:60:7d:b7:e6:84:32:be:4f:fb: 25 e4:2e:bd:fc:2e:ee:e2:41:55:c0:34:2e:7d:24:72: 26 69:cb:47:b1:14:40:83:7d:67:f4:86:f6:31:ab:f1: 28 58:b1:54:0d:21:9a:73:37:a1:30:cf:6f:92:dc:f6: 46 1d:87:89:4a:c4:78:11:d8:07:b5:d7:22:50:8e:48:eb:62:7a: 48 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: [all …]
|
/mbedtls-3.5.0/tests/data_files/ |
D | server9-with-ca.crt | 34 00:c0:df:37:fc:17:bb:e0:96:9d:3f:86:de:96:32: 35 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18: 37 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 42 c3:c6:9f:cb:ba:ec:60:7d:b7:e6:84:32:be:4f:fb: 44 e4:2e:bd:fc:2e:ee:e2:41:55:c0:34:2e:7d:24:72: 45 69:cb:47:b1:14:40:83:7d:67:f4:86:f6:31:ab:f1: 47 58:b1:54:0d:21:9a:73:37:a1:30:cf:6f:92:dc:f6: 65 1d:87:89:4a:c4:78:11:d8:07:b5:d7:22:50:8e:48:eb:62:7a: 67 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62: 69 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: [all …]
|
D | server10_int3_int-ca2_ca.crt | 55 00:c0:df:37:fc:17:bb:e0:96:9d:3f:86:de:96:32: 56 7d:44:a5:16:a0:cd:21:f1:99:d4:ec:ea:cb:7c:18: 58 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 63 c3:c6:9f:cb:ba:ec:60:7d:b7:e6:84:32:be:4f:fb: 65 e4:2e:bd:fc:2e:ee:e2:41:55:c0:34:2e:7d:24:72: 66 69:cb:47:b1:14:40:83:7d:67:f4:86:f6:31:ab:f1: 68 58:b1:54:0d:21:9a:73:37:a1:30:cf:6f:92:dc:f6: 86 1d:87:89:4a:c4:78:11:d8:07:b5:d7:22:50:8e:48:eb:62:7a: 88 37:23:72:5f:0d:46:59:8f:d8:47:cd:97:4c:9f:07:0c:12:62: 90 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: [all …]
|
D | dh.optlen.pem | 7 93:8e:a1:1b:48:dc:51:5d:ab:7a:bc:bb:1e:0c:7f: 8 d6:65:11:ed:c0:d8:65:51:b7:63:24:96:e0:3d:f9: 10 5f:5b:f0:0d:f8:28:80:60:20:e8:75:c0:09:26:e4: 15 18:76:e7:ef:73:9d:51:60:d0:95:c9:68:41:88:b0: 16 c8:75:5c:7a:46:8d:47:f5:6d:6d:b9:ea:01:29:24: 20 6d:3e:95:db:ff:f1:eb:64:69:2e:dc:0a:44:f3:d3: 27 6a:57:8d:70:c5:c5:60:ad:2b:db:92:4c:4a:4d:be: 29 80:3d:be:ca:60:c3:3e:12:89:c1:a0:3a:c2:c6:c4: 31 2d:52:13:ed:4a:5f:1f:5b:a8:b5:e1:ed:3d:a9:51: 35 5b:2e:a1:fa:34:40:5d:83:98:2f:ba:40:e6:d8:52: [all …]
|
D | dh.1000.pem | 5 23:84:3c:0d:55:8c:b9:7d:a9:d5:9a:80:82:fb:50: 17 ba:0d:92:08:9d:d9:b3:28:41:5d:88:4e:fe:3c:ae: 19 d0:1e:7c:4e:22:07:d2:b5:f9:9a:9e:52:e2:97:9d: 20 c3:cb:0d:66:33:75:95:a7:96:6e:69:ec:16:bd:06: 21 4a:1a:dc:b2:d4:29:23:ab:2e:8f:7f:6a:84:1d:82: 22 23:6e:42:8c:1e:70:3d:21:bb:b9:b9:8f:f9:fd:9c:
|
D | dh.998.pem | 4 b3:35:e2:8d:66:fc:6a:6e:94:f3:df:97:f2:89:31: 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: 9 c7:11:b9:64:43:40:75:c7:4a:ef:a7:2d:00:e2:62: 10 8f:93:78:96:8f:2c:25:8d:7d:1f:eb:5c:3c:bf:51:
|
D | dh.999.pem | 8 bd:6d:3b:b6:02:4f:5d:12:a7:ac:90:b8:9e:be:93: 9 82:bc:09:7c:cd:e1:09:21:1e:3d:69:2a:76:41:00: 10 68:6d:b7:e8:e8:df:d6:1b:82:93:d9:21:4a:ea:71:
|
/mbedtls-3.5.0/scripts/ |
D | generate_visualc_files.pl | 111 foreach my $d (@thirdparty_header_dirs, @thirdparty_source_dirs) { 112 if (not (-d $d)) { return 0; } 114 return -d $vsx_dir 115 && -d $mbedtls_header_dir 116 && -d $psa_header_dir 117 && -d $source_dir 118 && -d $test_source_dir 119 && -d $test_drivers_source_dir 120 && -d $test_header_dir 121 && -d $test_drivers_header_dir [all …]
|
D | generate_features.pl | 26 -d $include_dir or die "No such directory: $include_dir\n"; 27 -d $data_dir or die "No such directory: $data_dir\n"; 33 unless( -d $include_dir && -d $data_dir ) { 35 -d $include_dir && -d $data_dir
|
D | generate_psa_constants.py | 274 d = self.key_types_from_curve 276 return ''.join([make(k, d[k]) for k in sorted(d.keys())]) 279 d = self.key_types_from_group 281 return ''.join([make(k, d[k]) for k in sorted(d.keys())]) 302 d = self.algorithms_from_hash 304 return ''.join([make(k, d[k]) for k in sorted(d.keys())])
|
D | generate_errors.pl | 32 -d $include_dir or die "No such directory: $include_dir\n"; 33 -d $data_dir or die "No such directory: $data_dir\n"; 39 unless( -d $include_dir && -d $data_dir ) { 41 -d $include_dir && -d $data_dir
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_debug.data | 32 … (16 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f .............… 35 … (17 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f .............… 38 …d 0e 0f ................\nMyFile(0999)\: 0010\: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f … 53 …d 00 fe d1 49 1f e1 5d f2 84 df de 4a 14\nMyFile(0999)\: 2f 68 aa 8d 41 20 23 19 5c ee 66 88 3e 6… 56 …d 00 fe d1 49 1f e1 5d f2 84 df de 4a\nMyFile(0999)\: 14 2f 68 aa 8d 41 20 23 19 5c ee 66 88 3e 6… 59 …d 00 fe d1 49 1f e1 5d f2 84 df de 4a\nMyFile(0999)\: 14 2f 68 aa 8d 41 20 23 19 5c ee 66 88 3e 6… 63 …d 40 6a d5 55 53 8b fd 36 ee 82 65 2e\nMyFile(0999)\: 15 61 5e 89 bf b8 e8 45 90 db ee 88 16 52 d… 67 … 52 b4 91 95\nMyFile(0999)\: 39 0b 23 df 5f 17 24 62 48 fc 1a 95 29 ce 2c 2d\nMyFile(0999)\: valu…
|
D | test_suite_version.function | 20 mbedtls_snprintf(build_str, 100, "%d.%d.%d", MBEDTLS_VERSION_MAJOR, 23 mbedtls_snprintf(build_str_full, 100, "mbed TLS %d.%d.%d", MBEDTLS_VERSION_MAJOR,
|
D | test_suite_ecdsa.function | 21 mbedtls_mpi d, r, s; 27 mbedtls_mpi_init(&d); mbedtls_mpi_init(&r); mbedtls_mpi_init(&s); 32 TEST_ASSERT(mbedtls_ecp_gen_keypair(&grp, &d, &Q, 36 TEST_ASSERT(mbedtls_ecdsa_sign(&grp, &r, &s, &d, buf, sizeof(buf), 44 mbedtls_mpi_free(&d); mbedtls_mpi_free(&r); mbedtls_mpi_free(&s); 53 mbedtls_mpi d, r, s; 59 mbedtls_mpi_init(&d); mbedtls_mpi_init(&r); mbedtls_mpi_init(&s); 67 TEST_ASSERT(mbedtls_ecp_gen_keypair(&grp, &d, &Q, 71 TEST_ASSERT(mbedtls_ecdsa_sign(&grp, &r, &s, &d, buf, sizeof(buf), 79 mbedtls_mpi_free(&d); mbedtls_mpi_free(&r); mbedtls_mpi_free(&s); [all …]
|
/mbedtls-3.5.0/include/mbedtls/ |
D | ecdh.h | 100 mbedtls_mpi MBEDTLS_PRIVATE(d); /*!< The private key. */ 120 mbedtls_mpi MBEDTLS_PRIVATE(d); /*!< The private key. */ 190 int mbedtls_ecdh_gen_public(mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, 226 const mbedtls_ecp_point *Q, const mbedtls_mpi *d,
|