Searched defs:meth (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/cdt/
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 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 Ddtnew.c59 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) argument
70 if (dt = dtopen(&dc.ndisc, meth))
/illumos-gate/usr/src/common/crypto/ecc/
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 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_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 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 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_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 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_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...]
H A Decp_256.c59 ec_GFp_nistp256_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
83 MP_CHECKOK(mp_mod(a, &meth->irr, r));
248 MP_CHECKOK(mp_sub(r, &meth->irr, r));
255 MP_CHECKOK(mp_add(r, &meth->irr, r));
258 MP_CHECKOK(mp_sub(r, &meth->irr, r));
262 if (MP_DIGIT(r,7) >= MP_DIGIT(&meth->irr,7)) {
263 if (mp_cmp(r,&meth->irr) != MP_LT) {
264 MP_CHECKOK(mp_sub(r, &meth->irr, r));
388 MP_CHECKOK(mp_sub(r, &meth->irr, r));
403 ec_GFp_nistp256_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
417 ec_GFp_nistp256_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
/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...]
/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...]
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dvmalloc.h71 unsigned short meth; member in struct:_vmethod_s
75 { Vmethod_t meth; /* method for allocation */ member in struct:_vmalloc_s
225 (*(_VM_(vm)->meth.allocf))((vm),(sz)) )
227 (*(_VM_(vm)->meth.resizef))\
230 (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d)) )
232 (*(_VM_(vm)->meth.alignf))((vm),(sz),(align)) )
296 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz))
300 #define vmresize(vm,d,sz,type) (*(_VM_(vm)->meth.resizef))\
305 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d))
309 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth
[all...]
H A Dcdt.h120 Dtmethod_t* meth; /* dictionary method */ member in struct:_dt_s
/illumos-gate/usr/src/lib/libast/common/include/
H A Dvmalloc.h71 unsigned short meth; member in struct:_vmethod_s
75 { Vmethod_t meth; /* method for allocation */ member in struct:_vmalloc_s
225 (*(_VM_(vm)->meth.allocf))((vm),(sz)) )
227 (*(_VM_(vm)->meth.resizef))\
230 (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d)) )
232 (*(_VM_(vm)->meth.alignf))((vm),(sz),(align)) )
296 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz))
300 #define vmresize(vm,d,sz,type) (*(_VM_(vm)->meth.resizef))\
305 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d))
309 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth
[all...]
H A Dcdt.h120 Dtmethod_t* meth; /* dictionary method */ member in struct:_dt_s
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dvmalloc.h71 unsigned short meth; member in struct:_vmethod_s
75 { Vmethod_t meth; /* method for allocation */ member in struct:_vmalloc_s
225 (*(_VM_(vm)->meth.allocf))((vm),(sz)) )
227 (*(_VM_(vm)->meth.resizef))\
230 (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d)) )
232 (*(_VM_(vm)->meth.alignf))((vm),(sz),(align)) )
296 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz))
300 #define vmresize(vm,d,sz,type) (*(_VM_(vm)->meth.resizef))\
305 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d))
309 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth
[all...]
H A Dcdt.h120 Dtmethod_t* meth; /* dictionary method */ member in struct:_dt_s
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dvmalloc.h71 unsigned short meth; member in struct:_vmethod_s
75 { Vmethod_t meth; /* method for allocation */ member in struct:_vmalloc_s
225 (*(_VM_(vm)->meth.allocf))((vm),(sz)) )
227 (*(_VM_(vm)->meth.resizef))\
230 (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d)) )
232 (*(_VM_(vm)->meth.alignf))((vm),(sz),(align)) )
296 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz))
300 #define vmresize(vm,d,sz,type) (*(_VM_(vm)->meth.resizef))\
305 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d))
309 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth
[all...]
H A Dcdt.h120 Dtmethod_t* meth; /* dictionary method */ member in struct:_dt_s
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/
H A Dvmalloc.h71 unsigned short meth; member in struct:_vmethod_s
75 { Vmethod_t meth; /* method for allocation */ member in struct:_vmalloc_s
225 (*(_VM_(vm)->meth.allocf))((vm),(sz)) )
227 (*(_VM_(vm)->meth.resizef))\
230 (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d)) )
232 (*(_VM_(vm)->meth.alignf))((vm),(sz),(align)) )
296 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz))
300 #define vmresize(vm,d,sz,type) (*(_VM_(vm)->meth.resizef))\
305 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d))
309 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth
[all...]

Completed in 91 milliseconds

12