Home
last modified time | relevance | path

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

12345

/openbsd-src/lib/libcrypto/rsa/
H A Drsa_meth.c29 RSA_METHOD *meth; in RSA_meth_new() local
31 if ((meth = calloc(1, sizeof(*meth))) == NULL) in RSA_meth_new()
33 if ((meth->name = strdup(name)) == NULL) { in RSA_meth_new()
34 free(meth); in RSA_meth_new()
37 meth->flags = flags; in RSA_meth_new()
39 return meth; in RSA_meth_new()
44 RSA_meth_free(RSA_METHOD *meth) in RSA_meth_free() argument
46 if (meth == NULL) in RSA_meth_free()
49 free(meth->name); in RSA_meth_free()
50 free(meth); in RSA_meth_free()
[all …]
H A Drsa.h265 void RSA_set_default_method(const RSA_METHOD *meth);
268 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
410 void RSA_meth_free(RSA_METHOD *meth);
411 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);
412 int RSA_meth_set1_name(RSA_METHOD *meth, const char *name);
413 int RSA_meth_set_priv_enc(RSA_METHOD *meth, int (*priv_enc)(int flen,
415 int RSA_meth_set_priv_dec(RSA_METHOD *meth, int (*priv_dec)(int flen,
417 int (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa);
418 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish)(RSA *rsa));
419 int RSA_meth_set_pub_enc(RSA_METHOD *meth, in
[all...]
H A Drsa_lib.c86 RSA_set_default_method(const RSA_METHOD *meth) in RSA_set_default_method() argument
88 default_RSA_meth = meth; in RSA_set_default_method()
105 return rsa->meth; in RSA_get_method()
110 RSA_set_method(RSA *rsa, const RSA_METHOD *meth) in RSA_set_method() argument
118 mtmp = rsa->meth; in RSA_set_method()
121 rsa->meth = meth; in RSA_set_method()
122 if (meth->init) in RSA_set_method()
123 meth->init(rsa); in RSA_set_method()
138 ret->meth = RSA_get_default_method(); in RSA_new_method()
141 ret->flags = ret->meth->flags & ~RSA_FLAG_NON_FIPS_ALLOW; in RSA_new_method()
[all …]
H A Drsa_eay.c199 if (!rsa->meth->bn_mod_exp(ret, f, rsa->e, rsa->n, ctx, in rsa_public_encrypt()
387 if (!rsa->meth->rsa_mod_exp(ret, f, rsa, ctx)) in rsa_private_encrypt()
395 if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx, in rsa_private_encrypt()
507 if (!rsa->meth->rsa_mod_exp(ret, f, rsa, ctx)) in rsa_private_decrypt()
515 if (!rsa->meth->bn_mod_exp(ret, f, &d, rsa->n, ctx, in rsa_private_decrypt()
620 if (!rsa->meth->bn_mod_exp(ret, f, rsa->e, rsa->n, ctx, in rsa_public_decrypt()
712 if (!rsa->meth->bn_mod_exp(m1, r1, &dmq1, rsa->q, ctx, in rsa_mod_exp()
727 if (!rsa->meth->bn_mod_exp(r0, r1, &dmp1, rsa->p, ctx, in rsa_mod_exp()
769 if (!rsa->meth->bn_mod_exp(vrfy, r0, rsa->e, rsa->n, ctx, in rsa_mod_exp()
796 if (!rsa->meth->bn_mod_exp(r0, I, &d, rsa->n, ctx, in rsa_mod_exp()
[all …]
/openbsd-src/lib/libcrypto/ec/
H A Dec_kmeth.c
H A Dec_lib.c79 EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new()
83 if (meth == NULL) { in EC_GROUP_new()
92 group->meth = meth; in EC_GROUP_new()
153 if (dst->meth != src->meth) { in EC_GROUP_copy()
211 if ((group = EC_GROUP_new(in_group->meth)) == NULL) in EC_GROUP_method_of()
492 if (group->meth->group_set_curve == NULL) { in EC_GROUP_set_curve()
496 ret = group->meth->group_set_curve(group, p, a, b, ctx); in EC_GROUP_set_curve()
518 if (group->meth in EC_GROUP_get_curve()
77 EC_GROUP_new(const EC_METHOD * meth) EC_GROUP_new() argument
216 EC_METHOD_get_field_type(const EC_METHOD * meth) EC_METHOD_get_field_type() argument
[all...]
H A Dec_oct.c
H A Dec_key.c94 if (ec_key->meth->set_group != NULL) { in EC_KEY_new_by_curve_name()
95 if (!ec_key->meth->set_group(ec_key, ec_key->group)) in EC_KEY_new_by_curve_name()
117 if (ec_key->meth != NULL && ec_key->meth->finish != NULL) in EC_KEY_free()
118 ec_key->meth->finish(ec_key); in EC_KEY_free()
138 if (src->meth != dest->meth) { in EC_KEY_copy() local
139 if (dest->meth != NULL && dest->meth->finish != NULL) in EC_KEY_copy()
140 dest->meth in EC_KEY_copy()
[all...]
H A Decp_smpl.c
H A Decp_oct.c
H A Dec.h105 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth);
113 int EC_METHOD_get_field_type(const EC_METHOD *meth);
308 void EC_KEY_set_default_method(const EC_KEY_METHOD *meth);
310 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);
342 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);
343 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth);
344 void EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,
351 void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,
353 void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,
356 void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,
[all...]
/openbsd-src/lib/libcrypto/dsa/
H A Ddsa_meth.c29 DSA_METHOD *meth; in DSA_meth_new() local
31 if ((meth = calloc(1, sizeof(*meth))) == NULL) in DSA_meth_new()
33 if ((meth->name = strdup(name)) == NULL) { in DSA_meth_new()
34 free(meth); in DSA_meth_new()
37 meth->flags = flags; in DSA_meth_new()
39 return meth; in DSA_meth_new()
44 DSA_meth_free(DSA_METHOD *meth) in DSA_meth_free() argument
46 if (meth == NULL) in DSA_meth_free()
49 free(meth->name); in DSA_meth_free()
50 free(meth); in DSA_meth_free()
[all …]
H A Ddsa_lib.c80 DSA_set_default_method(const DSA_METHOD *meth) in DSA_set_default_method() argument
82 default_DSA_method = meth; in DSA_set_default_method()
103 DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() argument
110 mtmp = dsa->meth; in DSA_set_method()
113 dsa->meth = meth; in DSA_set_method()
114 if (meth->init) in DSA_set_method()
115 meth->init(dsa); in DSA_set_method()
130 dsa->meth = DSA_get_default_method(); in DSA_new_method()
131 dsa->flags = dsa->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; in DSA_new_method()
136 if (dsa->meth->init != NULL && !dsa->meth->init(dsa)) in DSA_new_method()
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/
H A DFunctions.pm50 foreach my $meth (@EXPORT, @EXPORT_OK) {
51 my $sub = File::Spec->can($meth);
53 if (exists($udeps{$meth}) && $sub == File::Spec::Unix->can($meth) &&
56 } @{$udeps{$meth}}) &&
57 defined(&{"File::Spec::Unix::_fn_$meth"})) {
58 *{$meth} = \&{"File::Spec::Unix::_fn_$meth"};
60 *{$meth} = sub {&$sub('File::Spec', @_)};
/openbsd-src/lib/libcrypto/dh/
H A Ddh_lib.c73 DH_set_default_method(const DH_METHOD *meth) in DH_set_default_method() argument
75 default_DH_method = meth; in DH_set_default_method()
89 DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument
97 mtmp = dh->meth; in DH_set_method()
100 dh->meth = meth; in DH_set_method()
101 if (meth->init) in DH_set_method()
102 meth->init(dh); in DH_set_method()
124 dh->meth = DH_get_default_method(); in DH_new_method()
125 dh->flags = dh->meth in DH_new_method()
[all...]
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dgv_fetchmeth_autoload.t28 my $meth = "gen$type";
29 …ok !XS::APItest::gv_fetchmeth_autoload_type(\%::, $meth, $type, -1, 0), "With level = -1, $types[$…
30 ok !$::{$meth}, "...and doesn't vivify the glob.";
32 …ok !XS::APItest::gv_fetchmeth_autoload_type(\%::, $meth, $type, 0, 0), "With level = 0, $types[$ty…
33 ok $::{$meth}, "...but does vivify the glob.";
35 …ok !XS::APItest::gv_fetchmeth_autoload_type(\%::, $meth . $type, $type, $level, 0), "$types[$type]…
37 …is XS::APItest::gv_fetchmeth_autoload_type(\%::, $meth . $type, $type, $level, 0), "*main::$meth$t…
H A Dgv_fetchmeth.t22 my $meth = "gen$type";
23 …ok !XS::APItest::gv_fetchmeth_type(\%::, $meth, $type, -1, 0), "With level = -1, $types[$type] ret…
24 ok !$::{$meth}, "...and doesn't vivify the glob.";
26 …ok !XS::APItest::gv_fetchmeth_type(\%::, $meth, $type, 0, 0), "With level = 0, $types[$type] still…
27 ok $::{$meth}, "...but does vivify the glob.";
/openbsd-src/lib/libcrypto/conf/
H A Dconf_lib.c81 NCONF_new(const CONF_METHOD *meth)
85 if (meth == NULL) in CONF_set_default_method()
86 meth = NCONF_default(); in CONF_set_default_method()
88 ret = meth->create(meth); in CONF_set_default_method()
103 conf->meth->destroy(conf); in LHASH_OF()
115 return conf->meth->load(conf, file, eline); in LHASH_OF()
127 return conf->meth->load_bio(conf, bp, eline); in LHASH_OF()
185 for (*result = 0; conf->meth->is_number(conf, *str); ) { in CONF_get_number()
186 *result = (*result) * 10 + conf->meth in CONF_get_number()
84 CONF_set_default_method(CONF_METHOD * meth) CONF_set_default_method() argument
234 NCONF_new(CONF_METHOD * meth) NCONF_new() argument
[all...]
/openbsd-src/lib/libssl/
H A Dssl_versions.c58 ssl_version_set_min(const SSL_METHOD *meth, uint16_t proto_ver, in ssl_version_set_min() argument
64 *out_tls_ver = meth->min_tls_version; in ssl_version_set_min()
72 if (meth->dtls) { in ssl_version_set_min()
78 meth->min_tls_version, meth->max_tls_version)) in ssl_version_set_min()
82 if (meth->dtls) { in ssl_version_set_min()
93 ssl_version_set_max(const SSL_METHOD *meth, uint16_t proto_ver, in ssl_version_set_max() argument
99 *out_tls_ver = meth->max_tls_version; in ssl_version_set_max()
107 if (meth->dtls) { in ssl_version_set_max()
113 meth->min_tls_version, meth->max_tls_version)) in ssl_version_set_max()
117 if (meth->dtls) { in ssl_version_set_max()
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/Util/
H A DFacets2Legacy.pm120 my $meth = $in->can('uuid');
121 $meth = $in->can('SUPER::uuid') if $meth == \&uuid;
122 my $uuid = $in->$meth if $meth && $meth != \&uuid;
/openbsd-src/lib/libcrypto/
H A Dex_data.c
/openbsd-src/lib/libcrypto/ui/
H A Dui_lib.c87 if ((ret->meth = method) == NULL) in UI_new_method()
88 ret->meth = UI_get_default_method(); in UI_new_method()
357 if (ui->meth->ui_construct_prompt) in UI_construct_prompt()
358 return ui->meth->ui_construct_prompt(ui, object_desc, in UI_construct_prompt()
420 if (ui->meth->ui_write_string && in print_error()
421 !ui->meth->ui_write_string(ui, &uis)) in print_error()
431 if (ui->meth->ui_open_session && !ui->meth->ui_open_session(ui)) in UI_process()
438 if (ui->meth->ui_write_string && in UI_process()
439 !ui->meth->ui_write_string(ui, in UI_process()
446 if (ui->meth->ui_flush) in UI_process()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Encode/t/
H A Dunibench.pl38 my ($meth, $from, $to) = ($op eq 'encode') ?
42 $meth->('UTF-16BE', $S{$from}{$sz}{$cp})
48 $meth->('UTF-16BE', $S{$from}{$sz}{$cp})
54 $meth->('UTF-16BE', $S{$from}{$sz}{$cp})
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/IPC/
H A DDriver.pm24 for my $meth (qw/send cull add_hub drop_hub waiting is_viable/) {
26 *$meth = sub {
28 confess "'$thing' did not define the required method '$meth'."
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/modules/IPC/
H A DDriver.t19 for my $meth (qw/send cull add_hub drop_hub waiting is_viable/) {
22 exception { $one->$meth },
23 qr/'\Q$one\E' did not define the required method '$meth'/,
24 "Require override of method $meth"

12345