Home
last modified time | relevance | path

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

12345

/trueos/crypto/openssl/crypto/ec/
HDec_lib.c75 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument
79 if (meth == NULL) { in EC_GROUP_new()
83 if (meth->group_init == 0) { in EC_GROUP_new()
94 ret->meth = meth; in EC_GROUP_new()
109 if (!meth->group_init(ret)) { in EC_GROUP_new()
122 if (group->meth->group_finish != 0) in EC_GROUP_free()
123 group->meth->group_finish(group); in EC_GROUP_free()
143 if (group->meth->group_clear_finish != 0) in EC_GROUP_clear_free()
144 group->meth->group_clear_finish(group); in EC_GROUP_clear_free()
145 else if (group->meth->group_finish != 0) in EC_GROUP_clear_free()
[all …]
HDec_oct.c75 if (group->meth->point_set_compressed_coordinates == 0 in EC_POINT_set_compressed_coordinates_GFp()
76 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates_GFp()
81 if (group->meth != point->meth) { in EC_POINT_set_compressed_coordinates_GFp()
86 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates_GFp()
87 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_set_compressed_coordinates_GFp()
102 return group->meth->point_set_compressed_coordinates(group, point, x, in EC_POINT_set_compressed_coordinates_GFp()
111 if (group->meth->point_set_compressed_coordinates == 0 in EC_POINT_set_compressed_coordinates_GF2m()
112 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates_GF2m()
117 if (group->meth != point->meth) { in EC_POINT_set_compressed_coordinates_GF2m()
122 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates_GF2m()
[all …]
HDec2_mult.c96 if (!group->meth->field_sqr(group, x, x, ctx)) in gf2m_Mdouble()
98 if (!group->meth->field_sqr(group, t1, z, ctx)) in gf2m_Mdouble()
100 if (!group->meth->field_mul(group, z, x, t1, ctx)) in gf2m_Mdouble()
102 if (!group->meth->field_sqr(group, x, x, ctx)) in gf2m_Mdouble()
104 if (!group->meth->field_sqr(group, t1, t1, ctx)) in gf2m_Mdouble()
106 if (!group->meth->field_mul(group, t1, &group->b, t1, ctx)) in gf2m_Mdouble()
141 if (!group->meth->field_mul(group, x1, x1, z2, ctx)) in gf2m_Madd()
143 if (!group->meth->field_mul(group, z1, z1, x2, ctx)) in gf2m_Madd()
145 if (!group->meth->field_mul(group, t2, x1, z1, ctx)) in gf2m_Madd()
149 if (!group->meth->field_sqr(group, z1, z1, ctx)) in gf2m_Madd()
[all …]
HDec_cvt.c78 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local
103 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp()
105 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp()
108 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()
HDecp_smpl.c209 if (group->meth->field_encode) { in ec_GFp_simple_group_set_curve()
210 if (!group->meth->field_encode(group, &group->a, tmp_a, ctx)) in ec_GFp_simple_group_set_curve()
218 if (group->meth->field_encode) in ec_GFp_simple_group_set_curve()
219 if (!group->meth->field_encode(group, &group->b, &group->b, ctx)) in ec_GFp_simple_group_set_curve()
248 if (group->meth->field_decode) { in ec_GFp_simple_group_get_curve()
255 if (!group->meth->field_decode(group, a, &group->a, ctx)) in ec_GFp_simple_group_get_curve()
259 if (!group->meth->field_decode(group, b, &group->b, ctx)) in ec_GFp_simple_group_get_curve()
311 if (group->meth->field_decode) { in ec_GFp_simple_group_check_discriminant()
312 if (!group->meth->field_decode(group, a, &group->a, ctx)) in ec_GFp_simple_group_check_discriminant()
314 if (!group->meth->field_decode(group, b, &group->b, ctx)) in ec_GFp_simple_group_check_discriminant()
[all …]
HDecp_oct.c108 if (group->meth->field_decode == 0) { in ec_GFp_simple_set_compressed_coordinates()
110 if (!group->meth->field_sqr(group, tmp2, x_, ctx)) in ec_GFp_simple_set_compressed_coordinates()
112 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx)) in ec_GFp_simple_set_compressed_coordinates()
130 if (group->meth->field_decode) { in ec_GFp_simple_set_compressed_coordinates()
131 if (!group->meth->field_decode(group, tmp2, &group->a, ctx)) in ec_GFp_simple_set_compressed_coordinates()
137 if (!group->meth->field_mul(group, tmp2, &group->a, x, ctx)) in ec_GFp_simple_set_compressed_coordinates()
146 if (group->meth->field_decode) { in ec_GFp_simple_set_compressed_coordinates()
147 if (!group->meth->field_decode(group, tmp2, &group->b, ctx)) in ec_GFp_simple_set_compressed_coordinates()
/trueos/crypto/openssl/crypto/dso/
HDdso_lib.c72 void DSO_set_default_method(DSO_METHOD *meth) in DSO_set_default_method() argument
74 default_DSO_meth = meth; in DSO_set_default_method()
84 return (dso->meth); in DSO_get_method()
87 DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth) in DSO_set_method() argument
90 mtmp = dso->meth; in DSO_set_method()
91 dso->meth = meth; in DSO_set_method()
95 DSO *DSO_new_method(DSO_METHOD *meth) in DSO_new_method() argument
119 if (meth == NULL) in DSO_new_method()
120 ret->meth = default_DSO_meth; in DSO_new_method()
122 ret->meth = meth; in DSO_new_method()
[all …]
/trueos/crypto/openssl/crypto/rand/
HDrand_lib.c80 int RAND_set_rand_method(const RAND_METHOD *meth) in RAND_set_rand_method() argument
88 default_RAND_meth = meth; in RAND_set_rand_method()
135 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_cleanup() local
136 if (meth && meth->cleanup) in RAND_cleanup()
137 meth->cleanup(); in RAND_cleanup()
143 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_seed() local
144 if (meth && meth->seed) in RAND_seed()
145 meth->seed(buf, num); in RAND_seed()
150 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_add() local
151 if (meth && meth->add) in RAND_add()
[all …]
/trueos/crypto/openssl/crypto/comp/
HDcomp_lib.c7 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) in COMP_CTX_new() argument
16 ret->meth = meth; in COMP_CTX_new()
17 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new()
29 if (ctx->meth->finish != NULL) in COMP_CTX_free()
30 ctx->meth->finish(ctx); in COMP_CTX_free()
39 if (ctx->meth->compress == NULL) { in COMP_compress_block()
43 ret = ctx->meth->compress(ctx, out, olen, in, ilen); in COMP_compress_block()
56 if (ctx->meth->expand == NULL) { in COMP_expand_block()
60 ret = ctx->meth->expand(ctx, out, olen, in, ilen); in COMP_expand_block()
/trueos/crypto/openssl/crypto/dh/
HDdh_lib.c75 void DH_set_default_method(const DH_METHOD *meth) in DH_set_default_method() argument
77 default_DH_method = meth; in DH_set_default_method()
95 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument
102 mtmp = dh->meth; in DH_set_method()
111 dh->meth = meth; in DH_set_method()
112 if (meth->init) in DH_set_method()
113 meth->init(dh); in DH_set_method()
132 ret->meth = DH_get_default_method(); in DH_new_method()
144 ret->meth = ENGINE_get_DH(ret->engine); in DH_new_method()
145 if (!ret->meth) { in DH_new_method()
[all …]
HDdh_key.c76 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) in DH_generate_key()
82 return dh->meth->generate_key(dh); in DH_generate_key()
88 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) in DH_compute_key()
94 return dh->meth->compute_key(key, pub_key, dh); in DH_compute_key()
175 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) in generate_key()
235 meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key, dh->p, ctx, mont)) { in compute_key()
/trueos/crypto/openssl/crypto/ecdh/
HDech_lib.c88 void ECDH_set_default_method(const ECDH_METHOD *meth) in ECDH_set_default_method() argument
90 default_ECDH_method = meth; in ECDH_set_default_method()
108 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) in ECDH_set_method() argument
118 mtmp = ecdh->meth; in ECDH_set_method()
128 ecdh->meth = meth; in ECDH_set_method()
130 if (meth->init) in ECDH_set_method()
131 meth->init(eckey); in ECDH_set_method()
148 ret->meth = ECDH_get_default_method(); in ECDH_DATA_new_method()
154 ret->meth = ENGINE_get_ECDH(ret->engine); in ECDH_DATA_new_method()
155 if (!ret->meth) { in ECDH_DATA_new_method()
[all …]
/trueos/crypto/openssl/crypto/dsa/
HDdsa_lib.c81 void DSA_set_default_method(const DSA_METHOD *meth) in DSA_set_default_method() argument
83 default_DSA_method = meth; in DSA_set_default_method()
106 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() argument
113 mtmp = dsa->meth; in DSA_set_method()
122 dsa->meth = meth; in DSA_set_method()
123 if (meth->init) in DSA_set_method()
124 meth->init(dsa); in DSA_set_method()
137 ret->meth = DSA_get_default_method(); in DSA_new_method()
149 ret->meth = ENGINE_get_DSA(ret->engine); in DSA_new_method()
150 if (!ret->meth) { in DSA_new_method()
[all …]
HDdsa_sign.c69 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_do_sign()
75 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign()
81 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_sign_setup()
87 return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp); in DSA_sign_setup()
/trueos/crypto/openssl/crypto/rsa/
HDrsa_lib.c85 void RSA_set_default_method(const RSA_METHOD *meth) in RSA_set_default_method() argument
87 default_RSA_meth = meth; in RSA_set_default_method()
112 return rsa->meth; in RSA_get_method()
115 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) in RSA_set_method() argument
122 mtmp = rsa->meth; in RSA_set_method()
131 rsa->meth = meth; in RSA_set_method()
132 if (meth->init) in RSA_set_method()
133 meth->init(rsa); in RSA_set_method()
147 ret->meth = RSA_get_default_method(); in RSA_new_method()
159 ret->meth = ENGINE_get_RSA(ret->engine); in RSA_new_method()
[all …]
HDrsa_crpt.c79 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in RSA_public_encrypt()
85 return (rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding)); in RSA_public_encrypt()
92 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in RSA_private_encrypt()
98 return (rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding)); in RSA_private_encrypt()
105 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in RSA_private_decrypt()
111 return (rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding)); in RSA_private_decrypt()
118 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in RSA_public_decrypt()
124 return (rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding)); in RSA_public_decrypt()
129 return ((r == NULL) ? 0 : r->meth->flags); in RSA_flags()
233 rsa->meth->bn_mod_exp, rsa->_method_mod_n); in RSA_setup_blinding()
/trueos/crypto/openssl/crypto/store/
HDstr_lib.c118 ret->meth = method; in STORE_new_method()
121 if (ret->meth->init && !ret->meth->init(ret)) { in STORE_new_method()
132 const STORE_METHOD *meth = 0; in STORE_new_engine() local
148 meth = ENGINE_get_STORE(e); in STORE_new_engine()
149 if (!meth) { in STORE_new_engine()
157 ret = STORE_new_method(meth); in STORE_new_engine()
172 if (store->meth->clean) in STORE_free()
173 store->meth->clean(store); in STORE_free()
184 if (store->meth->ctrl) in STORE_ctrl()
185 return store->meth->ctrl(store, cmd, i, p, f); in STORE_ctrl()
[all …]
/trueos/crypto/openssl/crypto/conf/
HDconf_lib.c87 int CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument
89 default_CONF_method = meth; in CONF_set_default_method()
228 CONF *NCONF_new(CONF_METHOD *meth) in NCONF_new() argument
232 if (meth == NULL) in NCONF_new()
233 meth = NCONF_default(); in NCONF_new()
235 ret = meth->create(meth); in NCONF_new()
248 conf->meth->destroy(conf); in NCONF_free()
255 conf->meth->destroy_data(conf); in NCONF_free_data()
265 return conf->meth->load(conf, file, eline); in NCONF_load()
290 return conf->meth->load_bio(conf, bp, eline); in NCONF_load_bio()
[all …]
/trueos/crypto/openssl/engines/
HDe_ubsec.c628 const RSA_METHOD *meth = RSA_PKCS1_SSLeay(); in ubsec_rsa_mod_exp() local
629 to_return = (*meth->rsa_mod_exp) (r0, I, rsa, ctx); in ubsec_rsa_mod_exp()
730 const RSA_METHOD *meth = RSA_PKCS1_SSLeay(); in ubsec_mod_exp_mont() local
731 ret = (*meth->bn_mod_exp) (r, a, p, m, ctx, m_ctx); in ubsec_mod_exp_mont()
779 const DSA_METHOD *meth; in ubsec_dsa_do_sign() local
782 meth = DSA_OpenSSL(); in ubsec_dsa_do_sign()
783 to_return = meth->dsa_do_sign(dgst, dlen, dsa); in ubsec_dsa_do_sign()
802 const DSA_METHOD *meth; in ubsec_dsa_do_sign() local
806 meth = DSA_OpenSSL(); in ubsec_dsa_do_sign()
807 to_return = meth->dsa_do_sign(dgst, dlen, dsa); in ubsec_dsa_do_sign()
[all …]
/trueos/crypto/openssl/crypto/ecdsa/
HDecs_lib.c75 void ECDSA_set_default_method(const ECDSA_METHOD *meth) in ECDSA_set_default_method() argument
77 default_ECDSA_method = meth; in ECDSA_set_default_method()
95 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) in ECDSA_set_method() argument
110 ecdsa->meth = meth; in ECDSA_set_method()
127 ret->meth = ECDSA_get_default_method(); in ECDSA_DATA_new_method()
133 ret->meth = ENGINE_get_ECDSA(ret->engine); in ECDSA_DATA_new_method()
134 if (!ret->meth) { in ECDSA_DATA_new_method()
143 ret->flags = ret->meth->flags; in ECDSA_DATA_new_method()
146 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in ECDSA_DATA_new_method()
/trueos/crypto/openssl/crypto/ui/
HDui_lib.c87 ret->meth = UI_get_default_method(); in UI_new_method()
89 ret->meth = method; in UI_new_method()
400 if (ui->meth->ui_construct_prompt) in UI_construct_prompt()
401 prompt = ui->meth->ui_construct_prompt(ui, object_desc, object_name); in UI_construct_prompt()
460 if (ui->meth->ui_write_string && !ui->meth->ui_write_string(ui, &uis)) in print_error()
469 if (ui->meth->ui_open_session && !ui->meth->ui_open_session(ui)) in UI_process()
477 if (ui->meth->ui_write_string in UI_process()
478 && !ui->meth->ui_write_string(ui, in UI_process()
486 if (ui->meth->ui_flush) in UI_process()
487 switch (ui->meth->ui_flush(ui)) { in UI_process()
[all …]
/trueos/crypto/openssl/crypto/asn1/
HDx_crl.c215 crl->meth = default_crl_method; in crl_cb()
275 if (crl->meth->crl_init) { in crl_cb()
276 if (crl->meth->crl_init(crl) == 0) in crl_cb()
282 if (crl->meth->crl_free) { in crl_cb()
283 if (!crl->meth->crl_free(crl)) in crl_cb()
373 if (crl->meth->crl_verify) in X509_CRL_verify()
374 return crl->meth->crl_verify(crl, r); in X509_CRL_verify()
381 if (crl->meth->crl_lookup) in X509_CRL_get0_by_serial()
382 return crl->meth->crl_lookup(crl, ret, serial, NULL); in X509_CRL_get0_by_serial()
388 if (crl->meth->crl_lookup) in X509_CRL_get0_by_cert()
[all …]
/trueos/crypto/openssl/crypto/
HDex_data.c245 STACK_OF(CRYPTO_EX_DATA_FUNCS) *meth;
305 sk_CRYPTO_EX_DATA_FUNCS_pop_free(item->meth, def_cleanup_util_cb); in def_cleanup_cb()
325 gen->meth = sk_CRYPTO_EX_DATA_FUNCS_new_null(); in def_get_class()
326 if (!gen->meth) in def_get_class()
365 while (sk_CRYPTO_EX_DATA_FUNCS_num(item->meth) <= item->meth_num) { in def_add_index()
366 if (!sk_CRYPTO_EX_DATA_FUNCS_push(item->meth, NULL)) { in def_add_index()
373 (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()
433 storage[i] = sk_CRYPTO_EX_DATA_FUNCS_value(item->meth, i); in int_new_ex_data()
467 mx = sk_CRYPTO_EX_DATA_FUNCS_num(item->meth); in int_dup_ex_data()
[all …]
/trueos/crypto/openssl/apps/
HDciphers.c94 const SSL_METHOD *meth = NULL; in MAIN() local
99 meth = SSLv23_server_method(); in MAIN()
124 meth = SSLv2_client_method(); in MAIN()
128 meth = SSLv3_client_method(); in MAIN()
132 meth = TLSv1_client_method(); in MAIN()
152 ctx = SSL_CTX_new(meth); in MAIN()
/trueos/contrib/unbound/ldns/
HDkeyraw.c122 const EVP_PKEY_ASN1_METHOD* meth; in sldns_key_EVP_load_gost_id() local
128 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); in sldns_key_EVP_load_gost_id()
129 if(meth) { in sldns_key_EVP_load_gost_id()
130 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); in sldns_key_EVP_load_gost_id()
152 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); in sldns_key_EVP_load_gost_id()
153 if(!meth) { in sldns_key_EVP_load_gost_id()
163 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); in sldns_key_EVP_load_gost_id()

12345