Home
last modified time | relevance | path

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

12345

/openssl-master/crypto/rsa/
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()
40 if (meth != NULL) { in RSA_meth_free()
51 memcpy(ret, meth, sizeof(*meth)); in RSA_meth_dup()
66 return meth->name; in RSA_meth_get0_name()
79 meth->name = tmpname; in RSA_meth_set1_name()
86 return meth->flags; in RSA_meth_get_flags()
91 meth->flags = flags; in RSA_meth_set_flags()
208 return meth->init; in RSA_meth_get_init()
[all …]
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-master/crypto/ec/
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()
136 if (ret->meth->init != NULL && ret->meth->init(ret) == 0) { in ossl_ec_key_new_method_int()
188 if (meth != NULL) in EC_KEY_METHOD_new()
189 *ret = *meth; in EC_KEY_METHOD_new()
210 meth->init = init; in EC_KEY_METHOD_set_init()
211 meth->finish = finish; in EC_KEY_METHOD_set_init()
212 meth->copy = copy; in EC_KEY_METHOD_set_init()
[all …]
A Decp_smpl.c174 if (group->meth->field_encode) { in ossl_ec_GFp_simple_group_set_curve()
183 if (group->meth->field_encode) in ossl_ec_GFp_simple_group_set_curve()
212 if (group->meth->field_decode) { in ossl_ec_GFp_simple_group_get_curve()
274 if (group->meth->field_decode) { in ossl_ec_GFp_simple_group_check_discriminant()
394 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()
532 if (group->meth->field_decode) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
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()
[all …]
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()
57 ret->meth = meth; in ossl_ec_group_new_ex()
68 if (!meth->group_init(ret)) in ossl_ec_group_new_ex()
167 if (dest->meth != src->meth) { in EC_GROUP_copy()
292 return group->meth; in EC_GROUP_method_of()
297 return meth->field_type; in EC_METHOD_get_field_type()
735 ret->meth = group->meth; in EC_POINT_new()
774 if (dest->meth != src->meth in EC_POINT_copy()
808 return point->meth; in EC_POINT_method_of()
[all …]
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()
77 if (group->meth->point2oct == 0 in EC_POINT_point2oct()
78 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_point2oct()
86 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_point2oct()
87 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_point2oct()
108 if (group->meth->oct2point == 0 in EC_POINT_oct2point()
109 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_oct2point()
[all …]
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()
A Dec_key.c55 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex()
83 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free()
84 r->meth->finish(r); in EC_KEY_free()
91 r->group->meth->keyfinish(r); in EC_KEY_free()
111 if (src->meth != dest->meth) { in EC_KEY_copy()
112 if (dest->meth->finish != NULL) in EC_KEY_copy()
113 dest->meth->finish(dest); in EC_KEY_copy()
170 if (src->meth != dest->meth) { in EC_KEY_copy()
176 dest->meth = src->meth; in EC_KEY_copy()
179 if (src->meth->copy != NULL && src->meth->copy(dest, src) == 0) in EC_KEY_copy()
[all …]
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 …]
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()
A Decdsa_vrf.c29 if (eckey->meth->verify_sig != NULL) in ECDSA_do_verify()
30 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify()
44 if (eckey->meth->verify != NULL) in ECDSA_verify()
45 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify()
/openssl-master/ssl/statem/
A Dextensions_cust.c94 return meth; in custom_ext_find()
109 meth->ext_flags = 0; in custom_ext_init()
119 custom_ext_method *meth; in custom_ext_parse() local
127 if (!meth) in custom_ext_parse()
157 if (!meth->parse_cb) in custom_ext_parse()
207 int cb_retval = meth->add_cb(s, meth->ext_type, context, &out, in custom_ext_add()
242 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg); in custom_ext_add()
322 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free()
392 memset(meth, 0, sizeof(*meth)); in add_custom_ext_intern()
393 meth->role = role; in add_custom_ext_intern()
[all …]
/openssl-master/crypto/comp/
A Dcomp_lib.c18 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) in COMP_CTX_new() argument
26 ret->meth = meth; in COMP_CTX_new()
27 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new()
36 return ctx->meth; in COMP_CTX_get_method()
41 return meth->type; in COMP_get_type()
46 return meth->name; in COMP_get_name()
53 if (ctx->meth->finish != NULL) in COMP_CTX_free()
54 ctx->meth->finish(ctx); in COMP_CTX_free()
63 if (ctx->meth->compress == NULL) { in COMP_compress_block()
79 if (ctx->meth->expand == NULL) { in COMP_expand_block()
[all …]
/openssl-master/crypto/evp/
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()
69 if (!EVP_KDF_up_ref(dst->meth)) { in EVP_KDF_CTX_dup()
110 return ctx->meth; in EVP_KDF_CTX_kdf()
118 if (ctx->meth->reset != NULL) in EVP_KDF_CTX_reset()
119 ctx->meth->reset(ctx->algctx); in EVP_KDF_CTX_reset()
131 if (ctx->meth->get_ctx_params != NULL in EVP_KDF_CTX_get_kdf_size()
134 if (ctx->meth->get_params != NULL in EVP_KDF_CTX_get_kdf_size()
135 && ctx->meth->get_params(params)) in EVP_KDF_CTX_get_kdf_size()
[all …]
A Dmac_lib.c35 ctx->meth = mac; in EVP_MAC_CTX_new()
44 ctx->meth->freectx(ctx->algctx); in EVP_MAC_CTX_free()
47 EVP_MAC_free(ctx->meth); in EVP_MAC_CTX_free()
65 if (!EVP_MAC_up_ref(dst->meth)) { in EVP_MAC_CTX_dup()
82 return ctx->meth; in EVP_MAC_CTX_get0_mac()
93 if (ctx->meth->get_ctx_params != NULL) { in get_size_t_ctx_param()
97 if (ctx->meth->get_params(params)) in get_size_t_ctx_param()
137 if (ctx == NULL || ctx->meth == NULL) { in evp_mac_final()
141 if (ctx->meth->final == NULL) { in evp_mac_final()
200 if (ctx->meth->get_ctx_params != NULL) in EVP_MAC_CTX_get_params()
[all …]
A Devp_rand.c94 if (rand->meth->enable_locking != NULL) in EVP_RAND_enable_locking()
103 if (rand->meth->lock != NULL) in evp_rand_lock()
111 if (rand->meth->unlock != NULL) in evp_rand_unlock()
112 rand->meth->unlock(rand->algctx); in evp_rand_unlock()
367 ctx->meth = rand; in EVP_RAND_CTX_new()
385 ctx->meth->freectx(ctx->algctx); in EVP_RAND_CTX_free()
387 EVP_RAND_free(ctx->meth); in EVP_RAND_CTX_free()
395 return ctx->meth; in EVP_RAND_CTX_get0_rand()
418 if (ctx->meth->set_ctx_params != NULL) in evp_rand_set_ctx_params_locked()
590 if (ctx->meth->reseed != NULL) in evp_rand_reseed_locked()
[all …]
/openssl-master/crypto/dso/
A Ddso_lib.c13 static DSO *DSO_new_method(DSO_METHOD *meth) in DSO_new_method() argument
29 ret->meth = DSO_METHOD_openssl(); in DSO_new_method()
39 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method()
68 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free()
74 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free()
115 ret = DSO_new_method(meth); in DSO_load()
147 if (ret->meth->dso_load == NULL) { in DSO_load()
151 if (!ret->meth->dso_load(ret)) { in DSO_load()
214 if ((dso->meth == NULL) || (dso->meth->dso_ctrl == NULL)) { in DSO_ctrl()
304 if (meth->pathbyaddr == NULL) { in DSO_pathbyaddr()
[all …]
/openssl-master/crypto/rand/
A Drand_lib.c86 if (meth != NULL && meth->cleanup != NULL) in ossl_rand_cleanup_int()
87 meth->cleanup(); in ossl_rand_cleanup_int()
126 if (meth == NULL) in RAND_poll()
141 if (meth->add == NULL in RAND_poll()
250 if (meth != NULL && meth->seed != NULL) { in RAND_seed()
267 if (meth != NULL && meth->add != NULL) { in RAND_add()
282 if (meth != NULL && meth->pseudorand != NULL) in RAND_pseudo_bytes()
295 if (meth != NULL && meth != RAND_OpenSSL()) in RAND_status()
296 return meth->status != NULL ? meth->status() : 0; in RAND_status()
325 if (meth != NULL && meth != RAND_OpenSSL()) { in RAND_priv_bytes_ex()
[all …]
/openssl-master/crypto/dh/
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()
92 ret->meth = DH_get_default_method(); in dh_new_intern()
105 if (ret->meth == NULL) { in dh_new_intern()
112 ret->flags = ret->meth->flags; in dh_new_intern()
119 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dh_new_intern()
144 if (r->meth != NULL && r->meth->finish != NULL) in DH_free()
[all …]
/openssl-master/crypto/dsa/
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()
151 ret->meth = DSA_get_default_method(); in dsa_new_intern()
163 ret->meth = ENGINE_get_DSA(ret->engine); in dsa_new_intern()
164 if (ret->meth == NULL) { in dsa_new_intern()
179 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dsa_new_intern()
221 if (r->meth != NULL && r->meth->finish != NULL) in DSA_free()
[all …]
/openssl-master/crypto/conf/
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-master/include/openssl/
A Drsa.h474 OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth);
477 OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth,
485 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen,
495 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen,
505 int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) (int flen,
515 int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) (int flen,
548 int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);
552 int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);
556 int (*RSA_meth_get_sign(const RSA_METHOD *meth)) (int type,
569 int (*RSA_meth_get_verify(const RSA_METHOD *meth)) (int dtype,
[all …]
/openssl-master/crypto/
A Dex_data.c76 ip->meth = NULL; in ossl_crypto_cleanup_all_ex_data_int()
121 a = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_free_ex_index_ex()
160 if (ip->meth == NULL) { in ossl_crypto_get_ex_new_index_ex()
161 ip->meth = sk_EX_CALLBACK_new_null(); in ossl_crypto_get_ex_new_index_ex()
164 if (ip->meth == NULL in ossl_crypto_get_ex_new_index_ex()
183 if (!sk_EX_CALLBACK_push(ip->meth, NULL)) { in ossl_crypto_get_ex_new_index_ex()
188 toret = sk_EX_CALLBACK_num(ip->meth) - 1; in ossl_crypto_get_ex_new_index_ex()
230 mx = sk_EX_CALLBACK_num(ip->meth); in ossl_crypto_new_ex_data_ex()
291 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_dup_ex_data()
380 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_free_ex_data()
[all …]
/openssl-master/crypto/ui/
A Dui_lib.c43 ret->meth = method; in UI_new_method()
361 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt()
408 if (ui->meth->ui_duplicate_data == NULL in UI_dup_user_data()
465 if (ui->meth->ui_write_string != NULL in print_error()
476 if (ui->meth->ui_open_session != NULL in UI_process()
499 if (ui->meth->ui_flush != NULL) in UI_process()
500 switch (ui->meth->ui_flush(ui)) { in UI_process()
536 if (ui->meth->ui_close_session != NULL in UI_process()
585 return ui->meth; in UI_get_method()
590 ui->meth = meth; in UI_set_method()
[all …]
/openssl-master/test/
A Dec_internal_test.c30 if (group->meth->field_inv == NULL || group->meth->field_mul == NULL) in group_field_tests()
43 || !TEST_true(group->meth->field_inv(group, b, a, ctx)) in group_field_tests()
44 || (group->meth->field_encode && in group_field_tests()
45 !TEST_true(group->meth->field_encode(group, a, a, ctx))) in group_field_tests()
46 || (group->meth->field_encode && in group_field_tests()
47 !TEST_true(group->meth->field_encode(group, b, b, ctx))) in group_field_tests()
48 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx)) in group_field_tests()
49 || (group->meth->field_decode && in group_field_tests()
50 !TEST_true(group->meth->field_decode(group, c, c, ctx))) in group_field_tests()
56 if (!TEST_false(group->meth->field_inv(group, b, a, ctx)) in group_field_tests()
[all …]

Completed in 44 milliseconds

12345