| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/rsa/ |
| D | rsa_meth.c | 22 RSA_METHOD *meth = OPENSSL_zalloc(sizeof(*meth)); in RSA_meth_new() local 24 if (meth != NULL) { in RSA_meth_new() 25 meth->flags = flags; in RSA_meth_new() 27 meth->name = OPENSSL_strdup(name); in RSA_meth_new() 28 if (meth->name != NULL) in RSA_meth_new() 29 return meth; in RSA_meth_new() 31 OPENSSL_free(meth); in RSA_meth_new() 38 void RSA_meth_free(RSA_METHOD *meth) in RSA_meth_free() argument 40 if (meth != NULL) { in RSA_meth_free() 41 OPENSSL_free(meth->name); in RSA_meth_free() [all …]
|
| D | rsa_schemes.c | 17 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()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/ |
| D | ec_kmeth.c | 50 void EC_KEY_set_default_method(const EC_KEY_METHOD *meth) in EC_KEY_set_default_method() argument 52 if (meth == NULL) in EC_KEY_set_default_method() 55 default_ec_key_meth = meth; in EC_KEY_set_default_method() 60 return key->meth; in EC_KEY_get_method() 63 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method() argument 65 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method() 75 key->meth = meth; in EC_KEY_set_method() 76 if (meth->init != NULL) in EC_KEY_set_method() 77 return meth->init(key); in EC_KEY_set_method() 107 ret->meth = EC_KEY_get_default_method(); in ossl_ec_key_new_method_int() [all …]
|
| D | ecp_smpl.c | 174 if (group->meth->field_encode) { in ossl_ec_GFp_simple_group_set_curve() 175 if (!group->meth->field_encode(group, group->a, tmp_a, ctx)) in ossl_ec_GFp_simple_group_set_curve() 183 if (group->meth->field_encode) in ossl_ec_GFp_simple_group_set_curve() 184 if (!group->meth->field_encode(group, group->b, group->b, ctx)) in ossl_ec_GFp_simple_group_set_curve() 212 if (group->meth->field_decode) { in ossl_ec_GFp_simple_group_get_curve() 219 if (!group->meth->field_decode(group, a, group->a, ctx)) in ossl_ec_GFp_simple_group_get_curve() 223 if (!group->meth->field_decode(group, b, group->b, ctx)) in ossl_ec_GFp_simple_group_get_curve() 274 if (group->meth->field_decode) { in ossl_ec_GFp_simple_group_check_discriminant() 275 if (!group->meth->field_decode(group, a, group->a, ctx)) in ossl_ec_GFp_simple_group_check_discriminant() 277 if (!group->meth->field_decode(group, b, group->b, ctx)) in ossl_ec_GFp_simple_group_check_discriminant() [all …]
|
| D | ec_lib.c | 30 const EC_METHOD *meth) in ossl_ec_group_new_ex() argument 34 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() 58 if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) { in ossl_ec_group_new_ex() 68 if (!meth->group_init(ret)) in ossl_ec_group_new_ex() 82 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument 84 return ossl_ec_group_new_ex(NULL, NULL, meth); in EC_GROUP_new() 127 if (group->meth->group_finish != 0) in EC_GROUP_free() 128 group->meth->group_finish(group); in EC_GROUP_free() [all …]
|
| D | ec_oct.c | 27 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() 51 return group->meth->point_set_compressed_coordinates(group, point, x, 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() 106 return group->meth->point2oct(group, point, form, buf, len, ctx); in EC_POINT_point2oct() [all …]
|
| D | ec_key.c | 55 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex() 56 && ret->meth->set_group(ret, ret->group) == 0) { 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() 90 if (r->group && r->group->meth->keyfinish) 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() 114 if (dest->group && dest->group->meth->keyfinish) in EC_KEY_copy() [all …]
|
| D | ec2_smpl.c | 421 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() 438 if (!group->meth->field_div(group, s, y1, x1, 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() 687 if (!group->meth->make_affine(group, points[i], ctx)) in ossl_ec_GF2m_simple_points_make_affine() [all …]
|
| D | ec_cvt.c | 24 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()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/comp/ |
| 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() 39 int COMP_get_type(const COMP_METHOD *meth) in COMP_get_type() argument 41 return meth->type; in COMP_get_type() 44 const char *COMP_get_name(const COMP_METHOD *meth) in COMP_get_name() argument 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() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.cp/ |
| D | meth-typedefs.exp | 60 foreach meth {A::FOO::test A::FOO::foo} { 63 add methods $meth $t $type 69 foreach meth {A::FOO::test A::FOO::foo} { 73 add methods $meth "$t1, const $t2" $type 74 add methods $meth "$t1, $t2" $type 80 foreach meth {A::FOO::test A::FOO::foo B::test test} { 85 add methods $meth "$t1, $t2 const&, $t3 const***" $type 93 foreach meth {A::FOO::test A::FOO::foo} { 94 add methods $meth "fptr1*" $type 96 add methods $meth "void (**) ($t)" $type [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/dso/ |
| D | dso_lib.c | 13 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() 109 DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags) in DSO_load() argument 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() 171 if (dso->meth->dso_bind_func == NULL) { in DSO_bind_func() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| D | kdf_lib.c | 40 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() 59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup() 69 if (!EVP_KDF_up_ref(dst->meth)) { in EVP_KDF_CTX_dup() 75 dst->algctx = src->meth->dupctx(src->algctx); 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() [all …]
|
| D | mac_lib.c | 35 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() 71 dst->algctx = src->meth->dupctx(src->algctx); 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() 94 if (ctx->meth->get_ctx_params(ctx->algctx, params)) in get_size_t_ctx_param() 96 } else if (ctx->meth->get_params != NULL) { in get_size_t_ctx_param() 97 if (ctx->meth->get_params(params)) in get_size_t_ctx_param() [all …]
|
| D | evp_rand.c | 94 if (rand->meth->enable_locking != NULL) in EVP_RAND_enable_locking() 95 return rand->meth->enable_locking(rand->algctx); in EVP_RAND_enable_locking() 103 if (rand->meth->lock != NULL) in evp_rand_lock() 104 return rand->meth->lock(rand->algctx); in evp_rand_lock() 111 if (rand->meth->unlock != NULL) in evp_rand_unlock() 112 rand->meth->unlock(rand->algctx); in evp_rand_unlock() 355 parent_dispatch = parent->meth->dispatch; in EVP_RAND_CTX_new() 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() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/rand/ |
| D | rand_lib.c | 81 const RAND_METHOD *meth = default_RAND_meth; in ossl_rand_cleanup_int() local 86 if (meth != NULL && meth->cleanup != NULL) in ossl_rand_cleanup_int() 87 meth->cleanup(); in ossl_rand_cleanup_int() 126 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_poll() local 127 int ret = meth == RAND_OpenSSL(); in RAND_poll() 129 if (meth == NULL) in RAND_poll() 144 if (meth->add == NULL in RAND_poll() 145 || meth->add(ossl_rand_pool_buffer(pool), in RAND_poll() 162 static int rand_set_rand_method_internal(const RAND_METHOD *meth, in rand_set_rand_method_internal() argument 174 default_RAND_meth = meth; in rand_set_rand_method_internal() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| D | rsa.c | 117 rsa->meth = ENGINE_get_RSA(rsa->engine); in RSA_new_method() 118 if (rsa->meth == NULL) { in RSA_new_method() 125 if (rsa->meth == NULL) in RSA_new_method() 126 rsa->meth = rk_UNCONST(RSA_get_default_method()); in RSA_new_method() 128 (*rsa->meth->init)(rsa); in RSA_new_method() 149 (*rsa->meth->finish)(rsa); in RSA_free() 200 return rsa->meth; in RSA_get_method() 217 (*rsa->meth->finish)(rsa); in RSA_set_method() 224 rsa->meth = method; in RSA_set_method() 225 (*rsa->meth->init)(rsa); in RSA_set_method() [all …]
|
| D | dh.c | 101 dh->meth = ENGINE_get_DH(dh->engine); in DH_new_method() 102 if (dh->meth == NULL) { in DH_new_method() 109 if (dh->meth == NULL) in DH_new_method() 110 dh->meth = DH_get_default_method(); in DH_new_method() 112 (*dh->meth->init)(dh); in DH_new_method() 135 (*dh->meth->finish)(dh); in DH_free() 240 if (dh->meth->generate_params) in DH_generate_parameters_ex() 241 return dh->meth->generate_params(dh, prime_len, generator, cb); in DH_generate_parameters_ex() 344 return dh->meth->generate_key(dh); in DH_generate_key() 374 return dh->meth->compute_key(shared_key, peer_pub_key, dh); in DH_compute_key() [all …]
|
| D | rand.c | 120 const RAND_METHOD *meth = selected_meth; in RAND_cleanup() local 126 if (meth) in RAND_cleanup() 127 (*meth->cleanup)(); in RAND_cleanup() 195 RAND_set_rand_method(const RAND_METHOD *meth) in RAND_set_rand_method() argument 198 selected_meth = meth; in RAND_set_rand_method() 236 const RAND_METHOD *meth, *old = selected_meth; in RAND_set_rand_engine() local 240 meth = ENGINE_get_RAND(engine); in RAND_set_rand_engine() 241 if (meth == NULL) { in RAND_set_rand_engine() 246 meth = NULL; in RAND_set_rand_engine() 256 selected_meth = meth; in RAND_set_rand_engine()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| D | dh_lib.c | 32 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument 39 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() 94 ret->flags = ret->meth->flags; /* early default init */ in dh_new_intern() 104 ret->meth = ENGINE_get_DH(ret->engine); in dh_new_intern() 105 if (ret->meth == NULL) { in dh_new_intern() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/dsa/ |
| D | dsa_lib.c | 106 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() argument 113 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() 153 ret->flags = ret->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; /* early default init */ 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() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/conf/ |
| D | conf_lib.c | 40 int CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument 42 default_CONF_method = meth; in CONF_set_default_method() 182 CONF *NCONF_new_ex(OSSL_LIB_CTX *libctx, CONF_METHOD *meth) in NCONF_new_ex() argument 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() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ |
| D | ex_data.c | 75 sk_EX_CALLBACK_pop_free(ip->meth, cleanup_cb); in ossl_crypto_cleanup_all_ex_data_int() 76 ip->meth = NULL; in ossl_crypto_cleanup_all_ex_data_int() 119 if (idx < 0 || idx >= sk_EX_CALLBACK_num(ip->meth)) in ossl_crypto_free_ex_index_ex() 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() 165 || !sk_EX_CALLBACK_push(ip->meth, NULL)) { in ossl_crypto_get_ex_new_index_ex() 166 sk_EX_CALLBACK_free(ip->meth); in ossl_crypto_get_ex_new_index_ex() 167 ip->meth = NULL; in ossl_crypto_get_ex_new_index_ex() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ui/ |
| D | ui_lib.c | 43 ret->meth = method; in UI_new_method() 78 ui->meth->ui_destroy_data(ui, ui->user_data); in UI_free() 361 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt() 362 prompt = ui->meth->ui_construct_prompt(ui, phrase_desc, object_name); in UI_construct_prompt() 396 ui->meth->ui_destroy_data(ui, old_data); in UI_add_user_data() 408 if (ui->meth->ui_duplicate_data == NULL in UI_dup_user_data() 409 || ui->meth->ui_destroy_data == NULL) { in UI_dup_user_data() 414 duplicate = ui->meth->ui_duplicate_data(ui, user_data); in UI_dup_user_data() 465 if (ui->meth->ui_write_string != NULL in print_error() 466 && ui->meth->ui_write_string(ui, &uis) <= 0) in print_error() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| D | x_crl.c | 166 if (crl->meth->crl_free) { in crl_cb() 167 if (!crl->meth->crl_free(crl)) in crl_cb() 183 crl->meth = default_crl_method; in crl_cb() 253 if (crl->meth->crl_init) { in crl_cb() 254 if (crl->meth->crl_init(crl) == 0) in crl_cb() 262 if (crl->meth != NULL && crl->meth->crl_free != NULL) { in crl_cb() 263 if (!crl->meth->crl_free(crl)) in crl_cb() 376 if (crl->meth->crl_verify) in X509_CRL_verify() 377 return crl->meth->crl_verify(crl, r); in X509_CRL_verify() 384 if (crl->meth->crl_lookup) in X509_CRL_get0_by_serial() [all …]
|