Home
last modified time | relevance | path

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

12345

/openbsd/src/lib/libcrypto/rsa/
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 …]
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, int (*pub_enc)(int flen,
[all …]
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 …]
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/dsa/
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 …]
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 …]
Ddsa.h198 void DSA_meth_free(DSA_METHOD *meth);
199 DSA_METHOD *DSA_meth_dup(const DSA_METHOD *meth);
200 const char *DSA_meth_get0_name(const DSA_METHOD *meth);
201 int DSA_meth_set1_name(DSA_METHOD *meth, const char *name);
202 int DSA_meth_set_sign(DSA_METHOD *meth,
204 int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *));
/openbsd/src/lib/libcrypto/ec/
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()
139 if (dest->meth != NULL && dest->meth->finish != NULL) in EC_KEY_copy()
140 dest->meth->finish(dest); in EC_KEY_copy()
176 dest->meth = src->meth; in EC_KEY_copy()
178 if (src->meth != NULL && src->meth->copy != NULL) { in EC_KEY_copy()
179 if (!src->meth->copy(dest, src)) in EC_KEY_copy()
[all …]
Dec_lib.c79 EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument
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_dup()
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->group_get_curve == NULL) { in EC_GROUP_get_curve()
522 ret = group->meth->group_get_curve(group, p, a, b, ctx); in EC_GROUP_get_curve()
815 point->meth = group->meth; in EC_POINT_new()
[all …]
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/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/
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/conf/
Dconf_lib.c81 NCONF_new(const CONF_METHOD *meth) in NCONF_new() argument
85 if (meth == NULL) in NCONF_new()
86 meth = NCONF_default(); in NCONF_new()
88 ret = meth->create(meth); in NCONF_new()
103 conf->meth->destroy(conf); in NCONF_free()
115 return conf->meth->load(conf, file, eline); in NCONF_load()
127 return conf->meth->load_bio(conf, bp, eline); in NCONF_load_bio()
185 for (*result = 0; conf->meth->is_number(conf, *str); ) { in NCONF_get_number_e()
186 *result = (*result) * 10 + conf->meth->to_int(conf, *str); in NCONF_get_number_e()
/openbsd/src/lib/libcrypto/dh/
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->flags & ~DH_FLAG_NON_FIPS_ALLOW; in DH_new_method()
130 if (dh->meth->init != NULL && !dh->meth->init(dh)) in DH_new_method()
[all …]
/openbsd/src/gnu/usr.bin/perl/ext/XS-APItest/t/
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…
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/libssl/
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/
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/ui/
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/
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/
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/
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"
/openbsd/src/gnu/usr.bin/perl/cpan/CPAN/lib/CPAN/
DShell.pm1321 for my $meth (qw(name)) {
1322 next unless $class->can($meth);
1323 push @$methods, $meth;
1680 my($meth,@some) = @_;
1682 while($meth =~ /^(ff?orce|notest)$/) {
1683 push @pragma, $meth;
1684 $meth = shift @some or
1689 CPAN->debug("pragma[@pragma]meth[$meth]some[@some]") if $CPAN::DEBUG;
1731 $CPAN::Frontend->mywarn("Sorry, $meth with a regular expression is ".
1738 } elsif ($meth eq "ls") {
[all …]
/openbsd/src/gnu/usr.bin/perl/ext/B/t/
Db.t393 for my $meth (@{$methods->{$class}}) {
394 my $full = "B::${class}::$meth";
396 if grep $_ eq $full, @{$overlay->{$meth}};
397 push @{$overlay->{$meth}}, "B::${class}::$meth";
407 for my $meth (@{$methods->{$class}}) {
408 if ($op->can($meth)) {
409 my $list = $op->$meth;
412 && grep($_ eq "B::${class}::$meth", @$list),
413 "overlay: B::$class $meth");
416 pass("overlay: B::$class $meth (skipped; no method)");
/openbsd/src/lib/libcrypto/ecdsa/
Decdsa.c254 if (key->meth->sign == NULL) { in ECDSA_sign()
258 return key->meth->sign(type, digest, digest_len, signature, in ECDSA_sign()
391 if (key->meth->sign_setup == NULL) { in ECDSA_sign_setup()
395 return key->meth->sign_setup(key, in_ctx, out_kinv, out_r); in ECDSA_sign_setup()
594 if (key->meth->sign_sig == NULL) { in ECDSA_do_sign()
598 return key->meth->sign_sig(digest, digest_len, NULL, NULL, key); in ECDSA_do_sign()
638 if (key->meth->verify == NULL) { in ECDSA_verify()
642 return key->meth->verify(type, digest, digest_len, sigbuf, sig_len, key); in ECDSA_verify()
768 if (key->meth->verify_sig == NULL) { in ECDSA_do_verify()
772 return key->meth->verify_sig(digest, digest_len, sig, key); in ECDSA_do_verify()
/openbsd/src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
DMM_VMS.t73 foreach my $meth (@Methods) {
74 can_ok( 'ExtUtils::MM_VMS', $meth);

12345