Home
last modified time | relevance | path

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

12345

/openssl/crypto/rsa/
H A Drsa_meth.c22 RSA_METHOD *meth = OPENSSL_zalloc(sizeof(*meth)); in RSA_meth_new() local
24 if (meth != NULL) { in RSA_meth_new()
29 return meth; in RSA_meth_new()
39 if (meth != NULL) { in RSA_meth_free()
50 memcpy(ret, meth, sizeof(*meth)); in RSA_meth_dup()
64 return meth->name; in RSA_meth_get0_name()
75 meth->name = tmpname; in RSA_meth_set1_name()
82 return meth->flags; in RSA_meth_get_flags()
87 meth->flags = flags; in RSA_meth_set_flags()
204 return meth->init; in RSA_meth_get_init()
[all …]
H A Drsa_schemes.c17 static int meth2nid(const void *meth, in meth2nid() argument
18 int (*meth_is_a)(const void *meth, const char *name), in meth2nid() argument
23 if (meth != NULL) in meth2nid()
25 if (meth_is_a(meth, items[i].ptr)) in meth2nid()
30 static const char *nid2name(int meth, const OSSL_ITEM *items, size_t items_n) in nid2name() argument
35 if (meth == (int)items[i].id) in nid2name()
/openssl/crypto/ec/
H A Dec_kmeth.c52 if (meth == NULL) in EC_KEY_set_default_method()
60 return key->meth; in EC_KEY_get_method()
75 key->meth = meth; in EC_KEY_set_method()
76 if (meth->init != NULL) in EC_KEY_set_method()
131 if (ret->meth->init != NULL && ret->meth->init(ret) == 0) { in ossl_ec_key_new_method_int()
183 if (meth != NULL) in EC_KEY_METHOD_new()
184 *ret = *meth; in EC_KEY_METHOD_new()
205 meth->init = init; in EC_KEY_METHOD_set_init()
206 meth->finish = finish; in EC_KEY_METHOD_set_init()
207 meth->copy = copy; in EC_KEY_METHOD_set_init()
[all …]
H A Decp_smpl.c394 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
403 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
415 if (group->meth->field_encode) { in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
631 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_add()
632 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_add()
815 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_dbl()
816 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_dbl()
970 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_is_on_curve()
971 field_sqr = group->meth->field_sqr; in ossl_ec_GFp_simple_is_on_curve()
1088 field_mul = group->meth->field_mul; in ossl_ec_GFp_simple_cmp()
[all …]
H A Dec_lib.c34 if (meth == NULL) { in ossl_ec_group_new_ex()
38 if (meth->group_init == 0) { in ossl_ec_group_new_ex()
53 ret->meth = meth; in ossl_ec_group_new_ex()
64 if (!meth->group_init(ret)) in ossl_ec_group_new_ex()
167 if (dest->meth != src->meth) { in EC_GROUP_copy()
294 return group->meth; in EC_GROUP_method_of()
299 return meth->field_type; in EC_METHOD_get_field_type()
733 ret->meth = group->meth; in EC_POINT_new()
776 if (dest->meth != src->meth in EC_POINT_copy()
810 return point->meth; in EC_POINT_method_of()
[all …]
H A Dec_oct.c27 if (group->meth->point_set_compressed_coordinates == NULL in EC_POINT_set_compressed_coordinates()
28 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates()
36 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates()
37 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_set_compressed_coordinates()
81 if (group->meth->point2oct == 0 in EC_POINT_point2oct()
82 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_point2oct()
90 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_point2oct()
91 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_point2oct()
112 if (group->meth->oct2point == 0 in EC_POINT_oct2point()
113 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_oct2point()
[all …]
H A Dec_cvt.c24 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local
49 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
52 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp()
54 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
57 ret = ossl_ec_group_new_ex(ossl_bn_get_libctx(ctx), NULL, meth); in EC_GROUP_new_curve_GFp()
73 const EC_METHOD *meth; in EC_GROUP_new_curve_GF2m() local
76 meth = EC_GF2m_simple_method(); in EC_GROUP_new_curve_GF2m()
78 ret = ossl_ec_group_new_ex(ossl_bn_get_libctx(ctx), NULL, meth); in EC_GROUP_new_curve_GF2m()
H A Dec_key.c56 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex()
84 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free()
85 r->meth->finish(r); in EC_KEY_free()
92 r->group->meth->keyfinish(r); in EC_KEY_free()
112 if (src->meth != dest->meth) { in EC_KEY_copy()
113 if (dest->meth->finish != NULL) in EC_KEY_copy()
114 dest->meth->finish(dest); in EC_KEY_copy()
171 if (src->meth != dest->meth) { in EC_KEY_copy()
177 dest->meth = src->meth; in EC_KEY_copy()
180 if (src->meth->copy != NULL && src->meth->copy(dest, src) == 0) in EC_KEY_copy()
[all …]
H A Dec2_smpl.c421 if (!group->meth->field_div(group, s, s, t, ctx)) in ossl_ec_GF2m_simple_add()
423 if (!group->meth->field_sqr(group, x2, s, ctx)) in ossl_ec_GF2m_simple_add()
443 if (!group->meth->field_sqr(group, x2, s, ctx)) in ossl_ec_GF2m_simple_add()
453 if (!group->meth->field_mul(group, y2, y2, s, ctx)) in ossl_ec_GF2m_simple_add()
490 if (group->meth->make_affine == NULL in ossl_ec_GF2m_simple_invert()
491 || !group->meth->make_affine(group, point, ctx)) in ossl_ec_GF2m_simple_invert()
523 field_mul = group->meth->field_mul; in ossl_ec_GF2m_simple_is_on_curve()
524 field_sqr = group->meth->field_sqr; in ossl_ec_GF2m_simple_is_on_curve()
740 if ((group->meth->field_encode != NULL in ec_GF2m_simple_ladder_pre()
754 if ((group->meth->field_encode != NULL in ec_GF2m_simple_ladder_pre()
[all …]
H A Decdsa_sign.c29 if (eckey->meth->sign_sig != NULL) in ECDSA_do_sign_ex()
30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
45 if (eckey->meth->sign != NULL) in ECDSA_sign_ex()
46 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex()
54 if (eckey->meth->sign_setup != NULL) in ECDSA_sign_setup()
55 return eckey->meth->sign_setup(eckey, ctx_in, kinvp, rp); in ECDSA_sign_setup()
/openssl/crypto/comp/
H A Dcomp_lib.c22 if (meth == NULL) in COMP_CTX_new()
27 ret->meth = meth; in COMP_CTX_new()
28 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new()
37 return ctx->meth; in COMP_CTX_get_method()
42 if (meth == NULL) in COMP_get_type()
44 return meth->type; in COMP_get_type()
49 if (meth == NULL) in COMP_get_name()
51 return meth->name; in COMP_get_name()
58 if (ctx->meth->finish != NULL) in COMP_CTX_free()
59 ctx->meth->finish(ctx); in COMP_CTX_free()
[all …]
/openssl/ssl/statem/
H A Dextensions_cust.c94 return meth; in custom_ext_find()
109 meth->ext_flags = 0; in custom_ext_init()
120 custom_ext_method *meth; in custom_ext_parse() local
128 if (!meth) in custom_ext_parse()
229 meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type, in custom_ext_add()
241 meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type, in custom_ext_add()
255 meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type, in custom_ext_add()
336 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free()
411 memset(meth, 0, sizeof(*meth)); in ossl_tls_add_custom_ext_intern()
412 meth->role = role; in ossl_tls_add_custom_ext_intern()
[all …]
/openssl/crypto/dso/
H A Ddso_lib.c13 static DSO *DSO_new_method(DSO_METHOD *meth) in DSO_new_method() argument
27 ret->meth = DSO_METHOD_openssl(); in DSO_new_method()
34 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method()
63 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free()
69 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free()
110 ret = DSO_new_method(meth); in DSO_load()
142 if (ret->meth->dso_load == NULL) { in DSO_load()
146 if (!ret->meth->dso_load(ret)) { in DSO_load()
209 if ((dso->meth == NULL) || (dso->meth->dso_ctrl == NULL)) { in DSO_ctrl()
295 if (meth->pathbyaddr == NULL) { in DSO_pathbyaddr()
[all …]
/openssl/crypto/evp/
H A Dkdf_lib.c40 ctx->meth = kdf; in EVP_KDF_CTX_new()
49 ctx->meth->freectx(ctx->algctx); in EVP_KDF_CTX_free()
51 EVP_KDF_free(ctx->meth); in EVP_KDF_CTX_free()
67 if (!EVP_KDF_up_ref(dst->meth)) { in EVP_KDF_CTX_dup()
108 return ctx->meth; in EVP_KDF_CTX_kdf()
116 if (ctx->meth->reset != NULL) in EVP_KDF_CTX_reset()
117 ctx->meth->reset(ctx->algctx); in EVP_KDF_CTX_reset()
129 if (ctx->meth->get_ctx_params != NULL in EVP_KDF_CTX_get_kdf_size()
132 if (ctx->meth->get_params != NULL in EVP_KDF_CTX_get_kdf_size()
133 && ctx->meth->get_params(params)) in EVP_KDF_CTX_get_kdf_size()
[all …]
H A Dmac_lib.c27 ctx->meth = mac; in EVP_MAC_CTX_new()
43 ctx->meth->freectx(ctx->algctx); in EVP_MAC_CTX_free()
46 EVP_MAC_free(ctx->meth); in EVP_MAC_CTX_free()
62 if (!EVP_MAC_up_ref(dst->meth)) { in EVP_MAC_CTX_dup()
79 return ctx->meth; in EVP_MAC_CTX_get0_mac()
90 if (ctx->meth->get_ctx_params != NULL) { in get_size_t_ctx_param()
94 if (ctx->meth->get_params(params)) in get_size_t_ctx_param()
134 if (ctx == NULL || ctx->meth == NULL) { in evp_mac_final()
138 if (ctx->meth->final == NULL) { in evp_mac_final()
197 if (ctx->meth->get_ctx_params != NULL) in EVP_MAC_CTX_get_params()
[all …]
H A Devp_rand.c105 if (rand->meth->lock != NULL) in evp_rand_lock()
113 if (rand->meth->unlock != NULL) in evp_rand_unlock()
114 rand->meth->unlock(rand->algctx); in evp_rand_unlock()
380 ctx->meth = rand; in EVP_RAND_CTX_new()
397 ctx->meth->freectx(ctx->algctx); in EVP_RAND_CTX_free()
399 EVP_RAND_free(ctx->meth); in EVP_RAND_CTX_free()
407 return ctx->meth; in EVP_RAND_CTX_get0_rand()
602 if (ctx->meth->reseed != NULL) in evp_rand_reseed_locked()
649 if (ctx->meth->nonce == NULL) in evp_rand_nonce_locked()
709 if (ctx->meth->get_seed != NULL) in evp_rand_get_seed_locked()
[all …]
/openssl/crypto/rand/
H A Drand_lib.c92 if (meth != NULL && meth->cleanup != NULL) in ossl_rand_cleanup_int()
93 meth->cleanup(); in ossl_rand_cleanup_int()
135 if (meth == NULL) in RAND_poll()
150 if (meth->add == NULL in RAND_poll()
264 if (meth != NULL && meth->seed != NULL) { in RAND_seed()
281 if (meth != NULL && meth->add != NULL) { in RAND_add()
302 if (meth != NULL && meth->pseudorand != NULL) in RAND_pseudo_bytes()
315 if (meth != NULL && meth != RAND_OpenSSL()) in RAND_status()
316 return meth->status != NULL ? meth->status() : 0; in RAND_status()
345 if (meth != NULL && meth != RAND_OpenSSL()) { in RAND_priv_bytes_ex()
[all …]
/openssl/crypto/dh/
H A Ddh_lib.c39 mtmp = dh->meth; in DH_set_method()
46 dh->meth = meth; in DH_set_method()
47 if (meth->init) in DH_set_method()
48 meth->init(dh); in DH_set_method()
54 return dh->meth; in ossl_dh_get_method()
95 ret->meth = DH_get_default_method(); in dh_new_intern()
108 if (ret->meth == NULL) { in dh_new_intern()
115 ret->flags = ret->meth->flags; in dh_new_intern()
124 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dh_new_intern()
149 if (r->meth != NULL && r->meth->finish != NULL) in DH_free()
[all …]
/openssl/crypto/dsa/
H A Ddsa_lib.c113 mtmp = dsa->meth; in DSA_set_method()
120 dsa->meth = meth; in DSA_set_method()
121 if (meth->init) in DSA_set_method()
122 meth->init(dsa); in DSA_set_method()
130 return d->meth; in DSA_get_method()
154 ret->meth = DSA_get_default_method(); in dsa_new_intern()
166 ret->meth = ENGINE_get_DSA(ret->engine); in dsa_new_intern()
167 if (ret->meth == NULL) { in dsa_new_intern()
184 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dsa_new_intern()
226 if (r->meth != NULL && r->meth->finish != NULL) in DSA_free()
[all …]
/openssl/crypto/conf/
H A Dconf_lib.c42 default_CONF_method = meth; in CONF_set_default_method()
186 if (meth == NULL) in NCONF_new_ex()
187 meth = NCONF_default(); in NCONF_new_ex()
189 ret = meth->create(meth); in NCONF_new_ex()
199 CONF *NCONF_new(CONF_METHOD *meth) in NCONF_new() argument
201 return NCONF_new_ex(NULL, meth); in NCONF_new()
208 conf->meth->destroy(conf); in NCONF_free()
215 conf->meth->destroy_data(conf); in NCONF_free_data()
351 if (conf->meth->to_int != NULL) in NCONF_get_number_e()
352 to_int = conf->meth->to_int; in NCONF_get_number_e()
[all …]
/openssl/crypto/
H A Dex_data.c84 ip->meth = NULL; in ossl_crypto_cleanup_all_ex_data_int()
129 a = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_free_ex_index_ex()
168 if (ip->meth == NULL) { in ossl_crypto_get_ex_new_index_ex()
169 ip->meth = sk_EX_CALLBACK_new_null(); in ossl_crypto_get_ex_new_index_ex()
172 if (ip->meth == NULL in ossl_crypto_get_ex_new_index_ex()
174 sk_EX_CALLBACK_free(ip->meth); in ossl_crypto_get_ex_new_index_ex()
175 ip->meth = NULL; in ossl_crypto_get_ex_new_index_ex()
196 toret = sk_EX_CALLBACK_num(ip->meth) - 1; in ossl_crypto_get_ex_new_index_ex()
238 mx = sk_EX_CALLBACK_num(ip->meth); in ossl_crypto_new_ex_data_ex()
297 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_dup_ex_data()
[all …]
/openssl/include/openssl/
H A Drsa.h485 OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth);
488 OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth,
496 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen,
506 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen,
516 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen,
526 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen,
559 int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);
563 int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);
567 int (*RSA_meth_get_sign(const RSA_METHOD *meth)) (int type,
580 int (*RSA_meth_get_verify(const RSA_METHOD *meth)) (int dtype,
[all …]
/openssl/crypto/ui/
H A Dui_lib.c41 ret->meth = method; in UI_new_method()
343 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt()
388 if (ui->meth->ui_duplicate_data == NULL in UI_dup_user_data()
445 if (ui->meth->ui_write_string != NULL in print_error()
456 if (ui->meth->ui_open_session != NULL in UI_process()
479 if (ui->meth->ui_flush != NULL) in UI_process()
480 switch (ui->meth->ui_flush(ui)) { in UI_process()
520 if (ui->meth->ui_close_session != NULL in UI_process()
569 return ui->meth; in UI_get_method()
574 ui->meth = meth; in UI_set_method()
[all …]
/openssl/test/
H A Dbio_comp_test.c37 static int do_bio_comp_test(const BIO_METHOD *meth, size_t size) in do_bio_comp_test() argument
47 if (!TEST_ptr(meth)) in do_bio_comp_test()
49 if (!TEST_ptr(bcomp = BIO_new(meth))) in do_bio_comp_test()
62 if (!TEST_ptr(bexp = BIO_new(meth))) in do_bio_comp_test()
79 static int do_bio_comp(const BIO_METHOD *meth, int n) in do_bio_comp() argument
113 if (!TEST_true(do_bio_comp_test(meth, size))) in do_bio_comp()
/openssl/crypto/x509/
H A Dx_crl.c168 if (crl->meth->crl_free) { in crl_cb()
169 if (!crl->meth->crl_free(crl)) in crl_cb()
185 crl->meth = default_crl_method; in crl_cb()
255 if (crl->meth->crl_init) { in crl_cb()
264 if (crl->meth != NULL && crl->meth->crl_free != NULL) { in crl_cb()
265 if (!crl->meth->crl_free(crl)) in crl_cb()
378 if (crl->meth->crl_verify) in X509_CRL_verify()
386 if (crl->meth->crl_lookup) in X509_CRL_get0_by_serial()
393 if (crl->meth->crl_lookup) in X509_CRL_get0_by_cert()
476 if (meth == NULL) in X509_CRL_set_default_method()
[all …]

Completed in 58 milliseconds

12345