Home
last modified time | relevance | path

Searched refs:meth (Results 1 – 25 of 63) sorted by relevance

123

/titanic_51/usr/src/common/crypto/ecc/
H A Dec2_mont.c70 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth)); in gf2m_Mdouble()
71 MP_CHECKOK(group->meth->field_sqr(z, &t1, group->meth)); in gf2m_Mdouble()
72 MP_CHECKOK(group->meth->field_mul(x, &t1, z, group->meth)); in gf2m_Mdouble()
73 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth)); in gf2m_Mdouble()
74 MP_CHECKOK(group->meth->field_sqr(&t1, &t1, group->meth)); in gf2m_Mdouble()
[all...]
H A Decp_jm.c89 MP_CHECKOK(group->meth->field_sqr(px, t0, group->meth)); in ec_GFp_pt_dbl_jm()
90 MP_CHECKOK(group->meth->field_add(t0, t0, M, group->meth)); in ec_GFp_pt_dbl_jm()
91 MP_CHECKOK(group->meth->field_add(t0, M, t0, group->meth)); in ec_GFp_pt_dbl_jm()
92 MP_CHECKOK(group->meth->field_add(t0, paz4, M, group->meth)); in ec_GFp_pt_dbl_jm()
95 MP_CHECKOK(group->meth->field_mul(py, pz, S, group->meth)); in ec_GFp_pt_dbl_jm()
[all...]
H A Decp_jac.c77 if (group->meth->field_enc) { in ec_GFp_pt_aff2jac()
78 MP_CHECKOK(group->meth->field_enc(rz, rz, group->meth)); in ec_GFp_pt_aff2jac()
114 MP_CHECKOK(group->meth->field_div(NULL, pz, &z1, group->meth)); in ec_GFp_pt_jac2aff()
115 MP_CHECKOK(group->meth->field_sqr(&z1, &z2, group->meth)); in ec_GFp_pt_jac2aff()
116 MP_CHECKOK(group->meth->field_mul(&z1, &z2, &z3, group->meth)); in ec_GFp_pt_jac2aff()
117 MP_CHECKOK(group->meth in ec_GFp_pt_jac2aff()
[all...]
H A Decp_mont.c67 GFMethod *meth = NULL; in GFMethod_consGFp_mont() local
70 meth = GFMethod_consGFp(irr); in GFMethod_consGFp_mont()
71 if (meth == NULL) in GFMethod_consGFp_mont()
85 meth->field_mul = &ec_GFp_mul_mont; in GFMethod_consGFp_mont()
86 meth->field_sqr = &ec_GFp_sqr_mont; in GFMethod_consGFp_mont()
87 meth->field_div = &ec_GFp_div_mont; in GFMethod_consGFp_mont()
88 meth->field_enc = &ec_GFp_enc_mont; in GFMethod_consGFp_mont()
89 meth->field_dec = &ec_GFp_dec_mont; in GFMethod_consGFp_mont()
90 meth->extra1 = mmm; in GFMethod_consGFp_mont()
91 meth in GFMethod_consGFp_mont()
113 ec_GFp_mul_mont(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_mul_mont() argument
144 ec_GFp_sqr_mont(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_sqr_mont() argument
152 ec_GFp_div_mont(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_div_mont() argument
172 ec_GFp_enc_mont(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_enc_mont() argument
186 ec_GFp_dec_mont(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_dec_mont() argument
201 ec_GFp_extra_free_mont(GFMethod * meth) ec_GFp_extra_free_mont() argument
[all...]
H A Decl_gf.c61 GFMethod *meth; in GFMethod_new() local
63 meth = (GFMethod *) kmem_alloc(sizeof(GFMethod), kmflag); in GFMethod_new()
65 meth = (GFMethod *) malloc(sizeof(GFMethod)); in GFMethod_new()
66 if (meth == NULL) in GFMethod_new()
69 meth->constructed = MP_YES; in GFMethod_new()
70 MP_DIGITS(&meth->irr) = 0; in GFMethod_new()
71 meth->extra_free = NULL; in GFMethod_new()
72 MP_CHECKOK(mp_init(&meth->irr, kmflag)); in GFMethod_new()
76 GFMethod_free(meth); in GFMethod_new()
79 return meth; in GFMethod_new()
88 GFMethod *meth = NULL; GFMethod_consGFp() local
148 GFMethod *meth = NULL; GFMethod_consGF2m() local
197 GFMethod_free(GFMethod * meth) GFMethod_free() argument
218 ec_GFp_add(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_add() argument
234 ec_GFp_neg(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_neg() argument
248 ec_GFp_sub(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_sub() argument
273 ec_GFp_add_3(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_add_3() argument
356 ec_GFp_add_4(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_add_4() argument
450 ec_GFp_add_5(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_add_5() argument
527 ec_GFp_add_6(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_add_6() argument
618 ec_GFp_sub_3(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_sub_3() argument
702 ec_GFp_sub_4(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_sub_4() argument
795 ec_GFp_sub_5(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_sub_5() argument
863 ec_GFp_sub_6(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_sub_6() argument
940 ec_GFp_mod(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_mod() argument
948 ec_GFp_mul(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_mul() argument
955 ec_GFp_sqr(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GFp_sqr() argument
964 ec_GFp_div(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GFp_div() argument
989 ec_GF2m_add(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GF2m_add() argument
997 ec_GF2m_neg(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GF2m_neg() argument
1008 ec_GF2m_mod(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GF2m_mod() argument
1016 ec_GF2m_mul(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GF2m_mul() argument
1023 ec_GF2m_sqr(const mp_int * a,mp_int * r,const GFMethod * meth) ec_GF2m_sqr() argument
1032 ec_GF2m_div(const mp_int * a,const mp_int * b,mp_int * r,const GFMethod * meth) ec_GF2m_div() argument
[all...]
H A Dec2_aff.c109 MP_CHECKOK(group->meth->field_add(py, qy, &tempy, group->meth)); in ec_GF2m_pt_add_aff()
110 MP_CHECKOK(group->meth->field_add(px, qx, &tempx, group->meth)); in ec_GF2m_pt_add_aff()
111 MP_CHECKOK(group->meth-> in ec_GF2m_pt_add_aff()
112 field_div(&tempy, &tempx, &lambda, group->meth)); in ec_GF2m_pt_add_aff()
113 MP_CHECKOK(group->meth->field_sqr(&lambda, &tempx, group->meth)); in ec_GF2m_pt_add_aff()
114 MP_CHECKOK(group->meth-> in ec_GF2m_pt_add_aff()
115 field_add(&tempx, &lambda, &tempx, group->meth)); in ec_GF2m_pt_add_aff()
[all...]
H A Decp_aff.c116 MP_CHECKOK(group->meth->field_sub(py, qy, &tempy, group->meth)); in ec_GFp_pt_add_aff()
117 MP_CHECKOK(group->meth->field_sub(px, qx, &tempx, group->meth)); in ec_GFp_pt_add_aff()
118 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
119 field_div(&tempy, &tempx, &lambda, group->meth)); in ec_GFp_pt_add_aff()
129 MP_CHECKOK(group->meth->field_sqr(qx, &tempx, group->meth)); in ec_GFp_pt_add_aff()
131 if (group->meth->field_enc) { in ec_GFp_pt_add_aff()
132 MP_CHECKOK(group->meth in ec_GFp_pt_add_aff()
[all...]
H A Decl-priv.h133 const GFMethod *meth);
134 mp_err (*field_neg) (const mp_int *a, mp_int *r, const GFMethod *meth);
136 const GFMethod *meth);
137 mp_err (*field_mod) (const mp_int *a, mp_int *r, const GFMethod *meth);
139 const GFMethod *meth);
140 mp_err (*field_sqr) (const mp_int *a, mp_int *r, const GFMethod *meth);
142 const GFMethod *meth);
143 mp_err (*field_enc) (const mp_int *a, mp_int *r, const GFMethod *meth);
144 mp_err (*field_dec) (const mp_int *a, mp_int *r, const GFMethod *meth);
149 void (*extra_free) (GFMethod *meth);
165 GFMethod *meth; global() member
[all...]
H A Decl_mult.c89 if (group->meth->field_enc) { in ECPoint_mul()
90 MP_CHECKOK(group->meth->field_enc(px, rx, group->meth)); in ECPoint_mul()
91 MP_CHECKOK(group->meth->field_enc(py, ry, group->meth)); in ECPoint_mul()
97 if (group->meth->field_dec) { in ECPoint_mul()
98 MP_CHECKOK(group->meth->field_dec(rx, rx, group->meth)); in ECPoint_mul()
99 MP_CHECKOK(group->meth->field_dec(ry, ry, group->meth)); in ECPoint_mul()
[all...]
H A Decp_521.c61 ec_GFp_nistp521_mod(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp521_mod() argument
84 MP_CHECKOK(mp_mod(a, &meth->irr, r)); in ec_GFp_nistp521_mod()
118 ec_GFp_nistp521_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp521_sqr() argument
123 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth)); in ec_GFp_nistp521_sqr()
133 const GFMethod *meth) in ec_GFp_nistp521_mul() argument
138 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth)); in ec_GFp_nistp521_mul()
147 const GFMethod *meth) in ec_GFp_nistp521_div() argument
154 return mp_invmod(b, &meth->irr, r); in ec_GFp_nistp521_div()
159 MP_CHECKOK(mp_invmod(b, &meth->irr, &t)); in ec_GFp_nistp521_div()
161 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth)); in ec_GFp_nistp521_div()
[all...]
H A Decp_test.c168 if (group->meth->field_dec) { in ectest_curve_GFp()
169 MP_CHECKOK(group->meth->field_dec(&group->genx, &gx, group->meth)); in ectest_curve_GFp()
170 MP_CHECKOK(group->meth->field_dec(&group->geny, &gy, group->meth)); in ectest_curve_GFp()
182 if (group->meth->field_enc) { in ectest_curve_GFp()
203 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
224 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth)); in ectest_curve_GFp()
[all...]
H A Decp_192.c61 ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp192_mod() argument
88 MP_CHECKOK(mp_mod(a, &meth->irr, r)); in ec_GFp_nistp192_mod()
301 const GFMethod *meth) in ec_GFp_nistp192_add() argument
382 const GFMethod *meth) in ec_GFp_nistp192_sub() argument
460 ec_GFp_nistp192_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp192_sqr() argument
465 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth)); in ec_GFp_nistp192_sqr()
475 const GFMethod *meth) in ec_GFp_nistp192_mul() argument
480 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth)); in ec_GFp_nistp192_mul()
489 const GFMethod *meth) in ec_GFp_nistp192_div() argument
496 return mp_invmod(b, &meth in ec_GFp_nistp192_div()
[all...]
H A Dec2_test.c169 if (group->meth->field_dec) { in ectest_curve_GF2m()
170 MP_CHECKOK(group->meth->field_dec(&group->genx, &gx, group->meth)); in ectest_curve_GF2m()
171 MP_CHECKOK(group->meth->field_dec(&group->geny, &gy, group->meth)); in ectest_curve_GF2m()
184 if (group->meth->field_enc) { in ectest_curve_GF2m()
205 MP_CHECKOK(group->meth->field_add(&ry, &rx, &ry, group->meth)); in ectest_curve_GF2m()
225 MP_CHECKOK(group->meth->field_add(&ry, &rx, &ry, group->meth)); in ectest_curve_GF2m()
[all...]
H A Dec2_163.c61 ec_GF2m_163_mod(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GF2m_163_mod() argument
133 ec_GF2m_163_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GF2m_163_sqr() argument
142 return mp_bsqrmod(a, meth->irr_arr, r); in ec_GF2m_163_sqr()
150 return mp_bsqrmod(a, meth->irr_arr, r); in ec_GF2m_163_sqr()
173 return ec_GF2m_163_mod(r, r, meth); in ec_GF2m_163_sqr()
183 const GFMethod *meth) in ec_GF2m_163_mul() argument
194 return ec_GF2m_163_sqr(a, r, meth); in ec_GF2m_163_mul()
254 return ec_GF2m_163_mod(r, r, meth); in ec_GF2m_163_mul()
265 group->meth->field_mod = &ec_GF2m_163_mod; in ec_group_set_gf2m163()
266 group->meth in ec_group_set_gf2m163()
[all...]
H A Decp_384.c59 ec_GFp_nistp384_mod(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp384_mod() argument
90 MP_CHECKOK(mp_mod(a, &meth->irr, r)); in ec_GFp_nistp384_mod()
185 MP_CHECKOK(mp_submod(r, &m[9], &meth->irr, r)); in ec_GFp_nistp384_mod()
192 MP_CHECKOK(mp_mod(a, &meth->irr, r)); in ec_GFp_nistp384_mod()
254 MP_CHECKOK(mp_submod(r, &m[9], &meth->irr, r)); in ec_GFp_nistp384_mod()
267 ec_GFp_nistp384_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GFp_nistp384_sqr() argument
272 MP_CHECKOK(ec_GFp_nistp384_mod(r, r, meth)); in ec_GFp_nistp384_sqr()
282 const GFMethod *meth) in ec_GFp_nistp384_mul() argument
287 MP_CHECKOK(ec_GFp_nistp384_mod(r, r, meth)); in ec_GFp_nistp384_mul()
298 group->meth in ec_group_set_gfp384()
[all...]
H A Dec2_193.c61 ec_GF2m_193_mod(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GF2m_193_mod() argument
141 ec_GF2m_193_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) in ec_GF2m_193_sqr() argument
150 return mp_bsqrmod(a, meth->irr_arr, r); in ec_GF2m_193_sqr()
158 return mp_bsqrmod(a, meth->irr_arr, r); in ec_GF2m_193_sqr()
182 return ec_GF2m_193_mod(r, r, meth); in ec_GF2m_193_sqr()
192 const GFMethod *meth) in ec_GF2m_193_mul() argument
203 return ec_GF2m_193_sqr(a, r, meth); in ec_GF2m_193_mul()
271 return ec_GF2m_193_mod(r, r, meth); in ec_GF2m_193_mul()
282 group->meth->field_mod = &ec_GF2m_193_mod; in ec_group_set_gf2m193()
283 group->meth in ec_group_set_gf2m193()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/cdt/
H A Ddtmethod.c30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) in dtmethod() argument
32 Dtmethod_t* dtmethod(dt, meth) in dtmethod()
34 Dtmethod_t* meth;
39 Dtmethod_t *oldmt = dt->meth;
42 if(!meth || meth == oldmt)
46 if(disc->eventf && (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0)
53 dt->searchf = meth->searchf;
54 dt->meth = meth;
[all...]
H A Ddtopen.c33 if (type == DT_DELETE && (dt->meth->type&(DT_OBAG|DT_BAG))) in _dttype2005()
39 Dt_t* _dtopen(Dtdisc_t* disc, Dtmethod_t* meth, unsigned long version) in _dtopen() argument
41 Dt_t* _dtopen(disc, meth, version) in _dtopen()
43 Dtmethod_t* meth;
51 if(!disc || !meth)
56 type = meth->type;
59 pdt.searchf = meth->searchf;
60 pdt.meth = meth;
68 { if((data->type & DT_METHODS) != meth
111 dtopen(Dtdisc_t * disc,Dtmethod_t * meth) dtopen() argument
[all...]
H A Ddtview.c48 return (*(dt->meth->searchf))(dt,obj,type);
54 ((type & (DT_FIRST|DT_LAST|DT_ATLEAST|DT_ATMOST)) && !(dt->meth->type&DT_ORDERED) ) )
56 if((o = (*(d->meth->searchf))(d,obj,type)) )
62 if(dt->meth->type & DT_ORDERED) /* ordered sets/bags */
69 { if(!(o = (*d->meth->searchf)(d, obj, type)) )
97 if((o = (*(d->meth->searchf))(d, obj, DT_SEARCH)) )
104 for(d = dt->walk, obj = (*d->meth->searchf)(d, obj, type);; )
109 if((*(p->meth->searchf))(p, obj, DT_SEARCH) )
112 obj = (*d->meth->searchf)(d, obj, type);
118 obj = (*(d->meth
[all...]
/titanic_51/usr/src/lib/libast/common/cdt/
H A Ddtmethod.c30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) in dtmethod() argument
32 Dtmethod_t* dtmethod(dt, meth) in dtmethod()
34 Dtmethod_t* meth;
39 reg Dtmethod_t* oldmeth = dt->meth;
41 if(!meth || meth->type == oldmeth->type)
45 (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0)
63 dt->data->type = (dt->data->type&~(DT_METHODS|DT_FLATTEN)) | meth->type;
64 dt->meth = meth;
66 dt->searchf = meth->searchf;
68 if(meth->type&(DT_LIST|DT_STACK|DT_QUEUE) )
[all …]
H A Ddtopen.c31 Dt_t* dtopen(Dtdisc_t* disc, Dtmethod_t* meth) in dtopen() argument
33 Dt_t* dtopen(disc, meth) in dtopen()
35 Dtmethod_t* meth;
42 if(!disc || !meth)
51 dt->meth = NIL(Dtmethod_t*);
66 { if(data->type&meth->type)
78 dt->meth = NIL(Dtmethod_t*);
94 data->type = meth->type;
102 dt->searchf = meth->searchf;
103 dt->meth = meth;
H A Ddtview.c46 return (*(dt->meth->searchf))(dt,obj,type);
49 ((type&(DT_FIRST|DT_LAST)) && !(dt->meth->type&(DT_OBAG|DT_OSET)) ) )
51 if((o = (*(d->meth->searchf))(d,obj,type)) )
57 if(dt->meth->type & (DT_OBAG|DT_OSET) )
63 { if(!(o = (*d->meth->searchf)(d, obj, type)) )
91 if((o = (*(d->meth->searchf))(d, obj, DT_SEARCH)) )
98 for(d = dt->walk, obj = (*d->meth->searchf)(d, obj, type);; )
103 if((*(p->meth->searchf))(p, obj, DT_SEARCH) )
106 obj = (*d->meth->searchf)(d, obj, type);
112 obj = (*(d->meth->searchf))(d,NIL(Void_t*),DT_FIRST);
[all …]
/titanic_51/usr/src/lib/libast/common/vmalloc/
H A Dmalloc.c217 Vmregion->meth.meth == VM_MTDEBUG) \
256 return VMRECORD((*Vmregion->meth.resizef)(Vmregion,NIL(Void_t*),n_obj*s_obj,VM_RSZERO));
267 return VMRECORD((*Vmregion->meth.allocf)(Vmregion,size));
290 if(data && Vmregion->meth.meth != VM_MTDEBUG &&
294 (*Vmregion->meth.addrf)(Vmregion,data) != 0 )
300 if((newdata = (*Vmregion->meth.allocf)(Vmregion,size)) )
309 if (newdata = (*Vmregion->meth.resizef)(Vmregion,data,size,VM_RSCOPY|VM_RSMOVE))
314 return VMRECORD((*Vmregion->meth.resizef)(Vmregion,data,size,VM_RSCOPY|VM_RSMOVE));
337 if(data && Vmregion->meth.meth != VM_MTDEBUG &&
341 (*Vmregion->meth.addrf)(Vmregion,data) != 0)
[all …]
H A Dvmopen.c48 Vmalloc_t* vmopen(Vmdisc_t* disc, Vmethod_t* meth, int mode) in vmopen() argument
50 Vmalloc_t* vmopen(disc, meth, mode) in vmopen()
52 Vmethod_t* meth; /* method to manage space */
65 if(!meth || !disc || !(memoryf = disc->memoryf) )
74 vm->meth = *meth;
91 if((vd->mode&meth->meth) != 0)
120 vd->mode = (mode&VM_FLAGS) | meth->meth;
/titanic_51/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso.c112 Asometh_t* meth;
191 Asometh_t* meth;
196 if (!(meth = (Asometh_t*)data))
199 if (meth == method[i])
214 return state.meth;
233 if (state.meth && state.meth->initf && state.data && state.pid == getpid())
236 state.meth->initf(state.data, 0);
246 asoinit(const char* details, Asometh_t* meth, Asodisc_t* disc)
258 if (!meth)
[all...]

123