Home
last modified time | relevance | path

Searched refs:B (Results 1 – 25 of 55) sorted by relevance

123

/openthread-3.7.0/third_party/mbedtls/repo/library/
Dmd5.c68 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member
99 local.B = ctx->state[1]; in mbedtls_internal_md5_process()
105 P(local.A, local.B, local.C, local.D, 0, 7, 0xD76AA478); in mbedtls_internal_md5_process()
106 P(local.D, local.A, local.B, local.C, 1, 12, 0xE8C7B756); in mbedtls_internal_md5_process()
107 P(local.C, local.D, local.A, local.B, 2, 17, 0x242070DB); in mbedtls_internal_md5_process()
108 P(local.B, local.C, local.D, local.A, 3, 22, 0xC1BDCEEE); in mbedtls_internal_md5_process()
109 P(local.A, local.B, local.C, local.D, 4, 7, 0xF57C0FAF); in mbedtls_internal_md5_process()
110 P(local.D, local.A, local.B, local.C, 5, 12, 0x4787C62A); in mbedtls_internal_md5_process()
111 P(local.C, local.D, local.A, local.B, 6, 17, 0xA8304613); in mbedtls_internal_md5_process()
112 P(local.B, local.C, local.D, local.A, 7, 22, 0xFD469501); in mbedtls_internal_md5_process()
[all …]
Dripemd160.c73 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_internal_ripemd160_process() member
94 local.B = local.Bp = ctx->state[1]; in mbedtls_internal_ripemd160_process()
127 P2(local.A, local.B, local.C, local.D, local.E, 0, 11, 5, 8); in mbedtls_internal_ripemd160_process()
128 P2(local.E, local.A, local.B, local.C, local.D, 1, 14, 14, 9); in mbedtls_internal_ripemd160_process()
129 P2(local.D, local.E, local.A, local.B, local.C, 2, 15, 7, 9); in mbedtls_internal_ripemd160_process()
130 P2(local.C, local.D, local.E, local.A, local.B, 3, 12, 0, 11); in mbedtls_internal_ripemd160_process()
131 P2(local.B, local.C, local.D, local.E, local.A, 4, 5, 9, 13); in mbedtls_internal_ripemd160_process()
132 P2(local.A, local.B, local.C, local.D, local.E, 5, 8, 2, 15); in mbedtls_internal_ripemd160_process()
133 P2(local.E, local.A, local.B, local.C, local.D, 6, 7, 11, 15); in mbedtls_internal_ripemd160_process()
134 P2(local.D, local.E, local.A, local.B, local.C, 7, 9, 4, 5); in mbedtls_internal_ripemd160_process()
[all …]
Dsha1.c69 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member
108 local.B = ctx->state[1]; in mbedtls_internal_sha1_process()
116 P(local.A, local.B, local.C, local.D, local.E, local.W[0]); in mbedtls_internal_sha1_process()
117 P(local.E, local.A, local.B, local.C, local.D, local.W[1]); in mbedtls_internal_sha1_process()
118 P(local.D, local.E, local.A, local.B, local.C, local.W[2]); in mbedtls_internal_sha1_process()
119 P(local.C, local.D, local.E, local.A, local.B, local.W[3]); in mbedtls_internal_sha1_process()
120 P(local.B, local.C, local.D, local.E, local.A, local.W[4]); in mbedtls_internal_sha1_process()
121 P(local.A, local.B, local.C, local.D, local.E, local.W[5]); in mbedtls_internal_sha1_process()
122 P(local.E, local.A, local.B, local.C, local.D, local.W[6]); in mbedtls_internal_sha1_process()
123 P(local.D, local.E, local.A, local.B, local.C, local.W[7]); in mbedtls_internal_sha1_process()
[all …]
Daes.c119 V(A5, 63, 63, C6), V(84, 7C, 7C, F8), V(99, 77, 77, EE), V(8D, 7B, 7B, F6), \
120 V(0D, F2, F2, FF), V(BD, 6B, 6B, D6), V(B1, 6F, 6F, DE), V(54, C5, C5, 91), \
121 V(50, 30, 30, 60), V(03, 01, 01, 02), V(A9, 67, 67, CE), V(7D, 2B, 2B, 56), \
124 V(15, FA, FA, EF), V(EB, 59, 59, B2), V(C9, 47, 47, 8E), V(0B, F0, F0, FB), \
126 V(BF, 9C, 9C, 23), V(F7, A4, A4, 53), V(96, 72, 72, E4), V(5B, C0, C0, 9B), \
133 V(09, 07, 07, 0E), V(36, 12, 12, 24), V(9B, 80, 80, 1B), V(3D, E2, E2, DF), \
135 V(1B, 09, 09, 12), V(9E, 83, 83, 1D), V(74, 2C, 2C, 58), V(2E, 1A, 1A, 34), \
136 V(2D, 1B, 1B, 36), V(B2, 6E, 6E, DC), V(EE, 5A, 5A, B4), V(FB, A0, A0, 5B), \
137 V(F6, 52, 52, A4), V(4D, 3B, 3B, 76), V(61, D6, D6, B7), V(CE, B3, B3, 7D), \
138 V(7B, 29, 29, 52), V(3E, E3, E3, DD), V(71, 2F, 2F, 5E), V(97, 84, 84, 13), \
[all …]
Dbignum.c999 int mbedtls_mpi_add_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_add_abs() argument
1006 if (X == B) { in mbedtls_mpi_add_abs()
1007 const mbedtls_mpi *T = A; A = X; B = T; in mbedtls_mpi_add_abs()
1019 for (j = B->n; j > 0; j--) { in mbedtls_mpi_add_abs()
1020 if (B->p[j - 1] != 0) { in mbedtls_mpi_add_abs()
1037 c = mbedtls_mpi_core_add(p, p, B->p, j); in mbedtls_mpi_add_abs()
1060 int mbedtls_mpi_sub_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_sub_abs() argument
1066 for (n = B->n; n > 0; n--) { in mbedtls_mpi_sub_abs()
1067 if (B->p[n - 1] != 0) { in mbedtls_mpi_sub_abs()
1089 carry = mbedtls_mpi_core_sub(X->p, A->p, B->p, n); in mbedtls_mpi_sub_abs()
[all …]
Dbignum_mod_raw.c97 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_sub() argument
100 mbedtls_mpi_uint c = mbedtls_mpi_core_sub(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_sub()
117 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_mul() argument
129 mbedtls_mpi_core_montmul(X, A, B, N->limbs, N->p, N->limbs, in mbedtls_mpi_mod_raw_mul()
133 mbedtls_mpi_core_mul(T, A, N->limbs, B, N->limbs); in mbedtls_mpi_mod_raw_mul()
181 const mbedtls_mpi_uint *B, in mbedtls_mpi_mod_raw_add() argument
185 carry = mbedtls_mpi_core_add(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_add()
Dbignum_mod.c165 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_mul() argument
172 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_mul()
181 mbedtls_mpi_mod_raw_mul(X->p, A->p, B->p, N, T); in mbedtls_mpi_mod_mul()
190 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_sub() argument
193 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_sub()
197 mbedtls_mpi_mod_raw_sub(X->p, A->p, B->p, N); in mbedtls_mpi_mod_sub()
293 const mbedtls_mpi_mod_residue *B, in mbedtls_mpi_mod_add() argument
296 if (X->limbs != N->limbs || A->limbs != N->limbs || B->limbs != N->limbs) { in mbedtls_mpi_mod_add()
300 mbedtls_mpi_mod_raw_add(X->p, A->p, B->p, N); in mbedtls_mpi_mod_add()
Dbignum_core.h156 const mbedtls_mpi_uint *B,
331 const mbedtls_mpi_uint *B,
389 const mbedtls_mpi_uint *B,
435 const mbedtls_mpi_uint *B, size_t B_limbs);
485 const mbedtls_mpi_uint *B, size_t B_limbs,
Dbignum_core.c133 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_lt_ct() argument
146 cond = mbedtls_ct_uint_lt(B[i - 1], A[i - 1]); in mbedtls_mpi_core_lt_ct()
155 cond = mbedtls_ct_uint_lt(A[i - 1], B[i - 1]); in mbedtls_mpi_core_lt_ct()
407 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_add() argument
415 t += B[i]; in mbedtls_mpi_core_add()
416 c += (t < B[i]); in mbedtls_mpi_core_add()
446 const mbedtls_mpi_uint *B, in mbedtls_mpi_core_sub() argument
454 c = (t < B[i]) + z; in mbedtls_mpi_core_sub()
455 X[i] = t - B[i]; in mbedtls_mpi_core_sub()
501 const mbedtls_mpi_uint *B, size_t B_limbs) in mbedtls_mpi_core_mul() argument
[all …]
Dconstant_time.c80 volatile const unsigned char *B = (volatile const unsigned char *) b; in mbedtls_ct_memcmp() local
86 uint32_t y = mbedtls_get_unaligned_volatile_uint32(B + i); in mbedtls_ct_memcmp()
95 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp()
130 volatile const unsigned char *B = (volatile const unsigned char *) b; in mbedtls_ct_memcmp_partial() local
135 unsigned char x = A[i], y = B[i]; in mbedtls_ct_memcmp_partial()
Dbignum_mod_raw.h197 const mbedtls_mpi_uint *B,
231 const mbedtls_mpi_uint *B,
304 const mbedtls_mpi_uint *B,
Dbignum_mod.h260 const mbedtls_mpi_mod_residue *B,
290 const mbedtls_mpi_mod_residue *B,
349 const mbedtls_mpi_mod_residue *B,
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_bignum_core.function11 * \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 …]
Dtest_suite_bignum_mod_raw.function270 mbedtls_mpi_uint *B = NULL;
283 TEST_EQUAL(mbedtls_test_read_mpi_core(&B, &limbs_B, input_B), 0);
299 mbedtls_mpi_mod_raw_sub(X, A, B, &m);
304 mbedtls_mpi_mod_raw_sub(X, X, B, &m);
307 /* alias X to B */
308 memcpy(X, B, bytes);
312 /* A == B: alias A and B */
313 if (memcmp(A, B, bytes) == 0) {
317 /* X, A, B all aliased together */
324 mbedtls_free(B);
[all …]
Dtest_suite_bignum.misc.data799 Base test mbedtls_mpi_sub_abs #1 (|B| > |A|)
802 Base test mbedtls_mpi_sub_abs #2 (|B| > |A|)
805 Base test mbedtls_mpi_sub_abs #3 (|B| > |A|)
808 Base test mbedtls_mpi_sub_abs #4 (|B| > |A|)
811 Base test mbedtls_mpi_sub_abs #1 (|B| >> |A| with more limbs)
814 Base test mbedtls_mpi_sub_abs #2 (|B| >> |A| with more limbs)
817 Base test mbedtls_mpi_sub_abs #3 (|B| >> |A| with more limbs)
820 Base test mbedtls_mpi_sub_abs #4 (|B| >> |A| with more limbs)
1003 Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B
1006 Test mbedtls_mpi_mul_mpi #1, leading 0 limb in B, A < 0
[all …]
Dtest_suite_bignum_mod.function138 /* alias X to B */
143 /* A == B: alias A and B */
148 /* X, A, B all aliased together */
153 /* A != B: test B * A */
158 /* B * A: alias X to A */
163 /* B + A: alias X to B */
497 /* A + B => Correct result or expected error */
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h696 const mbedtls_mpi *B);
711 const mbedtls_mpi *B);
725 const mbedtls_mpi *B);
739 const mbedtls_mpi *B);
783 const mbedtls_mpi *B);
820 const mbedtls_mpi *B);
861 const mbedtls_mpi *B);
984 const mbedtls_mpi *B);
/openthread-3.7.0/third_party/mbedtls/repo/visualc/VS2017/
DmbedTLS.sln158 …1D0-8D11-00A0C91BC942}") = "psa_hash", "psa_hash.vcxproj", "{A8EF04E6-AE07-699B-CC81-37838E95A361}"
193 …11-00A0C91BC942}") = "ssl_client2", "ssl_client2.vcxproj", "{4E590E9D-E28F-87FF-385B-D58736388231}"
198 …BC942}") = "ssl_context_info", "ssl_context_info.vcxproj", "{017ECC7D-FB6D-46D8-076B-F64172E8E3BC}"
268 …1D0-8D11-00A0C91BC942}") = "cert_app", "cert_app.vcxproj", "{D4D691D4-137C-CBFA-735B-D46636D7E4D8}"
554 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Debug|Win32.ActiveCfg = Debug|Win32
555 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Debug|Win32.Build.0 = Debug|Win32
556 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Debug|x64.ActiveCfg = Debug|x64
557 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Debug|x64.Build.0 = Debug|x64
558 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Release|Win32.ActiveCfg = Release|Win32
559 {A8EF04E6-AE07-699B-CC81-37838E95A361}.Release|Win32.Build.0 = Release|Win32
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/tests/include/alt-dummy/
Decp_alt.h14 const mbedtls_mpi B; member
/openthread-3.7.0/third_party/mbedtls/repo/tests/data_files/
Dserver9-bad-saltlen.crt16 5YtmLcE5gSbVj3qa6zVuQWEcrseKz6wpAFLsHKbF6kKfUgcI56xmD2DhhIHny+5B
Drsa_pkcs1_2048_aes256.pem20 Bee2PTac6JkXNdDgM/Pe+B/wCFR3clg0ptmr13hmLqmkbCMxkpCVCM+vPA01GNgc
Drsa_pkcs8_pbes2_pbkdf2_2048_des.pem16 p8tZxy2+ClzjrieyX+B+8DYFQ3dhvX72eFm5X0pQxK5XIZFOHzEdrff2169/++B7
/openthread-3.7.0/third_party/mbedtls/repo/tests/data_files/dir4/
Dcert54.crt18 B/bpiL8l4GSVtTw1Jko=
Dcert44.crt8 14B+bsYLAkHyySN6Qwonz57qk/hkfGauc6jSRSUKDzDxErNnqxgnFfURN6RY8RRJ
/openthread-3.7.0/third_party/mbedtls/repo/tests/data_files/parse_input/
Dserver9-sha384.crt15 B/KuafNW2GEJ7FmQKNyA7MIj1Yqo2MtJ6/OQojRQ3F5rnO4yjmvIPsXeQaMxJBiI

123