diff options
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecdsa.h')
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecdsa.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.h b/src/lib/libcrypto/ecdsa/ecdsa.h index 122b0eb000..4b4a10ced4 100644 --- a/src/lib/libcrypto/ecdsa/ecdsa.h +++ b/src/lib/libcrypto/ecdsa/ecdsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecdsa.h,v 1.18 2023/07/28 09:01:25 tb Exp $ */ | 1 | /* $OpenBSD: ecdsa.h,v 1.19 2023/07/28 09:08:31 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
4 | */ | 4 | */ |
@@ -75,18 +75,6 @@ extern "C" { | |||
75 | 75 | ||
76 | typedef struct ECDSA_SIG_st ECDSA_SIG; | 76 | typedef struct ECDSA_SIG_st ECDSA_SIG; |
77 | 77 | ||
78 | struct ecdsa_method { | ||
79 | const char *name; | ||
80 | ECDSA_SIG *(*ecdsa_do_sign)(const unsigned char *dgst, int dgst_len, | ||
81 | const BIGNUM *inv, const BIGNUM *rp, EC_KEY *eckey); | ||
82 | int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, | ||
83 | BIGNUM **r); | ||
84 | int (*ecdsa_do_verify)(const unsigned char *dgst, int dgst_len, | ||
85 | const ECDSA_SIG *sig, EC_KEY *eckey); | ||
86 | int flags; | ||
87 | char *app_data; | ||
88 | }; | ||
89 | |||
90 | /* | 78 | /* |
91 | * If this flag is set, the ECDSA method is FIPS compliant and can be used | 79 | * If this flag is set, the ECDSA method is FIPS compliant and can be used |
92 | * in FIPS mode. This is set in the validated module method. If an | 80 | * in FIPS mode. This is set in the validated module method. If an |
@@ -111,10 +99,6 @@ ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len, | |||
111 | int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, | 99 | int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, |
112 | const ECDSA_SIG *sig, EC_KEY* eckey); | 100 | const ECDSA_SIG *sig, EC_KEY* eckey); |
113 | 101 | ||
114 | const ECDSA_METHOD *ECDSA_OpenSSL(void); | ||
115 | void ECDSA_set_default_method(const ECDSA_METHOD *meth); | ||
116 | const ECDSA_METHOD *ECDSA_get_default_method(void); | ||
117 | int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); | ||
118 | int ECDSA_size(const EC_KEY *eckey); | 102 | int ECDSA_size(const EC_KEY *eckey); |
119 | 103 | ||
120 | int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, | 104 | int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, |
@@ -122,11 +106,6 @@ int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, | |||
122 | int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen, | 106 | int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen, |
123 | const unsigned char *sig, int siglen, EC_KEY *eckey); | 107 | const unsigned char *sig, int siglen, EC_KEY *eckey); |
124 | 108 | ||
125 | int ECDSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | ||
126 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | ||
127 | int ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg); | ||
128 | void *ECDSA_get_ex_data(EC_KEY *d, int idx); | ||
129 | |||
130 | /* XXX should be in ec.h, but needs ECDSA_SIG */ | 109 | /* XXX should be in ec.h, but needs ECDSA_SIG */ |
131 | void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, | 110 | void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, |
132 | int (*sign)(int type, const unsigned char *dgst, | 111 | int (*sign)(int type, const unsigned char *dgst, |