/mbedtls-3.5.0/library/ |
D | md5.c | 80 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member 111 local.B = ctx->state[1]; in mbedtls_internal_md5_process() 117 P(local.A, local.B, local.C, local.D, 0, 7, 0xD76AA478); in mbedtls_internal_md5_process() 118 P(local.D, local.A, local.B, local.C, 1, 12, 0xE8C7B756); in mbedtls_internal_md5_process() 119 P(local.C, local.D, local.A, local.B, 2, 17, 0x242070DB); in mbedtls_internal_md5_process() 120 P(local.B, local.C, local.D, local.A, 3, 22, 0xC1BDCEEE); in mbedtls_internal_md5_process() 121 P(local.A, local.B, local.C, local.D, 4, 7, 0xF57C0FAF); in mbedtls_internal_md5_process() 122 P(local.D, local.A, local.B, local.C, 5, 12, 0x4787C62A); in mbedtls_internal_md5_process() 123 P(local.C, local.D, local.A, local.B, 6, 17, 0xA8304613); in mbedtls_internal_md5_process() 124 P(local.B, local.C, local.D, local.A, 7, 22, 0xFD469501); in mbedtls_internal_md5_process() [all …]
|
D | ripemd160.c | 85 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_internal_ripemd160_process() member 106 local.B = local.Bp = ctx->state[1]; in mbedtls_internal_ripemd160_process() 139 P2(local.A, local.B, local.C, local.D, local.E, 0, 11, 5, 8); in mbedtls_internal_ripemd160_process() 140 P2(local.E, local.A, local.B, local.C, local.D, 1, 14, 14, 9); in mbedtls_internal_ripemd160_process() 141 P2(local.D, local.E, local.A, local.B, local.C, 2, 15, 7, 9); in mbedtls_internal_ripemd160_process() 142 P2(local.C, local.D, local.E, local.A, local.B, 3, 12, 0, 11); in mbedtls_internal_ripemd160_process() 143 P2(local.B, local.C, local.D, local.E, local.A, 4, 5, 9, 13); in mbedtls_internal_ripemd160_process() 144 P2(local.A, local.B, local.C, local.D, local.E, 5, 8, 2, 15); in mbedtls_internal_ripemd160_process() 145 P2(local.E, local.A, local.B, local.C, local.D, 6, 7, 11, 15); in mbedtls_internal_ripemd160_process() 146 P2(local.D, local.E, local.A, local.B, local.C, 7, 9, 4, 5); in mbedtls_internal_ripemd160_process() [all …]
|
D | sha1.c | 81 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member 120 local.B = ctx->state[1]; in mbedtls_internal_sha1_process() 128 P(local.A, local.B, local.C, local.D, local.E, local.W[0]); in mbedtls_internal_sha1_process() 129 P(local.E, local.A, local.B, local.C, local.D, local.W[1]); in mbedtls_internal_sha1_process() 130 P(local.D, local.E, local.A, local.B, local.C, local.W[2]); in mbedtls_internal_sha1_process() 131 P(local.C, local.D, local.E, local.A, local.B, local.W[3]); in mbedtls_internal_sha1_process() 132 P(local.B, local.C, local.D, local.E, local.A, local.W[4]); in mbedtls_internal_sha1_process() 133 P(local.A, local.B, local.C, local.D, local.E, local.W[5]); in mbedtls_internal_sha1_process() 134 P(local.E, local.A, local.B, local.C, local.D, local.W[6]); in mbedtls_internal_sha1_process() 135 P(local.D, local.E, local.A, local.B, local.C, local.W[7]); in mbedtls_internal_sha1_process() [all …]
|
D | aes.c | 99 V(A5, 63, 63, C6), V(84, 7C, 7C, F8), V(99, 77, 77, EE), V(8D, 7B, 7B, F6), \ 100 V(0D, F2, F2, FF), V(BD, 6B, 6B, D6), V(B1, 6F, 6F, DE), V(54, C5, C5, 91), \ 101 V(50, 30, 30, 60), V(03, 01, 01, 02), V(A9, 67, 67, CE), V(7D, 2B, 2B, 56), \ 104 V(15, FA, FA, EF), V(EB, 59, 59, B2), V(C9, 47, 47, 8E), V(0B, F0, F0, FB), \ 106 V(BF, 9C, 9C, 23), V(F7, A4, A4, 53), V(96, 72, 72, E4), V(5B, C0, C0, 9B), \ 113 V(09, 07, 07, 0E), V(36, 12, 12, 24), V(9B, 80, 80, 1B), V(3D, E2, E2, DF), \ 115 V(1B, 09, 09, 12), V(9E, 83, 83, 1D), V(74, 2C, 2C, 58), V(2E, 1A, 1A, 34), \ 116 V(2D, 1B, 1B, 36), V(B2, 6E, 6E, DC), V(EE, 5A, 5A, B4), V(FB, A0, A0, 5B), \ 117 V(F6, 52, 52, A4), V(4D, 3B, 3B, 76), V(61, D6, D6, B7), V(CE, B3, B3, 7D), \ 118 V(7B, 29, 29, 52), V(3E, E3, E3, DD), V(71, 2F, 2F, 5E), V(97, 84, 84, 13), \ [all …]
|
D | bignum.c | 925 int mbedtls_mpi_add_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_add_abs() argument 931 MPI_VALIDATE_RET(B != NULL); in mbedtls_mpi_add_abs() 933 if (X == B) { in mbedtls_mpi_add_abs() 934 const mbedtls_mpi *T = A; A = X; B = T; in mbedtls_mpi_add_abs() 946 for (j = B->n; j > 0; j--) { in mbedtls_mpi_add_abs() 947 if (B->p[j - 1] != 0) { in mbedtls_mpi_add_abs() 964 mbedtls_mpi_uint c = mbedtls_mpi_core_add(p, p, B->p, j); in mbedtls_mpi_add_abs() 987 int mbedtls_mpi_sub_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_sub_abs() argument 994 MPI_VALIDATE_RET(B != NULL); in mbedtls_mpi_sub_abs() 996 for (n = B->n; n > 0; n--) { in mbedtls_mpi_sub_abs() [all …]
|
D | bignum_mod.c | 182 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_mul() argument 189 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_mul() 198 mbedtls_mpi_mod_raw_mul(X->p, A->p, B->p, N, T); in mbedtls_mpi_mod_mul() 210 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_sub() argument 213 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_sub() 217 mbedtls_mpi_mod_raw_sub(X->p, A->p, B->p, N); in mbedtls_mpi_mod_sub() 321 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_add() argument 324 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_add() 328 mbedtls_mpi_mod_raw_add(X->p, A->p, B->p, N); in mbedtls_mpi_mod_add()
|
D | bignum_mod_raw.c | 115 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_sub() argument 118 mbedtls_mpi_uint c = mbedtls_mpi_core_sub(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_sub() 138 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_mul() argument 142 mbedtls_mpi_core_montmul(X, A, B, N->limbs, N->p, N->limbs, in mbedtls_mpi_mod_raw_mul() 190 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_add() argument 194 carry = mbedtls_mpi_core_add(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_add()
|
D | bignum_mod_raw.h | 215 const mbedtls_mpi_uint *B, 249 const mbedtls_mpi_uint *B, 333 const mbedtls_mpi_uint *B,
|
D | bignum_mod.h | 260 const mbedtls_mpi_mod_residue *B, 293 const mbedtls_mpi_mod_residue *B, 359 const mbedtls_mpi_mod_residue *B,
|
D | bignum_core.c | 358 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_add() argument 366 t += B[i]; in mbedtls_mpi_core_add() 367 c += (t < B[i]); in mbedtls_mpi_core_add() 398 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_sub() argument 406 c = (t < B[i]) + z; in mbedtls_mpi_core_sub() 407 X[i] = t - B[i]; in mbedtls_mpi_core_sub() 469 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_montmul() argument 481 mbedtls_mpi_uint u1 = (T[0] + u0 * B[0]) * mm; in mbedtls_mpi_core_montmul() 483 (void) mbedtls_mpi_core_mla(T, AN_limbs + 2, B, B_limbs, u0); in mbedtls_mpi_core_montmul()
|
D | bignum_core.h | 315 const mbedtls_mpi_uint *B, 373 const mbedtls_mpi_uint *B, 449 const mbedtls_mpi_uint *B, size_t B_limbs,
|
D | constant_time.c | 100 volatile const unsigned char *B = (volatile const unsigned char *) b; in mbedtls_ct_memcmp() local 106 uint32_t y = mbedtls_get_unaligned_volatile_uint32(B + i); in mbedtls_ct_memcmp() 115 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp() 805 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_lt_ct() argument 822 cond = mbedtls_ct_mpi_uint_lt(B[i - 1], A[i - 1]); in mbedtls_mpi_core_lt_ct() 831 cond = mbedtls_ct_mpi_uint_lt(A[i - 1], B[i - 1]); in mbedtls_mpi_core_lt_ct()
|
D | ecp.c | 522 mbedtls_mpi_init(&grp->B); in mbedtls_ecp_group_init() 586 mbedtls_mpi_free(&grp->B); in mbedtls_ecp_group_free() 1059 const mbedtls_mpi *B) in mbedtls_mpi_mul_mod() argument 1062 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(X, A, B)); in mbedtls_mpi_mul_mod() 1088 const mbedtls_mpi *B) in mbedtls_mpi_sub_mod() argument 1091 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(X, A, B)); in mbedtls_mpi_sub_mod() 1110 const mbedtls_mpi *B) in mbedtls_mpi_add_mod() argument 1113 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mpi(X, A, B)); in mbedtls_mpi_add_mod() 1171 #define MPI_ECP_ADD(X, A, B) \ argument 1172 MBEDTLS_MPI_CHK(mbedtls_mpi_add_mod(grp, X, A, B)) [all …]
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_bignum_core.function | 11 * \param[in] B Little-endian presentation of the right operand. 12 * \param limbs Number of limbs in each MPI (\p A, \p B, \p S and \p X). 20 mbedtls_mpi_uint *B, 30 /* The test cases have A <= B to avoid repetition, so we test A + B then, 31 * if A != B, B + A. If A == B, we can test when A and B are aliased */ 33 /* A + B */ 35 /* A + B => correct result and carry */ 36 TEST_EQUAL(carry, mbedtls_mpi_core_add(X, A, B, limbs)); 39 /* A + B; alias output and first operand => correct result and carry */ 41 TEST_EQUAL(carry, mbedtls_mpi_core_add(X, X, B, limbs)); [all …]
|
D | test_suite_bignum_mod_raw.function | 279 mbedtls_mpi_uint *B = NULL; 292 TEST_EQUAL(mbedtls_test_read_mpi_core(&B, &limbs_B, input_B), 0); 309 mbedtls_mpi_mod_raw_sub(X, A, B, &m); 314 mbedtls_mpi_mod_raw_sub(X, X, B, &m); 317 /* alias X to B */ 318 memcpy(X, B, bytes); 322 /* A == B: alias A and B */ 323 if (memcmp(A, B, bytes) == 0) { 327 /* X, A, B all aliased together */ 334 mbedtls_free(B); [all …]
|
D | test_suite_bignum.misc.data | 796 Base test mbedtls_mpi_sub_abs #1 (|B| > |A|) 799 Base test mbedtls_mpi_sub_abs #2 (|B| > |A|) 802 Base test mbedtls_mpi_sub_abs #3 (|B| > |A|) 805 Base test mbedtls_mpi_sub_abs #4 (|B| > |A|) 808 Base test mbedtls_mpi_sub_abs #1 (|B| >> |A| with more limbs) 811 Base test mbedtls_mpi_sub_abs #2 (|B| >> |A| with more limbs) 814 Base test mbedtls_mpi_sub_abs #3 (|B| >> |A| with more limbs) 817 Base test mbedtls_mpi_sub_abs #4 (|B| >> |A| with more limbs) 1000 Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B 1003 Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B, A < 0 [all …]
|
D | test_suite_bignum_mod.function | 147 /* alias X to B */ 152 /* A == B: alias A and B */ 157 /* X, A, B all aliased together */ 162 /* A != B: test B * A */ 167 /* B * A: alias X to A */ 172 /* B + A: alias X to B */ 511 /* A + B => Correct result or expected error */
|
/mbedtls-3.5.0/include/mbedtls/ |
D | bignum.h | 683 const mbedtls_mpi *B); 698 const mbedtls_mpi *B); 712 const mbedtls_mpi *B); 726 const mbedtls_mpi *B); 770 const mbedtls_mpi *B); 807 const mbedtls_mpi *B); 848 const mbedtls_mpi *B); 971 const mbedtls_mpi *B);
|
/mbedtls-3.5.0/visualc/VS2013/ |
D | mbedTLS.sln | 188 …11-00A0C91BC942}") = "ssl_client2", "ssl_client2.vcxproj", "{4E590E9D-E28F-87FF-385B-D58736388231}" 193 …BC942}") = "ssl_context_info", "ssl_context_info.vcxproj", "{017ECC7D-FB6D-46D8-076B-F64172E8E3BC}" 258 …1D0-8D11-00A0C91BC942}") = "cert_app", "cert_app.vcxproj", "{D4D691D4-137C-CBFA-735B-D46636D7E4D8}" 592 {4E590E9D-E28F-87FF-385B-D58736388231}.Debug|Win32.ActiveCfg = Debug|Win32 593 {4E590E9D-E28F-87FF-385B-D58736388231}.Debug|Win32.Build.0 = Debug|Win32 594 {4E590E9D-E28F-87FF-385B-D58736388231}.Debug|x64.ActiveCfg = Debug|x64 595 {4E590E9D-E28F-87FF-385B-D58736388231}.Debug|x64.Build.0 = Debug|x64 596 {4E590E9D-E28F-87FF-385B-D58736388231}.Release|Win32.ActiveCfg = Release|Win32 597 {4E590E9D-E28F-87FF-385B-D58736388231}.Release|Win32.Build.0 = Release|Win32 598 {4E590E9D-E28F-87FF-385B-D58736388231}.Release|x64.ActiveCfg = Release|x64 [all …]
|
/mbedtls-3.5.0/tests/include/alt-dummy/ |
D | ecp_alt.h | 26 const mbedtls_mpi B; member
|
/mbedtls-3.5.0/tests/data_files/dir4/ |
D | cert54.crt | 18 B/bpiL8l4GSVtTw1Jko=
|
D | cert44.crt | 8 14B+bsYLAkHyySN6Qwonz57qk/hkfGauc6jSRSUKDzDxErNnqxgnFfURN6RY8RRJ
|
/mbedtls-3.5.0/tests/data_files/ |
D | server9-sha384.crt | 15 B/KuafNW2GEJ7FmQKNyA7MIj1Yqo2MtJ6/OQojRQ3F5rnO4yjmvIPsXeQaMxJBiI
|
D | rsa_pkcs1_2048_aes256.pem | 20 Bee2PTac6JkXNdDgM/Pe+B/wCFR3clg0ptmr13hmLqmkbCMxkpCVCM+vPA01GNgc
|
D | rsa_pkcs8_pbes2_pbkdf2_2048_des.pem | 16 p8tZxy2+ClzjrieyX+B+8DYFQ3dhvX72eFm5X0pQxK5XIZFOHzEdrff2169/++B7
|