/opensolaris-onvv-gate/usr/src/common/openssl/crypto/rand/ |
H A D | rand_lib.c | 73 int RAND_set_rand_method(const RAND_METHOD *meth) argument 82 default_RAND_meth = meth; 134 const RAND_METHOD *meth = RAND_get_rand_method(); local 135 if (meth && meth->cleanup) 136 meth->cleanup(); 142 const RAND_METHOD *meth = RAND_get_rand_method(); local 143 if (meth && meth->seed) 144 meth 149 const RAND_METHOD *meth = RAND_get_rand_method(); local 156 const RAND_METHOD *meth = RAND_get_rand_method(); local 164 const RAND_METHOD *meth = RAND_get_rand_method(); local 172 const RAND_METHOD *meth = RAND_get_rand_method(); local [all...] |
/opensolaris-onvv-gate/usr/src/common/crypto/ecc/ |
H A D | ec2_mont.c | 70 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 D | ecp_mont.c | 67 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 D | ecp_jm.c | 89 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 D | ecl_gf.c | 61 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 D | ec2_aff.c | 109 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 D | ecp_aff.c | 116 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 D | ecp_jac.c | 77 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 D | ecl-priv.h | 133 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 D | ecl_mult.c | 89 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 D | ecp_521.c | 61 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...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/comp/ |
H A D | comp_lib.c | 7 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) argument 17 ret->meth=meth; 18 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) 31 if (ctx->meth->finish != NULL) 32 ctx->meth->finish(ctx); 41 if (ctx->meth->compress == NULL) 46 ret=ctx->meth->compress(ctx,out,olen,in,ilen); 60 if (ctx->meth [all...] |
/opensolaris-onvv-gate/usr/src/lib/libast/common/cdt/ |
H A D | dtmethod.c | 30 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 D | dtopen.c | 31 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 D | dtview.c | 46 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...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/ec/ |
H A D | ec_lib.c | 76 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) argument 80 if (meth == NULL) 85 if (meth->group_init == 0) 98 ret->meth = meth; 113 if (!meth->group_init(ret)) 127 if (group->meth->group_finish != 0) 128 group->meth->group_finish(group); 148 if (group->meth->group_clear_finish != 0) 149 group->meth 278 EC_METHOD_get_field_type(const EC_METHOD *meth) argument [all...] |
H A D | ec_cvt.c | 78 const EC_METHOD *meth; local 81 meth = EC_GFp_nist_method(); 83 ret = EC_GROUP_new(meth); 109 meth = EC_GFp_mont_method(); 111 ret = EC_GROUP_new(meth); 128 const EC_METHOD *meth; local 131 meth = EC_GF2m_simple_method(); 133 ret = EC_GROUP_new(meth);
|
H A D | ec2_mult.c | 92 if (!group->meth->field_sqr(group, x, x, ctx)) goto err; 93 if (!group->meth->field_sqr(group, t1, z, ctx)) goto err; 94 if (!group->meth->field_mul(group, z, x, t1, ctx)) goto err; 95 if (!group->meth->field_sqr(group, x, x, ctx)) goto err; 96 if (!group->meth->field_sqr(group, t1, t1, ctx)) goto err; 97 if (!group->meth->field_mul(group, t1, &group->b, t1, ctx)) goto err; 126 if (!group->meth->field_mul(group, x1, x1, z2, ctx)) goto err; 127 if (!group->meth->field_mul(group, z1, z1, x2, ctx)) goto err; 128 if (!group->meth->field_mul(group, t2, x1, z1, ctx)) goto err; 130 if (!group->meth [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/asn1/ |
H A D | a_hdr.c | 69 M_ASN1_I2D_len(a->data, a->meth->i2d); 74 M_ASN1_I2D_put(a->data, a->meth->i2d); 87 if (ret->meth != NULL) 89 M_ASN1_D2I_get_x(void,ret->data,ret->meth->d2i); 106 ret->meth=NULL; 116 if (a->meth != NULL) 117 a->meth->destroy(a->data);
|
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/dso/ |
H A D | dso_lib.c | 71 void DSO_set_default_method(DSO_METHOD *meth) argument 73 default_DSO_meth = meth; 83 return(dso->meth); 86 DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth) argument 89 mtmp = dso->meth; 90 dso->meth = meth; 94 DSO *DSO_new_method(DSO_METHOD *meth) argument 118 if(meth == NULL) 119 ret->meth 194 DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags) argument [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/x509v3/ |
H A D | v3_int.c | 77 static void * s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, char *value) argument 79 return s2i_ASN1_INTEGER(meth, value);
|
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/ecdh/ |
H A D | ech_lib.c | 85 void ECDH_set_default_method(const ECDH_METHOD *meth) argument 87 default_ECDH_method = meth; 97 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) argument 107 mtmp = ecdh->meth; 119 ecdh->meth = meth; 121 if (meth->init) 122 meth->init(eckey); 140 ret->meth = ECDH_get_default_method(); 147 ret->meth [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/ecdsa/ |
H A D | ecs_lib.c | 72 void ECDSA_set_default_method(const ECDSA_METHOD *meth) argument 74 default_ECDSA_method = meth; 84 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) argument 94 mtmp = ecdsa->meth; 102 ecdsa->meth = meth; 120 ret->meth = ECDSA_get_default_method(); 127 ret->meth = ENGINE_get_ECDSA(ret->engine); 128 if (!ret->meth) 138 ret->flags = ret->meth [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/apps/ |
H A D | ciphers.c | 93 SSL_METHOD *meth=NULL; local 99 meth=SSLv23_server_method(); 101 meth=SSLv3_server_method(); 103 meth=SSLv2_server_method(); 126 meth=SSLv2_client_method(); 130 meth=SSLv3_client_method(); 134 meth=TLSv1_client_method(); 159 ctx=SSL_CTX_new(meth);
|
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/dh/ |
H A D | dh_lib.c | 71 void DH_set_default_method(const DH_METHOD *meth) argument 73 default_DH_method = meth; 83 int DH_set_method(DH *dh, const DH_METHOD *meth) argument 88 mtmp = dh->meth; 97 dh->meth = meth; 98 if (meth->init) meth->init(dh); 118 ret->meth = DH_get_default_method(); 134 ret->meth [all...] |