| /freebsd-12.1/crypto/openssl/crypto/rsa/ |
| H A D | rsa_meth.c | 16 RSA_METHOD *meth = OPENSSL_zalloc(sizeof(*meth)); in RSA_meth_new() local 18 if (meth != NULL) { in RSA_meth_new() 23 return meth; in RSA_meth_new() 25 OPENSSL_free(meth); in RSA_meth_new() 34 if (meth != NULL) { in RSA_meth_free() 45 memcpy(ret, meth, sizeof(*meth)); in RSA_meth_dup() 60 return meth->name; in RSA_meth_get0_name() 80 return meth->flags; in RSA_meth_get_flags() 85 meth->flags = flags; in RSA_meth_set_flags() 202 return meth->init; in RSA_meth_get_init() [all …]
|
| H A D | rsa_lib.c | 27 return rsa->meth; in RSA_get_method() 37 mtmp = rsa->meth; in RSA_set_method() 44 rsa->meth = meth; in RSA_set_method() 45 if (meth->init) in RSA_set_method() 46 meth->init(rsa); in RSA_set_method() 67 ret->meth = RSA_get_default_method(); in RSA_new_method() 80 ret->meth = ENGINE_get_RSA(ret->engine); in RSA_new_method() 81 if (ret->meth == NULL) { in RSA_new_method() 93 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in RSA_new_method() 118 if (r->meth != NULL && r->meth->finish != NULL) in RSA_free() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ec/ |
| H A D | ec_kmeth.c | 44 if (meth == NULL) in EC_KEY_set_default_method() 52 return key->meth; in EC_KEY_get_method() 67 key->meth = meth; in EC_KEY_set_method() 68 if (meth->init != NULL) in EC_KEY_set_method() 116 if (ret->meth->init != NULL && ret->meth->init(ret) == 0) { in EC_KEY_new_method() 161 if (meth != NULL) in EC_KEY_METHOD_new() 162 *ret = *meth; in EC_KEY_METHOD_new() 183 meth->init = init; in EC_KEY_METHOD_set_init() 184 meth->finish = finish; in EC_KEY_METHOD_set_init() 185 meth->copy = copy; in EC_KEY_METHOD_set_init() [all …]
|
| H A D | ec_lib.c | 24 if (meth == NULL) { in EC_GROUP_new() 28 if (meth->group_init == 0) { in EC_GROUP_new() 39 ret->meth = meth; in EC_GROUP_new() 50 if (!meth->group_init(ret)) in EC_GROUP_new() 136 if (dest->meth != src->meth) { in EC_GROUP_copy() 258 return group->meth; in EC_GROUP_method_of() 263 return meth->field_type; in EC_METHOD_get_field_type() 668 ret->meth = group->meth; in EC_POINT_new() 707 if (dest->meth != src->meth in EC_POINT_copy() 740 return point->meth; in EC_POINT_method_of() [all …]
|
| H A D | ec_key.c | 33 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name() 54 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free() 55 r->meth->finish(r); in EC_KEY_free() 62 r->group->meth->keyfinish(r); in EC_KEY_free() 79 if (src->meth != dest->meth) { in EC_KEY_copy() 81 dest->meth->finish(dest); in EC_KEY_copy() 135 if (src->meth != dest->meth) { in EC_KEY_copy() 141 dest->meth = src->meth; in EC_KEY_copy() 144 if (src->meth->copy != NULL && src->meth->copy(dest, src) == 0) in EC_KEY_copy() 187 if (eckey->meth->keygen != NULL) in EC_KEY_generate_key() [all …]
|
| H A D | ecp_smpl.c | 167 if (group->meth->field_encode) { in ec_GFp_simple_group_set_curve() 176 if (group->meth->field_encode) in ec_GFp_simple_group_set_curve() 205 if (group->meth->field_decode) { in ec_GFp_simple_group_get_curve() 267 if (group->meth->field_decode) { in ec_GFp_simple_group_check_discriminant() 387 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates_GFp() 396 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates_GFp() 408 if (group->meth->field_encode) { in ec_GFp_simple_set_Jprojective_coordinates_GFp() 527 if (group->meth->field_decode) { in ec_GFp_simple_point_get_affine_coordinates() 627 field_mul = group->meth->field_mul; in ec_GFp_simple_add() 628 field_sqr = group->meth->field_sqr; in ec_GFp_simple_add() [all …]
|
| H A D | ec_oct.c | 21 if (group->meth->point_set_compressed_coordinates == NULL in EC_POINT_set_compressed_coordinates() 22 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates() 32 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates() 33 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_set_compressed_coordinates() 74 if (group->meth->point2oct == 0 in EC_POINT_point2oct() 75 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_point2oct() 83 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_point2oct() 84 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_point2oct() 104 if (group->meth->oct2point == 0 in EC_POINT_oct2point() 105 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_oct2point() [all …]
|
| H A D | ec_cvt.c | 17 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local 42 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp() 45 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp() 47 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp() 50 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp() 66 const EC_METHOD *meth; in EC_GROUP_new_curve_GF2m() local 69 meth = EC_GF2m_simple_method(); in EC_GROUP_new_curve_GF2m() 71 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GF2m()
|
| H A D | ec2_smpl.c | 410 if (!group->meth->field_div(group, s, s, t, ctx)) in ec_GF2m_simple_add() 412 if (!group->meth->field_sqr(group, x2, s, ctx)) in ec_GF2m_simple_add() 427 if (!group->meth->field_div(group, s, y1, x1, ctx)) in ec_GF2m_simple_add() 432 if (!group->meth->field_sqr(group, x2, s, ctx)) in ec_GF2m_simple_add() 442 if (!group->meth->field_mul(group, y2, y2, s, ctx)) in ec_GF2m_simple_add() 506 field_mul = group->meth->field_mul; in ec_GF2m_simple_is_on_curve() 507 field_sqr = group->meth->field_sqr; in ec_GF2m_simple_is_on_curve() 707 if ((group->meth->field_encode != NULL in ec_GF2m_simple_ladder_pre() 721 if ((group->meth->field_encode != NULL in ec_GF2m_simple_ladder_pre() 807 || !group->meth->field_sqr(group, t2, p->X, ctx) in ec_GF2m_simple_ladder_post() [all …]
|
| H A D | ecdsa_sign.c | 23 if (eckey->meth->sign_sig != NULL) in ECDSA_do_sign_ex() 24 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 39 if (eckey->meth->sign != NULL) in ECDSA_sign_ex() 40 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex() 48 if (eckey->meth->sign_setup != NULL) in ECDSA_sign_setup() 49 return eckey->meth->sign_setup(eckey, ctx_in, kinvp, rp); in ECDSA_sign_setup()
|
| H A D | ecdsa_vrf.c | 23 if (eckey->meth->verify_sig != NULL) in ECDSA_do_verify() 24 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 38 if (eckey->meth->verify != NULL) in ECDSA_verify() 39 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify()
|
| /freebsd-12.1/crypto/openssl/ssl/statem/ |
| H A D | extensions_cust.c | 94 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() 244 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg); in custom_ext_add() 324 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free() 394 memset(meth, 0, sizeof(*meth)); in add_custom_ext_intern() 395 meth->role = role; in add_custom_ext_intern() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/comp/ |
| H A D | comp_lib.c | 18 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 …]
|
| /freebsd-12.1/crypto/openssl/crypto/dso/ |
| H A D | dso_lib.c | 39 ret->meth = default_DSO_meth; in DSO_new_method() 49 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method() 78 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free() 84 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free() 125 ret = DSO_new_method(meth); in DSO_load() 161 if (!ret->meth->dso_load(ret)) { in DSO_load() 224 if ((dso->meth == NULL) || (dso->meth->dso_ctrl == NULL)) { in DSO_ctrl() 313 if (meth == NULL) in DSO_pathbyaddr() 314 meth = DSO_METHOD_openssl(); in DSO_pathbyaddr() 315 if (meth->pathbyaddr == NULL) { in DSO_pathbyaddr() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ |
| H A D | ex_data.c | 30 STACK_OF(EX_CALLBACK) *meth; 101 ip->meth = NULL; in crypto_cleanup_all_ex_data_int() 140 a = sk_EX_CALLBACK_value(ip->meth, idx); in CRYPTO_free_ex_index() 166 if (ip->meth == NULL) { in CRYPTO_get_ex_new_index() 167 ip->meth = sk_EX_CALLBACK_new_null(); in CRYPTO_get_ex_new_index() 170 if (ip->meth == NULL in CRYPTO_get_ex_new_index() 188 if (!sk_EX_CALLBACK_push(ip->meth, NULL)) { in CRYPTO_get_ex_new_index() 193 toret = sk_EX_CALLBACK_num(ip->meth) - 1; in CRYPTO_get_ex_new_index() 221 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_new_ex_data() 269 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_dup_ex_data() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/dh/ |
| H A D | dh_lib.c | 17 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument 24 mtmp = dh->meth; in DH_set_method() 31 dh->meth = meth; in DH_set_method() 32 if (meth->init) in DH_set_method() 33 meth->init(dh); in DH_set_method() 59 ret->meth = DH_get_default_method(); in DH_new_method() 72 if (ret->meth == NULL) { in DH_new_method() 79 ret->flags = ret->meth->flags; in DH_new_method() 84 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DH_new_method() 109 if (r->meth != NULL && r->meth->finish != NULL) in DH_free() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/rand/ |
| H A D | rand_lib.c | 349 if (meth != NULL && meth->cleanup != NULL) in rand_cleanup_int() 350 meth->cleanup(); in rand_cleanup_int() 413 if (meth->add == NULL in RAND_poll() 834 default_RAND_meth = meth; in RAND_set_rand_method() 899 if (meth->seed != NULL) in RAND_seed() 900 meth->seed(buf, num); in RAND_seed() 907 if (meth->add != NULL) in RAND_add() 922 if (meth != RAND_OpenSSL()) in RAND_priv_bytes() 937 if (meth->bytes != NULL) in RAND_bytes() 958 if (meth->status != NULL) in RAND_status() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/dsa/ |
| H A D | dsa_lib.c | 31 mtmp = dsa->meth; in DSA_set_method() 38 dsa->meth = meth; in DSA_set_method() 39 if (meth->init) in DSA_set_method() 40 meth->init(dsa); in DSA_set_method() 46 return d->meth; in DSA_get_method() 66 ret->meth = DSA_get_default_method(); in DSA_new_method() 78 ret->meth = ENGINE_get_DSA(ret->engine); in DSA_new_method() 79 if (ret->meth == NULL) { in DSA_new_method() 91 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSA_new_method() 116 if (r->meth != NULL && r->meth->finish != NULL) in DSA_free() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/conf/ |
| H A D | conf_lib.c | 39 int CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument 41 default_CONF_method = meth; in CONF_set_default_method() 177 CONF *NCONF_new(CONF_METHOD *meth) in NCONF_new() argument 181 if (meth == NULL) in NCONF_new() 182 meth = NCONF_default(); in NCONF_new() 184 ret = meth->create(meth); in NCONF_new() 197 conf->meth->destroy(conf); in NCONF_free() 204 conf->meth->destroy_data(conf); in NCONF_free_data() 309 if (conf->meth->to_int != NULL) in NCONF_get_number_e() 310 to_int = conf->meth->to_int; in NCONF_get_number_e() [all …]
|
| /freebsd-12.1/crypto/openssh/openbsd-compat/ |
| H A D | libressl-api-compat.c | 525 RSA_meth_free(RSA_METHOD *meth) in RSA_meth_free() argument 527 if (meth != NULL) { in RSA_meth_free() 528 free((char *)meth->name); in RSA_meth_free() 529 free(meth); in RSA_meth_free() 542 memcpy(copy, meth, sizeof(*copy)); in RSA_meth_dup() 560 free((char *)meth->name); in RSA_meth_set1_name() 561 meth->name = copy; in RSA_meth_set1_name() 570 return meth->finish; in RSA_meth_get_finish() 579 meth->rsa_priv_enc = priv_enc; in RSA_meth_set_priv_enc() 589 meth->rsa_priv_dec = priv_dec; in RSA_meth_set_priv_dec() [all …]
|
| H A D | openssl-compat.h | 194 void RSA_meth_free(RSA_METHOD *meth); 198 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); 202 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name); 206 int (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa); 210 int RSA_meth_set_priv_enc(RSA_METHOD *meth, int (*priv_enc)(int flen, 215 int RSA_meth_set_priv_dec(RSA_METHOD *meth, int (*priv_dec)(int flen, 220 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish)(RSA *rsa));
|
| /freebsd-12.1/crypto/openssl/include/openssl/ |
| H A D | rsa.h | 268 void RSA_set_default_method(const RSA_METHOD *meth); 422 void RSA_meth_free(RSA_METHOD *meth); 423 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); 426 int RSA_meth_get_flags(const RSA_METHOD *meth); 427 int RSA_meth_set_flags(RSA_METHOD *meth, int flags); 430 int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) 437 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) 458 int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth)) 477 int (*RSA_meth_get_sign(const RSA_METHOD *meth)) 487 int (*RSA_meth_get_verify(const RSA_METHOD *meth)) [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/x509/ |
| H A D | x_crl.c | 162 if (crl->meth->crl_free) { in crl_cb() 163 if (!crl->meth->crl_free(crl)) in crl_cb() 179 crl->meth = default_crl_method; in crl_cb() 237 if (crl->meth->crl_init) { in crl_cb() 246 if (crl->meth->crl_free) { in crl_cb() 247 if (!crl->meth->crl_free(crl)) in crl_cb() 338 if (crl->meth->crl_verify) in X509_CRL_verify() 346 if (crl->meth->crl_lookup) in X509_CRL_get0_by_serial() 353 if (crl->meth->crl_lookup) in X509_CRL_get0_by_cert() 434 if (meth == NULL) in X509_CRL_set_default_method() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ui/ |
| H A D | ui_lib.c | 43 ret->meth = method; in UI_new_method() 409 if (ui->meth->ui_duplicate_data == NULL in UI_dup_user_data() 466 if (ui->meth->ui_write_string != NULL in print_error() 477 if (ui->meth->ui_open_session != NULL in UI_process() 489 if (ui->meth->ui_write_string != NULL in UI_process() 500 if (ui->meth->ui_flush != NULL) in UI_process() 501 switch (ui->meth->ui_flush(ui)) { in UI_process() 537 if (ui->meth->ui_close_session != NULL in UI_process() 588 return ui->meth; in UI_get_method() 593 ui->meth = meth; in UI_set_method() [all …]
|
| /freebsd-12.1/crypto/openssl/doc/man3/ |
| H A D | RSA_meth_new.pod | 24 void RSA_meth_free(RSA_METHOD *meth); 26 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); 28 const char *RSA_meth_get0_name(const RSA_METHOD *meth); 29 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name); 31 int RSA_meth_get_flags(const RSA_METHOD *meth); 32 int RSA_meth_set_flags(RSA_METHOD *meth, int flags); 34 void *RSA_meth_get0_app_data(const RSA_METHOD *meth); 35 int RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data); 44 int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) 83 int (*RSA_meth_get_init(const RSA_METHOD *meth) (RSA *rsa); [all …]
|