Home
last modified time | relevance | path

Searched refs:z (Results 1 – 23 of 23) sorted by relevance

/mbedtls-latest/3rdparty/p256-m/p256-m/
Dp256-m.c69 static void u256_set32(uint32_t z[8], uint32_t x) in u256_set32()
71 z[0] = x; in u256_set32()
73 z[i] = 0; in u256_set32()
87 static uint32_t u256_add(uint32_t z[8], in u256_add()
94 z[i] = (uint32_t) sum; in u256_add()
111 static uint32_t u256_sub(uint32_t z[8], in u256_sub()
118 z[i] = (uint32_t) diff; in u256_sub()
134 static void u256_cmov(uint32_t z[8], const uint32_t x[8], uint32_t c) in u256_cmov()
138 z[i] = (z[i] & ~x_mask) | (x[i] & x_mask); in u256_cmov()
186 static uint64_t u32_muladd64(uint32_t x, uint32_t y, uint32_t z, uint32_t t);
[all …]
/mbedtls-latest/library/
Decdh.c94 mbedtls_mpi *z, in ecdh_compute_shared_restartable() argument
113 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(z, &P.X)); in ecdh_compute_shared_restartable()
124 int mbedtls_ecdh_compute_shared(mbedtls_ecp_group *grp, mbedtls_mpi *z, in mbedtls_ecdh_compute_shared() argument
129 return ecdh_compute_shared_restartable(grp, z, Q, d, in mbedtls_ecdh_compute_shared()
140 mbedtls_mpi_init(&ctx->z); in ecdh_init_internal()
222 mbedtls_mpi_free(&ctx->z); in ecdh_free_internal()
637 if ((ret = ecdh_compute_shared_restartable(&ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal()
643 if ((ret = mbedtls_ecdh_compute_shared(&ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal()
649 if (mbedtls_mpi_size(&ctx->z) > blen) { in ecdh_calc_secret_internal()
656 return mbedtls_mpi_write_binary_le(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
[all …]
Dmd5.c103 #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) in mbedtls_internal_md5_process() argument
124 #define F(x, y, z) ((y) ^ ((z) & ((x) ^ (y)))) in mbedtls_internal_md5_process() argument
145 #define F(x, y, z) ((x) ^ (y) ^ (z)) in mbedtls_internal_md5_process() argument
166 #define F(x, y, z) ((y) ^ ((x) | ~(z))) in mbedtls_internal_md5_process() argument
Dripemd160.c99 #define F1(x, y, z) ((x) ^ (y) ^ (z)) in mbedtls_internal_ripemd160_process() argument
100 #define F2(x, y, z) (((x) & (y)) | (~(x) & (z))) in mbedtls_internal_ripemd160_process() argument
101 #define F3(x, y, z) (((x) | ~(y)) ^ (z)) in mbedtls_internal_ripemd160_process() argument
102 #define F4(x, y, z) (((x) & (z)) | ((y) & ~(z))) in mbedtls_internal_ripemd160_process() argument
103 #define F5(x, y, z) ((x) ^ ((y) | ~(z))) in mbedtls_internal_ripemd160_process() argument
Dsha1.c113 #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) in mbedtls_internal_sha1_process() argument
140 #define F(x, y, z) ((x) ^ (y) ^ (z)) in mbedtls_internal_sha1_process() argument
167 #define F(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) in mbedtls_internal_sha1_process() argument
194 #define F(x, y, z) ((x) ^ (y) ^ (z)) in mbedtls_internal_sha1_process() argument
Dsha512.c364 static inline uint64x2_t vsha512su1q_u64(uint64x2_t x, uint64x2_t y, uint64x2_t z) in vsha512su1q_u64() argument
366 asm ("sha512su1 %0.2D,%1.2D,%2.2D" : "+w" (x) : "w" (y), "w" (z)); in vsha512su1q_u64()
369 static inline uint64x2_t vsha512hq_u64(uint64x2_t x, uint64x2_t y, uint64x2_t z) in vsha512hq_u64() argument
371 asm ("sha512h %0,%1,%2.2D" : "+w" (x) : "w" (y), "w" (z)); in vsha512hq_u64()
374 static inline uint64x2_t vsha512h2q_u64(uint64x2_t x, uint64x2_t y, uint64x2_t z) in vsha512h2q_u64() argument
376 asm ("sha512h2 %0,%1,%2.2D" : "+w" (x) : "w" (y), "w" (z)); in vsha512h2q_u64()
619 #define F0(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) in mbedtls_internal_sha512_process_c() argument
620 #define F1(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) in mbedtls_internal_sha512_process_c() argument
Dbignum.c358 static inline mbedtls_mpi_uint mpi_sint_abs(mbedtls_mpi_sint z) in mpi_sint_abs() argument
360 if (z >= 0) { in mpi_sint_abs()
361 return z; in mpi_sint_abs()
367 return (mbedtls_mpi_uint) 0 - (mbedtls_mpi_uint) z; in mpi_sint_abs()
377 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_lset() argument
384 X->p[0] = mpi_sint_abs(z); in mbedtls_mpi_lset()
385 X->s = TO_SIGN(z); in mbedtls_mpi_lset()
984 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_cmp_int() argument
989 *p = mpi_sint_abs(z); in mbedtls_mpi_cmp_int()
990 Y.s = TO_SIGN(z); in mbedtls_mpi_cmp_int()
[all …]
Dsha256.c468 #define F0(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) argument
469 #define F1(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) argument
Dcamellia.c250 uint32_t z[2]) in camellia_feistel()
270 z[0] ^= I1; in camellia_feistel()
271 z[1] ^= I0; in camellia_feistel()
Dbignum_core.c452 mbedtls_mpi_uint z = (A[i] < c); in mbedtls_mpi_core_sub() local
454 c = (t < B[i]) + z; in mbedtls_mpi_core_sub()
Ddebug.c440 &ctx->z); in mbedtls_debug_printf_ecdh_internal()
Daes.c378 uint8_t x, y, z; in aes_gen_tables() local
428 z = y ^ x; in aes_gen_tables()
433 ((uint32_t) z << 24); in aes_gen_tables()
/mbedtls-latest/3rdparty/everest/library/
DHacl_Curve25519.c87 uint64_t z = output[ctr - (uint32_t)1U]; in Hacl_Bignum_Fmul_shift_reduce() local
88 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce()
245 inline static void Hacl_Bignum_Crecip_crecip(uint64_t *out, uint64_t *z) in Hacl_Bignum_Crecip_crecip() argument
258 Hacl_Bignum_Fsquare_fsquare_times(a0, z, (uint32_t)1U); in Hacl_Bignum_Crecip_crecip()
260 Hacl_Bignum_Fmul_fmul(b0, t00, z); in Hacl_Bignum_Crecip_crecip()
561 uint64_t *z = point + (uint32_t)5U; in Hacl_EC_Format_scalar_of_point() local
565 Hacl_Bignum_crecip(zmone, z); in Hacl_EC_Format_scalar_of_point()
585 uint64_t *z = p + (uint32_t)5U; in Hacl_EC_AddAndDouble_fmonty() local
604 Hacl_Bignum_fsum(x, z); in Hacl_EC_AddAndDouble_fmonty()
605 Hacl_Bignum_fdifference(z, origx); in Hacl_EC_AddAndDouble_fmonty()
[all …]
/mbedtls-latest/3rdparty/everest/library/legacy/
DHacl_Curve25519.c95 uint64_t z = output[ctr - (uint32_t)1U]; in Hacl_Bignum_Fmul_shift_reduce() local
96 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce()
287 inline static void Hacl_Bignum_Crecip_crecip(uint64_t *out, uint64_t *z) in Hacl_Bignum_Crecip_crecip() argument
300 Hacl_Bignum_Fsquare_fsquare_times(a0, z, (uint32_t)1U); in Hacl_Bignum_Crecip_crecip()
302 Hacl_Bignum_Fmul_fmul(b0, t00, z); in Hacl_Bignum_Crecip_crecip()
606 uint64_t *z = point + (uint32_t)5U; in Hacl_EC_Format_scalar_of_point() local
610 Hacl_Bignum_crecip(zmone, z); in Hacl_EC_Format_scalar_of_point()
630 uint64_t *z = p + (uint32_t)5U; in Hacl_EC_AddAndDouble_fmonty() local
649 Hacl_Bignum_fsum(x, z); in Hacl_EC_AddAndDouble_fmonty()
650 Hacl_Bignum_fdifference(z, origx); in Hacl_EC_AddAndDouble_fmonty()
[all …]
/mbedtls-latest/include/mbedtls/
Decdh.h91 mbedtls_mpi MBEDTLS_PRIVATE(z); /*!< The shared secret. */
111 mbedtls_mpi MBEDTLS_PRIVATE(z); /*!< The shared secret. */
226 int mbedtls_ecdh_compute_shared(mbedtls_ecp_group *grp, mbedtls_mpi *z,
Dbignum.h384 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z);
682 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z);
/mbedtls-latest/tests/suites/
Dtest_suite_ecdh.function240 void ecdh_restart(int id, data_t *dA, data_t *dB, data_t *z,
338 TEST_ASSERT(len == z->len);
339 TEST_ASSERT(memcmp(buf, z->x, len) == 0);
356 TEST_ASSERT(len == z->len);
357 TEST_ASSERT(memcmp(buf, z->x, len) == 0);
Dtest_suite_ecp.function588 void ecp_write_binary(int id, char *x, char *y, char *z, int format,
606 TEST_EQUAL(mbedtls_test_read_mpi(&P.Z, z), 0);
632 void ecp_read_binary(int id, data_t *buf, char *x, char *y, char *z,
647 TEST_ASSERT(mbedtls_test_read_mpi(&Z, z) == 0);
684 char *z, int ret)
699 TEST_ASSERT(mbedtls_test_read_mpi(&Z, z) == 0);
Dtest_suite_ecp.data52 ECP check pubkey Curve25519 z is not 1
136 ECP check pubkey Curve448 z is not 1
/mbedtls-latest/
D.pylintrc26 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|[a-z][-0-9a-z]+)$
DBRANCHES.md35 code that's working and secure with Mbed TLS x.y.z and does not rely on
37 modification with any later release x.y'.z' with the same major version
DChangeLog282 * Add partial platform support for z/OS.
/mbedtls-latest/docs/
Dpsa-transition.md1125 …* `mbedtls_mpi z` for the shared secret (this may be the same variable as `our_priv` when doing ep…
1129 … `mbedtls_ecdh_compute_shared` on `grp`, `z` (output), `their_pub` and `our_priv`. Use the raw sha…
1130 6. Free `grp`, `our_priv`, `our_pub`, `their_pub` and `z`.