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

12

/illumos-gate/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.c89 if (group->meth->field_enc) {
90 MP_CHECKOK(group->meth->field_enc(px, rx, group->meth));
91 MP_CHECKOK(group->meth->field_enc(py, ry, group->meth));
97 if (group->meth->field_dec) {
98 MP_CHECKOK(group->meth->field_dec(rx, rx, group->meth));
99 MP_CHECKOK(group->meth->field_dec(ry, ry, group->meth));
[all...]
H A Decp_521.c61 ec_GFp_nistp521_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
84 MP_CHECKOK(mp_mod(a, &meth->irr, r));
118 ec_GFp_nistp521_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
123 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
133 const GFMethod *meth)
138 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
147 const GFMethod *meth)
154 return mp_invmod(b, &meth->irr, r);
159 MP_CHECKOK(mp_invmod(b, &meth->irr, &t));
161 MP_CHECKOK(ec_GFp_nistp521_mod(r, r, meth));
132 ec_GFp_nistp521_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
146 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.c168 if (group->meth->field_dec) {
169 MP_CHECKOK(group->meth->field_dec(&group->genx, &gx, group->meth));
170 MP_CHECKOK(group->meth->field_dec(&group->geny, &gy, group->meth));
182 if (group->meth->field_enc) {
203 MP_CHECKOK(group->meth->field_neg(&ry, &ry, group->meth));
224 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.c59 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.c72 group->meth = NULL;
112 group->meth = GFMethod_consGFp(irr);
113 if (group->meth == NULL) {
153 group->meth = GFMethod_consGFp_mont(irr);
154 if (group->meth == NULL) {
158 MP_CHECKOK(group->meth->
159 field_enc(curvea, &group->curvea, group->meth));
160 MP_CHECKOK(group->meth->
161 field_enc(curveb, &group->curveb, group->meth));
162 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...]
H A Decp_224.c61 ec_GFp_nistp224_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
86 MP_CHECKOK(mp_mod(a, &meth->irr, r));
320 ec_GFp_nistp224_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
325 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
335 const GFMethod *meth)
340 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
349 const GFMethod *meth)
356 return mp_invmod(b, &meth->irr, r);
361 MP_CHECKOK(mp_invmod(b, &meth->irr, &t));
363 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
334 ec_GFp_nistp224_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
348 ec_GFp_nistp224_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
/illumos-gate/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))
/illumos-gate/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...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_method.c134 const topo_method_t *meth; local
139 for (meth = &mp[0]; meth->tm_name != NULL; meth++) {
142 if (topo_method_lookup(node, meth->tm_name) != NULL) {
147 if (meth->tm_stability < TOPO_STABILITY_INTERNAL ||
148 meth->tm_stability > TOPO_STABILITY_MAX ||
149 meth->tm_func == NULL)
158 if ((imp->tim_name = topo_mod_strdup(mod, meth->tm_name))
163 if ((imp->tim_desc = topo_mod_strdup(mod, meth
[all...]

Completed in 98 milliseconds

12