Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_uint (Results 1 – 13 of 13) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decp_curves.c588 X->p = (mbedtls_mpi_uint *) p; in ecp_mpi_load()
916 static inline void add64( mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry ) in add64()
919 mbedtls_mpi_uint c = 0; in add64()
929 static inline void carry64( mbedtls_mpi_uint *dst, mbedtls_mpi_uint *carry ) in carry64()
951 mbedtls_mpi_uint c = 0; in ecp_mod_p192()
952 mbedtls_mpi_uint *p, *end; in ecp_mod_p192()
1093 mbedtls_mpi_uint msw = (mbedtls_mpi_uint) -c; in mbedtls_ecp_fix_negative()
1241 mbedtls_mpi_uint Mp[P521_WIDTH + 1]; in ecp_mod_p521()
1479 static mbedtls_mpi_uint Rp[] = { in ecp_mod_p192k1()
1495 static mbedtls_mpi_uint Rp[] = { in ecp_mod_p224k1()
[all …]
A Dconstant_time_internal.h79 mbedtls_mpi_uint mbedtls_ct_mpi_uint_mask( mbedtls_mpi_uint value );
129 unsigned mbedtls_ct_mpi_uint_lt( const mbedtls_mpi_uint x,
130 const mbedtls_mpi_uint y );
164 mbedtls_mpi_uint *dest,
165 const mbedtls_mpi_uint *src,
A Dbignum.c138 mbedtls_mpi_uint *p; in mbedtls_mpi_grow()
183 mbedtls_mpi_uint *p; in mbedtls_mpi_shrink()
407 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_clz()
471 mbedtls_mpi_uint d; in mbedtls_mpi_read_string()
540 mbedtls_mpi_uint r; in mpi_write_hlp()
665 mbedtls_mpi_uint d; in mbedtls_mpi_read_file()
746 static mbedtls_mpi_uint mpi_uint_bigendian_to_host_c( mbedtls_mpi_uint x ) in mpi_uint_bigendian_to_host_c()
761 static mbedtls_mpi_uint mpi_uint_bigendian_to_host( mbedtls_mpi_uint x ) in mpi_uint_bigendian_to_host()
1595 static mbedtls_mpi_uint mbedtls_int_div_int( mbedtls_mpi_uint u1, in mbedtls_int_div_int()
1596 mbedtls_mpi_uint u0, mbedtls_mpi_uint d, mbedtls_mpi_uint *r ) in mbedtls_int_div_int()
[all …]
A Dconstant_time.c104 mbedtls_mpi_uint mbedtls_ct_mpi_uint_mask( mbedtls_mpi_uint value ) in mbedtls_ct_mpi_uint_mask()
227 unsigned mbedtls_ct_mpi_uint_lt( const mbedtls_mpi_uint x, in mbedtls_ct_mpi_uint_lt()
228 const mbedtls_mpi_uint y ) in mbedtls_ct_mpi_uint_lt()
230 mbedtls_mpi_uint ret; in mbedtls_ct_mpi_uint_lt()
231 mbedtls_mpi_uint cond; in mbedtls_ct_mpi_uint_lt()
250 ret = ret >> ( sizeof( mbedtls_mpi_uint ) * 8 - 1 ); in mbedtls_ct_mpi_uint_lt()
302 mbedtls_mpi_uint *dest, in mbedtls_ct_mpi_uint_cond_assign()
316 const mbedtls_mpi_uint mask = -condition; in mbedtls_ct_mpi_uint_cond_assign()
555 mbedtls_mpi_uint limb_mask; in mbedtls_mpi_safe_cond_assign()
587 mbedtls_mpi_uint limb_mask; in mbedtls_mpi_safe_cond_swap()
[all …]
A Ddebug.c251 size_t limb_offset = n / sizeof( mbedtls_mpi_uint ); in mbedtls_debug_print_mpi()
252 size_t offset_in_limb = n % sizeof( mbedtls_mpi_uint ); in mbedtls_debug_print_mpi()
A Decp.c2943 #define ECP_MPI_INIT(s, n, p) {s, 0, (n), (mbedtls_mpi_uint *)(p)}
2945 ECP_MPI_INIT(1, sizeof(x) / sizeof(mbedtls_mpi_uint), x)
2951 static const mbedtls_mpi_uint x25519_bad_point_1[] = {
2957 static const mbedtls_mpi_uint x25519_bad_point_2[] = {
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbn_mul.h55 ( (mbedtls_mpi_uint) (a) << 0 ) | \
56 ( (mbedtls_mpi_uint) (b) << 8 ) | \
57 ( (mbedtls_mpi_uint) (c) << 16 ) | \
58 ( (mbedtls_mpi_uint) (d) << 24 )
70 ( (mbedtls_mpi_uint) (a) << 0 ) | \
77 ( (mbedtls_mpi_uint) (h) << 56 )
937 mbedtls_mpi_uint r0, r1;
941 r0 = (mbedtls_mpi_uint) r; \
942 r1 = (mbedtls_mpi_uint)( r >> biL ); \
953 mbedtls_mpi_uint s0, s1, b0, b1; \
[all …]
A Dbignum.h132 typedef uint64_t mbedtls_mpi_uint; typedef
144 typedef uint64_t mbedtls_mpi_uint; typedef
159 typedef uint64_t mbedtls_mpi_uint; typedef
168 typedef uint64_t mbedtls_mpi_uint; typedef
178 typedef uint32_t mbedtls_mpi_uint; typedef
197 mbedtls_mpi_uint *p; /*!< pointer to limbs */
752 mbedtls_mpi_uint b );
832 int mbedtls_mpi_mod_int( mbedtls_mpi_uint *r, const mbedtls_mpi *A,
1058 void mbedtls_mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N );
1069 const mbedtls_mpi *N, mbedtls_mpi_uint mm,
[all …]
A Dcompat-1.3.h2407 #define t_uint mbedtls_mpi_uint
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dmpi_desc.c25 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */
117 mbedtls_mpi_uint p = b32; in set_int()
139 COMPILE_TIME_ASSERT(sizeof(ltc_mp_digit) >= sizeof(mbedtls_mpi_uint)); in get_digit()
149 return ROUNDUP(mbedtls_mpi_size(a), sizeof(mbedtls_mpi_uint)) / in get_digit_count()
150 sizeof(mbedtls_mpi_uint); in get_digit_count()
285 mbedtls_mpi_uint p = b32; in addi()
307 mbedtls_mpi_uint p = b32; in subi()
498 *b = mempool_alloc(mbedtls_mpi_mempool, sizeof(mbedtls_mpi_uint)); in montgomery_setup()
510 size_t c = ROUNDUP(mbedtls_mpi_size(b), sizeof(mbedtls_mpi_uint)) * 8; in montgomery_normalization()
527 mbedtls_mpi_uint *mm = c; in montgomery_reduce()
[all …]
/optee_os-3.20.0/
A Dtypedefs.checkpatch37 mbedtls_mpi_uint
/optee_os-3.20.0/lib/libmbedtls/core/
A Dbignum.c15 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */
/optee_os-3.20.0/lib/libutee/
A Dtee_api_arith_mpi.c74 memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); in copy_mpi_to_bigint()
92 COMPILE_TIME_ASSERT(sizeof(mbedtls_mpi_uint) == sizeof(uint32_t)); in get_mpi()
105 const mbedtls_mpi_uint *p = (const mbedtls_mpi_uint *)(hdr + 1); in get_mpi()
114 memcpy(mpi->p, p, n * sizeof(mbedtls_mpi_uint)); in get_mpi()
607 mbedtls_mpi_uint k; in mpi_egcd()

Completed in 64 milliseconds