Home
last modified time | relevance | path

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

1234

/dragonfly/crypto/libressl/crypto/rsa/
H A Drsa_meth.c29 RSA_METHOD *meth; in RSA_meth_new() local
31 if ((meth = calloc(1, sizeof(*meth))) == NULL) in RSA_meth_new()
34 free(meth); in RSA_meth_new()
37 meth->flags = flags; in RSA_meth_new()
39 return meth; in RSA_meth_new()
45 if (meth == NULL) in RSA_meth_free()
48 free(meth->name); in RSA_meth_free()
49 free(meth); in RSA_meth_free()
75 free(meth->name); in RSA_meth_set1_name()
145 meth->init = init; in RSA_meth_set_init()
[all …]
H A Drsa_lib.c88 RSA_set_default_method(const RSA_METHOD *meth) in RSA_set_default_method() argument
90 default_RSA_meth = meth; in RSA_set_default_method()
105 return rsa->meth; in RSA_get_method()
117 mtmp = rsa->meth; in RSA_set_method()
124 rsa->meth = meth; in RSA_set_method()
125 if (meth->init) in RSA_set_method()
126 meth->init(rsa); in RSA_set_method()
140 ret->meth = RSA_get_default_method(); in RSA_new_method()
167 if (ret->meth->init != NULL && !ret->meth->init(ret)) { in RSA_new_method()
195 if (r->meth->finish) in RSA_free()
[all …]
H A Drsa_crpt.c92 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
99 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
106 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
113 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
119 return r == NULL ? 0 : r->meth->flags; in RSA_flags()
206 ret = BN_BLINDING_create_param(NULL, e, &n, ctx, rsa->meth->bn_mod_exp, in RSA_setup_blinding()
/dragonfly/crypto/libressl/crypto/ec/
H A Dec_kmeth.c105 if (meth == NULL) in EC_KEY_set_default_method()
114 return key->meth; in EC_KEY_get_method()
130 key->meth = meth; in EC_KEY_set_method()
175 if (ret->meth->init != NULL && ret->meth->init(ret) == 0) in EC_KEY_new_method()
192 if (meth != NULL) in EC_KEY_METHOD_new()
193 *ret = *meth; in EC_KEY_METHOD_new()
201 if (meth == NULL) in EC_KEY_METHOD_free()
204 free(meth); in EC_KEY_METHOD_free()
216 meth->init = init; in EC_KEY_METHOD_set_init()
218 meth->copy = copy; in EC_KEY_METHOD_set_init()
[all …]
H A Dec_lib.c94 ret->meth = meth; in EC_GROUP_new()
169 if (dest->meth != src->meth) { in EC_GROUP_copy()
845 ret->meth = group->meth; in EC_POINT_new()
888 if (dest->meth != src->meth) { in EC_POINT_copy()
933 if (group->meth != point->meth) { in EC_POINT_set_to_infinity()
948 if (group->meth != point->meth) { in EC_POINT_set_Jprojective_coordinates()
964 if (group->meth != point->meth) { in EC_POINT_get_Jprojective_coordinates()
1062 if ((group->meth != r->meth) || (r->meth != a->meth) || (a->meth != b->meth)) { in EC_POINT_add()
1077 if ((group->meth != r->meth) || (r->meth != a->meth)) { in EC_POINT_dbl()
1092 if (group->meth != a->meth) { in EC_POINT_invert()
[all …]
H A Dec_oct.c78 !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates()
82 if (group->meth != point->meth) { in EC_POINT_set_compressed_coordinates()
86 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates()
87 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_set_compressed_coordinates()
132 if (group->meth->point2oct == 0 in EC_POINT_point2oct()
137 if (group->meth != point->meth) { in EC_POINT_point2oct()
141 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_point2oct()
163 if (group->meth->oct2point == 0 && in EC_POINT_oct2point()
164 !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_oct2point()
168 if (group->meth != point->meth) { in EC_POINT_oct2point()
[all …]
H A Dec2_mult.c98 if (!group->meth->field_sqr(group, x, x, ctx)) in gf2m_Mdouble()
100 if (!group->meth->field_sqr(group, t1, z, ctx)) in gf2m_Mdouble()
102 if (!group->meth->field_mul(group, z, x, t1, ctx)) in gf2m_Mdouble()
104 if (!group->meth->field_sqr(group, x, x, ctx)) in gf2m_Mdouble()
106 if (!group->meth->field_sqr(group, t1, t1, ctx)) in gf2m_Mdouble()
150 if (!group->meth->field_sqr(group, z1, z1, ctx)) in gf2m_Madd()
220 if (!group->meth->field_sqr(group, t4, x, ctx)) in gf2m_Mxy()
306 if (!group->meth->field_sqr(group, z2, x1, ctx)) in ec_GF2m_montgomery_point_multiply()
308 if (!group->meth->field_sqr(group, x2, z2, ctx)) in ec_GF2m_montgomery_point_multiply()
412 if (!group->meth->invert(group, p, ctx)) in ec_GF2m_simple_mul()
[all …]
H A Dec_key.c93 if (ret->meth->set_group != NULL && in EC_KEY_new_by_curve_name()
113 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free()
114 r->meth->finish(r); in EC_KEY_free()
139 if (src->meth != dest->meth) { in EC_KEY_copy()
140 if (dest->meth != NULL && dest->meth->finish != NULL) in EC_KEY_copy()
141 dest->meth->finish(dest); in EC_KEY_copy()
153 dest->group = EC_GROUP_new(meth); in EC_KEY_copy()
201 if (src->meth != dest->meth) { in EC_KEY_copy()
207 dest->meth = src->meth; in EC_KEY_copy()
210 if (src->meth != NULL && src->meth->copy != NULL && in EC_KEY_copy()
[all …]
H A Dec_cvt.c81 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local
106 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
108 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp()
111 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp()
133 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
135 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp()
152 const EC_METHOD *meth; in EC_GROUP_new_curve_GF2m() local
155 meth = EC_GF2m_simple_method(); in EC_GROUP_new_curve_GF2m()
157 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GF2m()
H A Decp_smpl.c208 if (group->meth->field_encode) { in ec_GFp_simple_group_set_curve()
217 if (group->meth->field_encode) in ec_GFp_simple_group_set_curve()
246 if (group->meth->field_decode) { in ec_GFp_simple_group_get_curve()
313 if (group->meth->field_decode) { in ec_GFp_simple_group_check_discriminant()
433 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates()
441 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates()
452 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates()
560 if (group->meth->field_decode) { in ec_GFp_simple_point_get_affine_coordinates()
569 if (group->meth->field_decode) { in ec_GFp_simple_point_get_affine_coordinates()
654 field_mul = group->meth->field_mul; in ec_GFp_simple_add()
[all …]
/dragonfly/crypto/libressl/crypto/dsa/
H A Ddsa_meth.c29 DSA_METHOD *meth; in DSA_meth_new() local
31 if ((meth = calloc(1, sizeof(*meth))) == NULL) in DSA_meth_new()
34 free(meth); in DSA_meth_new()
37 meth->flags = flags; in DSA_meth_new()
39 return meth; in DSA_meth_new()
45 if (meth == NULL) in DSA_meth_free()
48 free(meth->name); in DSA_meth_free()
49 free(meth); in DSA_meth_free()
71 return meth->name; in DSA_meth_get0_name()
84 free(meth->name); in DSA_meth_set1_name()
[all …]
H A Ddsa_lib.c85 default_DSA_method = meth; in DSA_set_default_method()
110 mtmp = dsa->meth; in DSA_set_method()
117 dsa->meth = meth; in DSA_set_method()
118 if (meth->init) in DSA_set_method()
119 meth->init(dsa); in DSA_set_method()
133 ret->meth = DSA_get_default_method(); in DSA_new_method()
145 ret->meth = ENGINE_get_DSA(ret->engine); in DSA_new_method()
146 if (ret->meth == NULL) { in DSA_new_method()
171 if (ret->meth->init != NULL && !ret->meth->init(ret)) { in DSA_new_method()
195 if (r->meth->finish) in DSA_free()
[all …]
/dragonfly/crypto/libressl/crypto/dso/
H A Ddso_lib.c89 return (dso->meth); in DSO_get_method()
97 mtmp = dso->meth; in DSO_set_method()
98 dso->meth = meth; in DSO_set_method()
124 if (meth == NULL) in DSO_new_method()
127 ret->meth = meth; in DSO_new_method()
129 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method()
150 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free()
155 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free()
314 if ((dso->meth == NULL) || (dso->meth->dso_ctrl == NULL)) { in DSO_ctrl()
433 if (meth == NULL) in DSO_pathbyaddr()
[all …]
/dragonfly/crypto/libressl/include/openssl/
H A Drsa.h268 void RSA_set_default_method(const RSA_METHOD *meth);
271 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
421 void RSA_meth_free(RSA_METHOD *meth);
422 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);
423 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name);
428 int (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa);
442 int RSA_meth_set_flags(RSA_METHOD *meth, int flags);
458 int (*RSA_meth_get_init(const RSA_METHOD *meth))(RSA *rsa);
461 int RSA_meth_get_flags(const RSA_METHOD *meth);
462 void *RSA_meth_get0_app_data(const RSA_METHOD *meth);
[all …]
/dragonfly/crypto/libressl/crypto/dh/
H A Ddh_lib.c79 default_DH_method = meth; in DH_set_default_method()
99 mtmp = dh->meth; in DH_set_method()
106 dh->meth = meth; in DH_set_method()
107 if (meth->init) in DH_set_method()
108 meth->init(dh); in DH_set_method()
129 ret->meth = DH_get_default_method(); in DH_new_method()
141 ret->meth = ENGINE_get_DH(ret->engine); in DH_new_method()
142 if (ret->meth == NULL) { in DH_new_method()
167 if (ret->meth->init != NULL && !ret->meth->init(ret)) { in DH_new_method()
189 if (r->meth->finish) in DH_free()
[all …]
/dragonfly/crypto/libressl/crypto/conf/
H A Dconf_lib.c83 CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument
85 default_CONF_method = meth; in CONF_set_default_method()
223 NCONF_new(CONF_METHOD *meth) in NCONF_new() argument
227 if (meth == NULL) in NCONF_new()
228 meth = NCONF_default(); in NCONF_new()
230 ret = meth->create(meth); in NCONF_new()
244 conf->meth->destroy(conf); in NCONF_free()
252 conf->meth->destroy_data(conf); in NCONF_free_data()
263 return conf->meth->load(conf, file, eline); in NCONF_load()
289 return conf->meth->load_bio(conf, bp, eline); in NCONF_load_bio()
[all …]
/dragonfly/crypto/libressl/crypto/ecdh/
H A Dech_lib.c87 ECDH_set_default_method(const ECDH_METHOD *meth) in ECDH_set_default_method() argument
89 default_ECDH_method = meth; in ECDH_set_default_method()
102 ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) in ECDH_set_method() argument
115 ecdh->meth = meth; in ECDH_set_method()
132 ret->meth = ECDH_get_default_method(); in ECDH_DATA_new_method()
138 ret->meth = ENGINE_get_ECDH(ret->engine); in ECDH_DATA_new_method()
139 if (ret->meth == NULL) { in ECDH_DATA_new_method()
148 ret->flags = ret->meth->flags; in ECDH_DATA_new_method()
/dragonfly/crypto/libressl/crypto/ui/
H A Dui_lib.c86 if ((ret->meth = method) == NULL) in UI_new_method()
401 if (ui->meth->ui_write_string && in print_error()
412 if (ui->meth->ui_open_session && !ui->meth->ui_open_session(ui)) in UI_process()
419 if (ui->meth->ui_write_string && in UI_process()
427 if (ui->meth->ui_flush) in UI_process()
441 if (ui->meth->ui_read_string) { in UI_process()
459 if (ui->meth->ui_close_session && !ui->meth->ui_close_session(ui)) in UI_process()
513 default_UI_meth = meth; in UI_set_default_method()
528 return ui->meth; in UI_get_method()
534 ui->meth = meth; in UI_set_method()
[all …]
/dragonfly/crypto/libressl/crypto/ecdsa/
H A Decs_lib.c74 ECDSA_set_default_method(const ECDSA_METHOD *meth) in ECDSA_set_default_method() argument
76 default_ECDSA_method = meth; in ECDSA_set_default_method()
89 ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) in ECDSA_set_method() argument
102 ecdsa->meth = meth; in ECDSA_set_method()
120 ret->meth = ECDSA_get_default_method(); in ECDSA_DATA_new_method()
126 ret->meth = ENGINE_get_ECDSA(ret->engine); in ECDSA_DATA_new_method()
127 if (ret->meth == NULL) { in ECDSA_DATA_new_method()
136 ret->flags = ret->meth->flags; in ECDSA_DATA_new_method()
H A Decs_sign.c80 if (eckey->meth->sign_sig != NULL) in ECDSA_do_sign_ex()
81 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
97 if (eckey->meth->sign != NULL) in ECDSA_sign_ex()
98 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex()
106 if (eckey->meth->sign_setup != NULL) in ECDSA_sign_setup()
107 return eckey->meth->sign_setup(eckey, ctx_in, kinvp, rp); in ECDSA_sign_setup()
H A Decs_vrf.c82 if (eckey->meth->verify_sig != NULL) in ECDSA_do_verify()
83 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify()
97 if (eckey->meth->verify != NULL) in ECDSA_verify()
98 return eckey->meth->verify(type, dgst, dgst_len, in ECDSA_verify()
/dragonfly/crypto/libressl/ssl/
H A Dssl_versions.c58 ssl_version_set_min(const SSL_METHOD *meth, uint16_t proto_ver, in ssl_version_set_min() argument
64 *out_tls_ver = meth->min_tls_version; in ssl_version_set_min()
72 if (meth->dtls) { in ssl_version_set_min()
78 meth->min_tls_version, meth->max_tls_version)) in ssl_version_set_min()
82 if (meth->dtls) { in ssl_version_set_min()
93 ssl_version_set_max(const SSL_METHOD *meth, uint16_t proto_ver, in ssl_version_set_max() argument
99 *out_tls_ver = meth->max_tls_version; in ssl_version_set_max()
107 if (meth->dtls) { in ssl_version_set_max()
113 meth->min_tls_version, meth->max_tls_version)) in ssl_version_set_max()
117 if (meth->dtls) { in ssl_version_set_max()
/dragonfly/crypto/libressl/crypto/
H A Dex_data.c243 STACK_OF(CRYPTO_EX_DATA_FUNCS) *meth;
324 gen->meth = sk_CRYPTO_EX_DATA_FUNCS_new_null(); in def_get_class()
325 if (!gen->meth) in def_get_class()
361 if (!sk_CRYPTO_EX_DATA_FUNCS_push(item->meth, NULL)) { in def_add_index()
368 (void)sk_CRYPTO_EX_DATA_FUNCS_set(item->meth, toret, a); in def_add_index()
427 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth); in int_new_ex_data()
434 item->meth, i); in int_new_ex_data()
468 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth); in int_dup_ex_data()
478 item->meth, i); in int_dup_ex_data()
509 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth); in int_free_ex_data()
[all …]
/dragonfly/lib/libssh/openbsd-compat/
H A Dopenssl-compat.h170 void RSA_meth_free(RSA_METHOD *meth);
174 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);
178 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name);
182 int (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa);
186 int RSA_meth_set_priv_enc(RSA_METHOD *meth, int (*priv_enc)(int flen,
191 int RSA_meth_set_priv_dec(RSA_METHOD *meth, int (*priv_dec)(int flen,
196 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish)(RSA *rsa));
/dragonfly/crypto/libressl/crypto/asn1/
H A Dx_crl.c283 crl->meth = default_crl_method; in crl_cb()
339 if (crl->meth->crl_init) { in crl_cb()
340 if (crl->meth->crl_init(crl) == 0) in crl_cb()
346 if (crl->meth->crl_free) { in crl_cb()
347 if (!crl->meth->crl_free(crl)) in crl_cb()
551 if (crl->meth->crl_verify) in X509_CRL_verify()
552 return crl->meth->crl_verify(crl, r); in X509_CRL_verify()
560 if (crl->meth->crl_lookup) in X509_CRL_get0_by_serial()
568 if (crl->meth->crl_lookup) in X509_CRL_get0_by_cert()
646 if (meth == NULL) in X509_CRL_set_default_method()
[all …]

1234