Home
last modified time | relevance | path

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

1234567

/onnv-gate/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()
75 MP_CHECKOK(group->meth-> in gf2m_Mdouble()
76 field_mul(&group->curveb, &t1, &t1, group->meth)); in gf2m_Mdouble()
77 MP_CHECKOK(group->meth->field_add(x, &t1, x, group->meth)); in gf2m_Mdouble()
101 MP_CHECKOK(group->meth->field_mul(x1, z2, x1, group->meth)); in gf2m_Madd()
102 MP_CHECKOK(group->meth->field_mul(z1, x2, z1, group->meth)); in gf2m_Madd()
[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()
96 MP_CHECKOK(group->meth->field_add(S, S, rz, group->meth)); in ec_GFp_pt_dbl_jm()
99 MP_CHECKOK(group->meth->field_sqr(py, t0, group->meth)); in ec_GFp_pt_dbl_jm()
100 MP_CHECKOK(group->meth->field_add(t0, t0, t0, group->meth)); in ec_GFp_pt_dbl_jm()
101 MP_CHECKOK(group->meth->field_sqr(t0, t1, group->meth)); in ec_GFp_pt_dbl_jm()
102 MP_CHECKOK(group->meth->field_add(t1, t1, t1, 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->field_mul(px, &z2, rx, group->meth)); in ec_GFp_pt_jac2aff()
118 MP_CHECKOK(group->meth->field_mul(py, &z3, ry, group->meth)); in ec_GFp_pt_jac2aff()
187 MP_CHECKOK(group->meth->field_sqr(pz, &A, group->meth)); in ec_GFp_pt_add_jac_aff()
188 MP_CHECKOK(group->meth->field_mul(&A, pz, &B, group->meth)); in ec_GFp_pt_add_jac_aff()
189 MP_CHECKOK(group->meth->field_mul(&A, qx, &A, group->meth)); in ec_GFp_pt_add_jac_aff()
[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->extra2 = NULL; in GFMethod_consGFp_mont()
[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()
[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()
116 MP_CHECKOK(group->meth-> in ec_GF2m_pt_add_aff()
117 field_add(&tempx, &group->curvea, &tempx, group->meth)); in ec_GF2m_pt_add_aff()
118 MP_CHECKOK(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->field_enc(&temp, &temp, group->meth)); in ec_GFp_pt_add_aff()
134 MP_CHECKOK(group->meth-> in ec_GFp_pt_add_aff()
135 field_mul(&tempx, &temp, &tempx, group->meth)); in ec_GFp_pt_add_aff()
136 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);
[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()
141 if (group->meth->field_enc) { in ec_pts_mul_basic()
142 MP_CHECKOK(group->meth->field_enc(&sx, &sx, group->meth)); in ec_pts_mul_basic()
143 MP_CHECKOK(group->meth->field_enc(&sy, &sy, group->meth)); in ec_pts_mul_basic()
144 MP_CHECKOK(group->meth->field_enc(rx, rx, group->meth)); in ec_pts_mul_basic()
[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 …]
/onnv-gate/usr/src/common/openssl/crypto/rand/
H A Drand_lib.c73 int RAND_set_rand_method(const RAND_METHOD *meth) in RAND_set_rand_method() argument
82 default_RAND_meth = meth; in RAND_set_rand_method()
134 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_cleanup() local
135 if (meth && meth->cleanup) in RAND_cleanup()
136 meth->cleanup(); in RAND_cleanup()
142 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_seed() local
143 if (meth && meth->seed) in RAND_seed()
144 meth->seed(buf,num); in RAND_seed()
149 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_add() local
150 if (meth && meth->add) in RAND_add()
[all …]
/onnv-gate/usr/src/common/openssl/crypto/ec/
H A Dec_lib.c76 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument
80 if (meth == NULL) in EC_GROUP_new()
85 if (meth->group_init == 0) in EC_GROUP_new()
98 ret->meth = meth; in EC_GROUP_new()
113 if (!meth->group_init(ret)) in EC_GROUP_new()
127 if (group->meth->group_finish != 0) in EC_GROUP_free()
128 group->meth->group_finish(group); in EC_GROUP_free()
148 if (group->meth->group_clear_finish != 0) in EC_GROUP_clear_free()
149 group->meth->group_clear_finish(group); in EC_GROUP_clear_free()
150 else if (group->meth != NULL && group->meth->group_finish != 0) in EC_GROUP_clear_free()
[all …]
H A Dec2_mult.c92 if (!group->meth->field_sqr(group, x, x, ctx)) goto err; in gf2m_Mdouble()
93 if (!group->meth->field_sqr(group, t1, z, ctx)) goto err; in gf2m_Mdouble()
94 if (!group->meth->field_mul(group, z, x, t1, ctx)) goto err; in gf2m_Mdouble()
95 if (!group->meth->field_sqr(group, x, x, ctx)) goto err; in gf2m_Mdouble()
96 if (!group->meth->field_sqr(group, t1, t1, ctx)) goto err; in gf2m_Mdouble()
97 if (!group->meth->field_mul(group, t1, &group->b, t1, ctx)) goto err; in gf2m_Mdouble()
126 if (!group->meth->field_mul(group, x1, x1, z2, ctx)) goto err; in gf2m_Madd()
127 if (!group->meth->field_mul(group, z1, z1, x2, ctx)) goto err; in gf2m_Madd()
128 if (!group->meth->field_mul(group, t2, x1, z1, ctx)) goto err; in gf2m_Madd()
130 if (!group->meth->field_sqr(group, z1, z1, ctx)) goto err; in gf2m_Madd()
[all …]
H A Dec_cvt.c78 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local
81 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp()
83 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp()
109 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
111 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp()
128 const EC_METHOD *meth; in EC_GROUP_new_curve_GF2m() local
131 meth = EC_GF2m_simple_method(); in EC_GROUP_new_curve_GF2m()
133 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GF2m()
/onnv-gate/usr/src/common/openssl/crypto/dso/
H A Ddso_lib.c71 void DSO_set_default_method(DSO_METHOD *meth) in DSO_set_default_method() argument
73 default_DSO_meth = meth; in DSO_set_default_method()
83 return(dso->meth); in DSO_get_method()
86 DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth) in DSO_set_method() argument
89 mtmp = dso->meth; in DSO_set_method()
90 dso->meth = meth; in DSO_set_method()
94 DSO *DSO_new_method(DSO_METHOD *meth) in DSO_new_method() argument
118 if(meth == NULL) in DSO_new_method()
119 ret->meth = default_DSO_meth; in DSO_new_method()
121 ret->meth = meth; in DSO_new_method()
[all …]
/onnv-gate/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 …]
/onnv-gate/usr/src/common/openssl/crypto/comp/
H A Dcomp_lib.c7 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) in COMP_CTX_new() argument
17 ret->meth=meth; in COMP_CTX_new()
18 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) in COMP_CTX_new()
31 if (ctx->meth->finish != NULL) in COMP_CTX_free()
32 ctx->meth->finish(ctx); in COMP_CTX_free()
41 if (ctx->meth->compress == NULL) in COMP_compress_block()
46 ret=ctx->meth->compress(ctx,out,olen,in,ilen); in COMP_compress_block()
60 if (ctx->meth->expand == NULL) in COMP_expand_block()
65 ret=ctx->meth->expand(ctx,out,olen,in,ilen); in COMP_expand_block()
/onnv-gate/usr/src/common/openssl/crypto/dh/
H A Ddh_lib.c71 void DH_set_default_method(const DH_METHOD *meth) in DH_set_default_method() argument
73 default_DH_method = meth; in DH_set_default_method()
83 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument
88 mtmp = dh->meth; in DH_set_method()
97 dh->meth = meth; in DH_set_method()
98 if (meth->init) meth->init(dh); in DH_set_method()
118 ret->meth = DH_get_default_method(); in DH_new_method()
134 ret->meth = ENGINE_get_DH(ret->engine); in DH_new_method()
135 if(!ret->meth) in DH_new_method()
159 ret->flags=ret->meth->flags; in DH_new_method()
[all …]
/onnv-gate/usr/src/common/openssl/crypto/ecdh/
H A Dech_lib.c85 void ECDH_set_default_method(const ECDH_METHOD *meth) in ECDH_set_default_method() argument
87 default_ECDH_method = meth; in ECDH_set_default_method()
97 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) in ECDH_set_method() argument
107 mtmp = ecdh->meth; in ECDH_set_method()
119 ecdh->meth = meth; in ECDH_set_method()
121 if (meth->init) in ECDH_set_method()
122 meth->init(eckey); in ECDH_set_method()
140 ret->meth = ECDH_get_default_method(); in ECDH_DATA_new_method()
147 ret->meth = ENGINE_get_ECDH(ret->engine); in ECDH_DATA_new_method()
148 if (!ret->meth) in ECDH_DATA_new_method()
[all …]
/onnv-gate/usr/src/common/openssl/crypto/dsa/
H A Ddsa_lib.c77 void DSA_set_default_method(const DSA_METHOD *meth) in DSA_set_default_method() argument
79 default_DSA_method = meth; in DSA_set_default_method()
94 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() argument
99 mtmp = dsa->meth; in DSA_set_method()
108 dsa->meth = meth; in DSA_set_method()
109 if (meth->init) meth->init(dsa); in DSA_set_method()
123 ret->meth = DSA_get_default_method(); in DSA_new_method()
139 ret->meth = ENGINE_get_DSA(ret->engine); in DSA_new_method()
140 if(!ret->meth) in DSA_new_method()
166 ret->flags=ret->meth->flags; in DSA_new_method()
[all …]
/onnv-gate/usr/src/common/openssl/crypto/ecdsa/
H A Decs_lib.c72 void ECDSA_set_default_method(const ECDSA_METHOD *meth) in ECDSA_set_default_method() argument
74 default_ECDSA_method = meth; in ECDSA_set_default_method()
84 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) in ECDSA_set_method() argument
94 mtmp = ecdsa->meth; in ECDSA_set_method()
102 ecdsa->meth = meth; in ECDSA_set_method()
120 ret->meth = ECDSA_get_default_method(); in ECDSA_DATA_new_method()
127 ret->meth = ENGINE_get_ECDSA(ret->engine); in ECDSA_DATA_new_method()
128 if (!ret->meth) in ECDSA_DATA_new_method()
138 ret->flags = ret->meth->flags; in ECDSA_DATA_new_method()
141 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) in ECDSA_DATA_new_method()
/onnv-gate/usr/src/common/openssl/crypto/rsa/
H A Drsa_lib.c81 void RSA_set_default_method(const RSA_METHOD *meth) in RSA_set_default_method() argument
83 default_RSA_meth = meth; in RSA_set_default_method()
106 return rsa->meth; in RSA_get_method()
109 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) in RSA_set_method() argument
114 mtmp = rsa->meth; in RSA_set_method()
123 rsa->meth = meth; in RSA_set_method()
124 if (meth->init) meth->init(rsa); in RSA_set_method()
139 ret->meth = RSA_get_default_method(); in RSA_new_method()
155 ret->meth = ENGINE_get_RSA(ret->engine); in RSA_new_method()
156 if(!ret->meth) in RSA_new_method()
[all …]
/onnv-gate/usr/src/common/openssl/crypto/asn1/
H A Da_hdr.c69 M_ASN1_I2D_len(a->data, a->meth->i2d); in i2d_ASN1_HEADER()
74 M_ASN1_I2D_put(a->data, a->meth->i2d); in i2d_ASN1_HEADER()
87 if (ret->meth != NULL) in d2i_ASN1_HEADER()
89 M_ASN1_D2I_get_x(void,ret->data,ret->meth->d2i); in d2i_ASN1_HEADER()
106 ret->meth=NULL; in ASN1_HEADER_new()
116 if (a->meth != NULL) in ASN1_HEADER_free()
117 a->meth->destroy(a->data); in ASN1_HEADER_free()

1234567