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.c59 ec_GF2m_163_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
131 ec_GF2m_163_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
140 return mp_bsqrmod(a, meth->irr_arr, r);
148 return mp_bsqrmod(a, meth->irr_arr, r);
171 return ec_GF2m_163_mod(r, r, meth);
181 const GFMethod *meth)
192 return ec_GF2m_163_sqr(a, r, meth);
262 return ec_GF2m_163_mod(r, r, meth);
273 group->meth->field_mod = &ec_GF2m_163_mod;
274 group->meth
180 ec_GF2m_163_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Dec2_193.c59 ec_GF2m_193_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
139 ec_GF2m_193_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
148 return mp_bsqrmod(a, meth->irr_arr, r);
156 return mp_bsqrmod(a, meth->irr_arr, r);
180 return ec_GF2m_193_mod(r, r, meth);
190 const GFMethod *meth)
201 return ec_GF2m_193_sqr(a, r, meth);
281 return ec_GF2m_193_mod(r, r, meth);
292 group->meth->field_mod = &ec_GF2m_193_mod;
293 group->meth
189 ec_GF2m_193_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Dec2_233.c59 ec_GF2m_233_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
155 ec_GF2m_233_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
164 return mp_bsqrmod(a, meth->irr_arr, r);
172 return mp_bsqrmod(a, meth->irr_arr, r);
198 return ec_GF2m_233_mod(r, r, meth);
208 const GFMethod *meth)
220 return ec_GF2m_233_sqr(a, r, meth);
306 return ec_GF2m_233_mod(r, r, meth);
317 group->meth->field_mod = &ec_GF2m_233_mod;
318 group->meth
207 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.c59 GFMethod *meth; local
61 meth = (GFMethod *) kmem_alloc(sizeof(GFMethod), kmflag);
63 meth = (GFMethod *) malloc(sizeof(GFMethod));
64 if (meth == NULL)
67 meth->constructed = MP_YES;
68 MP_DIGITS(&meth->irr) = 0;
69 meth->extra_free = NULL;
70 MP_CHECKOK(mp_init(&meth->irr, kmflag));
74 GFMethod_free(meth);
77 return meth;
86 GFMethod *meth = NULL; local
146 GFMethod *meth = NULL; local
195 GFMethod_free(GFMethod *meth) argument
215 ec_GFp_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
232 ec_GFp_neg(const mp_int *a, mp_int *r, const GFMethod *meth) argument
245 ec_GFp_sub(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
270 ec_GFp_add_3(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
357 ec_GFp_add_4(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
457 ec_GFp_add_5(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
542 ec_GFp_add_6(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
643 ec_GFp_sub_3(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
731 ec_GFp_sub_4(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
830 ec_GFp_sub_5(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
906 ec_GFp_sub_6(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
994 ec_GFp_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1001 ec_GFp_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
1009 ec_GFp_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1017 ec_GFp_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
1042 ec_GF2m_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
1051 ec_GF2m_neg(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1062 ec_GF2m_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1069 ec_GF2m_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
1077 ec_GF2m_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
1085 ec_GF2m_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decp_192.c59 ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
86 MP_CHECKOK(mp_mod(a, &meth->irr, r));
306 const GFMethod *meth)
391 const GFMethod *meth)
473 ec_GFp_nistp192_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
478 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth));
488 const GFMethod *meth)
493 MP_CHECKOK(ec_GFp_nistp192_mod(r, r, meth));
502 const GFMethod *meth)
509 return mp_invmod(b, &meth
305 ec_GFp_nistp192_add(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
390 ec_GFp_nistp192_sub(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
487 ec_GFp_nistp192_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
501 ec_GFp_nistp192_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decp_224.c59 ec_GFp_nistp224_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
84 MP_CHECKOK(mp_mod(a, &meth->irr, r));
327 ec_GFp_nistp224_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
332 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
342 const GFMethod *meth)
347 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
356 const GFMethod *meth)
363 return mp_invmod(b, &meth->irr, r);
368 MP_CHECKOK(mp_invmod(b, &meth->irr, &t));
370 MP_CHECKOK(ec_GFp_nistp224_mod(r, r, meth));
341 ec_GFp_nistp224_mul(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
355 ec_GFp_nistp224_div(const mp_int *a, const mp_int *b, mp_int *r, const GFMethod *meth) argument
[all...]
H A Decp_256.c57 ec_GFp_nistp256_mod(const mp_int *a, mp_int *r, const GFMethod *meth) argument
81 MP_CHECKOK(mp_mod(a, &meth->irr, r));
253 MP_CHECKOK(mp_sub(r, &meth->irr, r));
260 MP_CHECKOK(mp_add(r, &meth->irr, r));
263 MP_CHECKOK(mp_sub(r, &meth->irr, r));
267 if (MP_DIGIT(r,7) >= MP_DIGIT(&meth->irr,7)) {
268 if (mp_cmp(r,&meth->irr) != MP_LT) {
269 MP_CHECKOK(mp_sub(r, &meth->irr, r));
396 MP_CHECKOK(mp_sub(r, &meth->irr, r));
411 ec_GFp_nistp256_sqr(const mp_int *a, mp_int *r, const GFMethod *meth) argument
425 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/libkmf/plugins/kmf_openssl/common/
H A Dcompat.c364 RSA_meth_dup(const RSA_METHOD *meth) argument
371 (void) memcpy(ret, meth, sizeof (*meth));
372 ret->name = OPENSSL_strdup(meth->name);
383 RSA_meth_set1_name(RSA_METHOD *meth, const char *name) argument
392 OPENSSL_free((char *)meth->name);
393 meth->name = tmpname;
399 RSA_meth_set_priv_enc(RSA_METHOD *meth, argument
403 meth->rsa_priv_enc = priv_enc;
408 RSA_meth_set_priv_dec(RSA_METHOD *meth, argument
417 RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa)) argument
424 RSA_meth_free(RSA_METHOD *meth) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_method.c138 const topo_method_t *meth; local
143 for (meth = &mp[0]; meth->tm_name != NULL; meth++) {
146 if (topo_method_lookup(node, meth->tm_name) != NULL) {
151 if (meth->tm_stability < TOPO_STABILITY_INTERNAL ||
152 meth->tm_stability > TOPO_STABILITY_MAX ||
153 meth->tm_func == NULL)
162 if ((imp->tim_name = topo_mod_strdup(mod, meth->tm_name))
167 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...]
/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 276 milliseconds

12