Searched refs:mp_int (Results 1 - 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/common/crypto/ecc/
H A Decp.h53 mp_err ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py);
56 mp_err ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py);
60 mp_err ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py,
61 const mp_int *qx, const mp_int *qy, mp_int *rx,
62 mp_int *r
[all...]
H A Dec2.h53 mp_err ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py);
56 mp_err ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py);
60 mp_err ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py,
61 const mp_int *qx, const mp_int *qy, mp_int *rx,
62 mp_int *r
[all...]
H A Decl.h81 mp_err ECPoint_mul(const ECGroup *group, const mp_int *k, const mp_int *px,
82 const mp_int *py, mp_int *qx, mp_int *qy);
88 mp_err ECPoints_mul(const ECGroup *group, const mp_int *k1,
89 const mp_int *k2, const mp_int *px, const mp_int *py,
90 mp_int *q
[all...]
H A Decl-priv.h121 mp_int irr;
132 mp_err (*field_add) (const mp_int *a, const mp_int *b, mp_int *r,
134 mp_err (*field_neg) (const mp_int *a, mp_int *r, const GFMethod *meth);
135 mp_err (*field_sub) (const mp_int *a, const mp_int *b, mp_int *r,
137 mp_err (*field_mod) (const mp_int *
[all...]
H A Decp_mont.c63 GFMethod_consGFp_mont(const mp_int *irr)
112 ec_GFp_mul_mont(const mp_int *a, const mp_int *b, mp_int *r,
124 mp_int s;
144 ec_GFp_sqr_mont(const mp_int *a, mp_int *r, const GFMethod *meth)
151 ec_GFp_div_mont(const mp_int *a, const mp_int *b, mp_int *
[all...]
H A Decp_521.c61 ec_GFp_nistp521_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
67 /* m1, m2 are statically-allocated mp_int of exactly the size we need */
68 mp_int m1;
118 ec_GFp_nistp521_sqr(const mp_int *a, mp_int *r, const GFMethod *meth)
132 ec_GFp_nistp521_mul(const mp_int *a, const mp_int *b, mp_int *r,
146 ec_GFp_nistp521_div(const mp_int *
[all...]
H A Dec2_aff.c56 ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py)
69 ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py)
79 ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx,
80 const mp_int *qy, mp_int *rx, mp_int *r
[all...]
H A Decp_aff.c60 ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py)
73 ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py)
85 ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx,
86 const mp_int *qy, mp_int *rx, mp_int *r
[all...]
H A Decp_jm.c64 ec_GFp_pt_dbl_jm(const mp_int *px, const mp_int *py, const mp_int *pz,
65 const mp_int *paz4, mp_int *rx, mp_int *ry, mp_int *rz,
66 mp_int *raz4, mp_int scratch[], const ECGroup *group)
69 mp_int *t
[all...]
H A Dec2_mont.c62 gf2m_Mdouble(mp_int *x, mp_int *z, const ECGroup *group, int kmflag)
65 mp_int t1;
89 gf2m_Madd(const mp_int *x, mp_int *x1, mp_int *z1, mp_int *x2, mp_int *z2,
93 mp_int t1, t2;
121 gf2m_Mxy(const mp_int *
[all...]
H A Decl_mult.c60 ECPoint_mul(const ECGroup *group, const mp_int *k, const mp_int *px,
61 const mp_int *py, mp_int *rx, mp_int *ry)
64 mp_int kt;
114 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px,
115 const mp_int *p
[all...]
H A Decl_gf.c85 GFMethod_consGFp(const mp_int *irr)
144 GFMethod_consGF2m(const mp_int *irr, const unsigned int irr_arr[5])
217 ec_GFp_add(const mp_int *a, const mp_int *b, mp_int *r,
234 ec_GFp_neg(const mp_int *a, mp_int *r, const GFMethod *meth)
247 ec_GFp_sub(const mp_int *a, const mp_int *b, mp_int *
[all...]
H A Dec_naf.c70 ec_compute_wNAF(signed char *out, int bitsize, const mp_int *in, int w)
72 mp_int k;
H A Decp_jac.c66 ec_GFp_pt_aff2jac(const mp_int *px, const mp_int *py, mp_int *rx,
67 mp_int *ry, mp_int *rz, const ECGroup *group)
90 ec_GFp_pt_jac2aff(const mp_int *px, const mp_int *py, const mp_int *pz,
91 mp_int *rx, mp_int *r
[all...]
H A Decl.c101 ECGroup_consGFp(const mp_int *irr, const mp_int *curvea,
102 const mp_int *curveb, const mp_int *genx,
103 const mp_int *geny, const mp_int *order, int cofactor)
142 ECGroup_consGFp_mont(const mp_int *irr, const mp_int *curvea,
143 const mp_int *curveb, const mp_int *gen
[all...]
H A Decp_192.c61 ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
300 ec_GFp_nistp192_add(const mp_int *a, const mp_int *b, mp_int *r,
381 ec_GFp_nistp192_sub(const mp_int *a, const mp_int *b, mp_int *r,
460 ec_GFp_nistp192_sqr(const mp_int *a, mp_int *
[all...]
/illumos-gate/usr/src/common/mpi/
H A Dmp_gf2m.h53 mp_err mp_badd(const mp_int *a, const mp_int *b, mp_int *c);
54 mp_err mp_bmul(const mp_int *a, const mp_int *b, mp_int *c);
61 mp_err mp_bmod(const mp_int *a, const unsigned int p[], mp_int *r);
62 mp_err mp_bmulmod(const mp_int *a, const mp_int *
[all...]
H A Dmplogic.h58 The logical operations treat an mp_int as if it were a bit vector,
59 without regard to its sign (an mp_int is represented in a signed
71 mp_err mpl_not(mp_int *a, mp_int *b); /* one's complement */
72 mp_err mpl_and(mp_int *a, mp_int *b, mp_int *c); /* bitwise AND */
73 mp_err mpl_or(mp_int *a, mp_int *b, mp_int *
[all...]
H A Dmpprime.h60 mp_err mpp_divis(mp_int *a, mp_int *b);
61 mp_err mpp_divis_d(mp_int *a, mp_digit d);
64 mp_err mpp_random(mp_int *a);
65 mp_err mpp_random_size(mp_int *a, mp_size prec);
68 mp_err mpp_divis_vector(mp_int *a, const mp_digit *vec, int size, int *which);
69 mp_err mpp_divis_primes(mp_int *a, mp_digit *np);
70 mp_err mpp_fermat(mp_int *a, mp_digit w);
71 mp_err mpp_fermat_list(mp_int *a, const mp_digit *primes, mp_size nPrimes);
72 mp_err mpp_pprime(mp_int *
[all...]
H A Dmpi.h229 /* Macros for accessing the mp_int internals */
246 } mp_int; typedef in typeref:struct:__anon2010
253 mp_err mp_init(mp_int *mp, int kmflag);
254 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag);
255 mp_err mp_init_copy(mp_int *mp, const mp_int *from);
256 mp_err mp_copy(const mp_int *from, mp_int *to);
257 void mp_exch(mp_int *mp1, mp_int *mp
[all...]
H A Dmpi-priv.h187 mp_err s_mp_grow(mp_int *mp, mp_size min); /* increase allocated size */
188 mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */
191 void s_mp_clamp(mp_int *mp); /* clip leading zeroes */
200 void s_mp_exch(mp_int *a, mp_int *b); /* swap a and b in place */
202 mp_err s_mp_lshd(mp_int *mp, mp_size p); /* left-shift by p digits */
203 void s_mp_rshd(mp_int *mp, mp_size p); /* right-shift by p digits */
204 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place */
205 void s_mp_div_2d(mp_int *mp, mp_digit d); /* divide by 2^d in place */
206 void s_mp_mod_2d(mp_int *m
[all...]
H A Dmplogic.c85 mp_err mpl_rsh(const mp_int *a, mp_int *b, mp_digit d)
104 mp_err mpl_lsh(const mp_int *a, mp_int *b, mp_digit d)
126 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value)
156 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum)
181 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits)
205 mp_err mpl_significant_bits(const mp_int *a)
H A Dmpi.c102 /* Default precision for newly created mp_int's */
128 Initialize a new zero-valued mp_int. Returns MP_OKAY if successful,
132 mp_err mp_init(mp_int *mp, int kmflag)
145 Initialize a new zero-valued mp_int with at least the given
150 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag)
179 mp_err mp_init_copy(mp_int *mp, const mp_int *from)
206 Copies the mp_int 'from' to the mp_int 'to'. It is presumed that
211 mp_err mp_copy(const mp_int *fro
[all...]
H A Dmpprime.c89 mp_err mpp_random(mp_int *a)
112 mp_err mpp_random_size(mp_int *a, mp_size prec)
H A Dmp_gf2m.c210 mp_badd(const mp_int *a, const mp_int *b, mp_int *c)
288 mp_bmul(const mp_int *a, const mp_int *b, mp_int *c)
291 mp_int tmp;
310 const mp_int *xch = b; /* switch a and b if b longer */
353 mp_bmod(const mp_int *a, const unsigned int p[], mp_int *
[all...]

Completed in 788 milliseconds

12