Searched refs:meth (Results 1 - 25 of 67) sorted by relevance

123

/osnet-11/usr/src/common/crypto/ecc/
H A Dec2_mont.c70 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth));
71 MP_CHECKOK(group->meth->field_sqr(z, &t1, group->meth));
72 MP_CHECKOK(group->meth->field_mul(x, &t1, z, group->meth));
73 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth));
74 MP_CHECKOK(group->meth->field_sqr(&t1, &t1, group->meth));
[all...]
H A Decp_mont.c67 GFMethod *meth = NULL; local
70 meth = GFMethod_consGFp(irr);
71 if (meth == NULL)
85 meth->field_mul = &ec_GFp_mul_mont;
86 meth->field_sqr = &ec_GFp_sqr_mont;
87 meth->field_div = &ec_GFp_div_mont;
88 meth->field_enc = &ec_GFp_enc_mont;
89 meth->field_dec = &ec_GFp_dec_mont;
90 meth->extra1 = mmm;
91 meth
112 ec_GFp_mul_mont(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
144 ec_GFp_sqr_mont(const mp_int *a, mp_int *r, const GFMethod *meth) argument
151 ec_GFp_div_mont(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
172 ec_GFp_enc_mont(const mp_int *a, mp_int *r, const GFMethod *meth) argument
186 ec_GFp_dec_mont(const mp_int *a, mp_int *r, const GFMethod *meth) argument
201 ec_GFp_extra_free_mont(GFMethod *meth) argument
[all...]
H A Decp_jm.c89 MP_CHECKOK(group->meth->field_sqr(px, t0, group->meth));
90 MP_CHECKOK(group->meth->field_add(t0, t0, M, group->meth));
91 MP_CHECKOK(group->meth->field_add(t0, M, t0, group->meth));
92 MP_CHECKOK(group->meth->field_add(t0, paz4, M, group->meth));
95 MP_CHECKOK(group->meth->field_mul(py, pz, S, group->meth));
[all...]
H A Decl_gf.c61 GFMethod *meth; local
63 meth = (GFMethod *) kmem_alloc(sizeof(GFMethod), kmflag);
65 meth = (GFMethod *) malloc(sizeof(GFMethod));
66 if (meth == NULL)
69 meth->constructed = MP_YES;
70 MP_DIGITS(&meth->irr) = 0;
71 meth->extra_free = NULL;
72 MP_CHECKOK(mp_init(&meth->irr, kmflag));
76 GFMethod_free(meth);
79 return meth;
88 GFMethod *meth = NULL; local
148 GFMethod *meth = NULL; local
197 GFMethod_free(GFMethod *meth) argument
217 ec_GFp_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
234 ec_GFp_neg(const mp_int *a, mp_int *r, const GFMethod *meth) argument
247 ec_GFp_sub(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
272 ec_GFp_add_3(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
355 ec_GFp_add_4(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
449 ec_GFp_add_5(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
526 ec_GFp_add_6(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
617 ec_GFp_sub_3(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
701 ec_GFp_sub_4(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
794 ec_GFp_sub_5(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
862 ec_GFp_sub_6(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
940 ec_GFp_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
947 ec_GFp_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
955 ec_GFp_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
963 ec_GFp_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
988 ec_GF2m_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
997 ec_GF2m_neg(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1008 ec_GF2m_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1015 ec_GF2m_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
1023 ec_GF2m_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1031 ec_GF2m_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Dec2_aff.c109 MP_CHECKOK(group->meth->field_add(py, qy, &tempy, group->meth));
110 MP_CHECKOK(group->meth->field_add(px, qx, &tempx, group->meth));
111 MP_CHECKOK(group->meth->
112 field_div(&tempy, &tempx, &lambda, group->meth));
113 MP_CHECKOK(group->meth->field_sqr(&lambda, &tempx, group->meth));
114 MP_CHECKOK(group->meth->
115 field_add(&tempx, &lambda, &tempx, group->meth));
[all...]
H A Decp_aff.c116 MP_CHECKOK(group->meth->field_sub(py, qy, &tempy, group->meth));
117 MP_CHECKOK(group->meth->field_sub(px, qx, &tempx, group->meth));
118 MP_CHECKOK(group->meth->
119 field_div(&tempy, &tempx, &lambda, group->meth));
129 MP_CHECKOK(group->meth->field_sqr(qx, &tempx, group->meth));
131 if (group->meth->field_enc) {
132 MP_CHECKOK(group->meth
[all...]
H A Decp_jac.c77 if (group->meth->field_enc) {
78 MP_CHECKOK(group->meth->field_enc(rz, rz, group->meth));
114 MP_CHECKOK(group->meth->field_div(NULL, pz, &z1, group->meth));
115 MP_CHECKOK(group->meth->field_sqr(&z1, &z2, group->meth));
116 MP_CHECKOK(group->meth->field_mul(&z1, &z2, &z3, group->meth));
117 MP_CHECKOK(group->meth
[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; member in struct:ECGroupStr
[all...]
H A Decl_mult.c88 if (group->meth->field_enc) {
89 MP_CHECKOK(group->meth->field_enc(px, rx, group->meth));
90 MP_CHECKOK(group->meth->field_enc(py, ry, group->meth));
96 if (group->meth->field_dec) {
97 MP_CHECKOK(group->meth->field_dec(rx, rx, group->meth));
98 MP_CHECKOK(group->meth->field_dec(ry, ry, group->meth));
[all...]
H A Decp_521.c59 ec_GFp_nistp521_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
83 MP_CHECKOK(mp_mod(a, &meth->irr, r));
117 ec_GFp_nistp521_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
122 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
132 const GFMethod *meth)
137 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
146 const GFMethod *meth)
153 return mp_invmod(b, &meth->irr, r);
158 MP_CHECKOK(mp_invmod(b, &meth->irr, &t));
160 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
131 ec_GFp_nistp521_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
145 ec_GFp_nistp521_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Dec2_163.c61 ec_GF2m_163_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
133 ec_GF2m_163_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
142 return mp_bsqrmod(a, meth->irr_arr, r);
150 return mp_bsqrmod(a, meth->irr_arr, r);
173 return ec_GF2m_163_mod(r, r, meth);
183 const GFMethod *meth)
194 return ec_GF2m_163_sqr(a, r, meth);
254 return ec_GF2m_163_mod(r, r, meth);
265 group->meth->field_mod = &ec_GF2m_163_mod;
266 group->meth
182 ec_GF2m_163_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Dec2_193.c61 ec_GF2m_193_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
141 ec_GF2m_193_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
150 return mp_bsqrmod(a, meth->irr_arr, r);
158 return mp_bsqrmod(a, meth->irr_arr, r);
182 return ec_GF2m_193_mod(r, r, meth);
192 const GFMethod *meth)
203 return ec_GF2m_193_sqr(a, r, meth);
271 return ec_GF2m_193_mod(r, r, meth);
282 group->meth->field_mod = &ec_GF2m_193_mod;
283 group->meth
191 ec_GF2m_193_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decp_test.c166 if (group->meth->field_dec) {
167 MP_CHECKOK(group->meth->field_dec(&group->genx, &gx, group->meth));
168 MP_CHECKOK(group->meth->field_dec(&group->geny, &gy, group->meth));
180 if (group->meth->field_enc) {
201 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth));
222 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth));
[all...]
H A Decp_192.c61 ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
88 MP_CHECKOK(mp_mod(a, &meth->irr, r));
301 const GFMethod *meth)
382 const GFMethod *meth)
460 ec_GFp_nistp192_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
465 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth));
475 const GFMethod *meth)
480 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth));
489 const GFMethod *meth)
496 return mp_invmod(b, &meth
300 ec_GFp_nistp192_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
381 ec_GFp_nistp192_sub(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
474 ec_GFp_nistp192_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
488 ec_GFp_nistp192_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decp_384.c57 ec_GFp_nistp384_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
90 MP_CHECKOK(mp_mod(a, &meth->irr, r));
185 MP_CHECKOK(mp_submod(r, &m[9], &meth->irr, r));
192 MP_CHECKOK(mp_mod(a, &meth->irr, r));
254 MP_CHECKOK(mp_submod(r, &m[9], &meth->irr, r));
267 ec_GFp_nistp384_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
272 MP_CHECKOK(ec_GFp_nistp384_mod(r, r, meth));
282 const GFMethod *meth)
287 MP_CHECKOK(ec_GFp_nistp384_mod(r, r, meth));
298 group->meth
281 ec_GFp_nistp384_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decl.c70 group->meth = NULL;
110 group->meth = GFMethod_consGFp(irr);
111 if (group->meth == NULL) {
151 group->meth = GFMethod_consGFp_mont(irr);
152 if (group->meth == NULL) {
156 MP_CHECKOK(group->meth->
157 field_enc(curvea, &group->curvea, group->meth));
158 MP_CHECKOK(group->meth->
159 field_enc(curveb, &group->curveb, group->meth));
160 MP_CHECKOK(group->meth
[all...]
H A Dec2_233.c61 ec_GF2m_233_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
157 ec_GF2m_233_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
166 return mp_bsqrmod(a, meth->irr_arr, r);
174 return mp_bsqrmod(a, meth->irr_arr, r);
200 return ec_GF2m_233_mod(r, r, meth);
210 const GFMethod *meth)
222 return ec_GF2m_233_sqr(a, r, meth);
294 return ec_GF2m_233_mod(r, r, meth);
305 group->meth->field_mod = &ec_GF2m_233_mod;
306 group->meth
209 ec_GF2m_233_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
/osnet-11/usr/src/lib/libast/common/cdt/
H A Ddtmethod.c30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) argument
32 Dtmethod_t* dtmethod(dt, meth)
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;
[all...]
H A Ddtopen.c31 Dt_t* dtopen(Dtdisc_t* disc, Dtmethod_t* meth) argument
33 Dt_t* dtopen(disc, meth)
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
[all...]
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
[all...]
H A Ddtnew.c59 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) argument
70 if (dt = dtopen(&dc.ndisc, meth))
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmopen.c48 Vmalloc_t* vmopen(Vmdisc_t* disc, Vmethod_t* meth, int mode) argument
50 Vmalloc_t* vmopen(disc, meth, mode)
52 Vmethod_t* meth; /* method to manage space */
65 if(!meth || !disc || !(memoryf = disc->memoryf) )
71 where the meth&disc function addresses are going to be stored */
74 vm->meth = *meth;
91 if((vd->mode&meth->meth) != 0)
120 vd->mode = (mode&VM_FLAGS) | meth
[all...]
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
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp.h324 #define tryAMAGICbinW(meth,assign,set) STMT_START { \
331 CAT2(meth,_amg), \
338 #define tryAMAGICbin(meth,assign) tryAMAGICbinW(meth,assign,SETsv)
339 #define tryAMAGICbinSET(meth,assign) tryAMAGICbinW(meth,assign,SETs)
341 #define AMG_CALLun(sv,meth) amagic_call(sv,&PL_sv_undef, \
342 CAT2(meth,_amg),AMGf_noright | AMGf_unary)
343 #define AMG_CALLbinL(left,right,meth) \
344 amagic_call(left,right,CAT2(meth,_am
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Class/
H A DStruct.t13 sub meth { 42 } subroutine
66 is $obj->c->meth(), 42;
93 is $obj->c->meth(), 42;

Completed in 592 milliseconds

123