diff options
| author | tb <> | 2023-06-25 18:45:56 +0000 |
|---|---|---|
| committer | tb <> | 2023-06-25 18:45:56 +0000 |
| commit | 85f78eb5e708f88227cbc815f99624d39cdfada5 (patch) | |
| tree | 827bc6c6e367e27b583030a88f63ac80be6f976b /src/lib/libcrypto/ecdsa/ecs_local.h | |
| parent | 828f7d36b5a0c49731c9307ec9f510358426c53c (diff) | |
| download | openbsd-85f78eb5e708f88227cbc815f99624d39cdfada5.tar.gz openbsd-85f78eb5e708f88227cbc815f99624d39cdfada5.tar.bz2 openbsd-85f78eb5e708f88227cbc815f99624d39cdfada5.zip | |
Remove {ecdh,ecdsa}_check() and {ECDH,ECDSA}_DATA
This is now unused code. Removing it will free us up to remove some
other ugliness in the ec directory.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_local.h')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_local.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_local.h b/src/lib/libcrypto/ecdsa/ecs_local.h index 5cdf264557..20ad0c246e 100644 --- a/src/lib/libcrypto/ecdsa/ecs_local.h +++ b/src/lib/libcrypto/ecdsa/ecs_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecs_local.h,v 1.2 2022/11/26 17:23:17 tb Exp $ */ | 1 | /* $OpenBSD: ecs_local.h,v 1.3 2023/06/25 18:45:56 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
| 4 | */ | 4 | */ |
| @@ -63,29 +63,11 @@ | |||
| 63 | 63 | ||
| 64 | __BEGIN_HIDDEN_DECLS | 64 | __BEGIN_HIDDEN_DECLS |
| 65 | 65 | ||
| 66 | typedef struct ecdsa_data_st { | ||
| 67 | /* EC_KEY_METH_DATA part */ | ||
| 68 | int (*init)(EC_KEY *); | ||
| 69 | /* method (ECDSA) specific part */ | ||
| 70 | ENGINE *engine; | ||
| 71 | int flags; | ||
| 72 | const ECDSA_METHOD *meth; | ||
| 73 | CRYPTO_EX_DATA ex_data; | ||
| 74 | } ECDSA_DATA; | ||
| 75 | |||
| 76 | struct ECDSA_SIG_st { | 66 | struct ECDSA_SIG_st { |
| 77 | BIGNUM *r; | 67 | BIGNUM *r; |
| 78 | BIGNUM *s; | 68 | BIGNUM *s; |
| 79 | }; | 69 | }; |
| 80 | 70 | ||
| 81 | /** ecdsa_check | ||
| 82 | * checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure | ||
| 83 | * and if not it removes the old meth_data and creates a ECDSA_DATA structure. | ||
| 84 | * \param eckey pointer to a EC_KEY object | ||
| 85 | * \return pointer to a ECDSA_DATA structure | ||
| 86 | */ | ||
| 87 | ECDSA_DATA *ecdsa_check(EC_KEY *eckey); | ||
| 88 | |||
| 89 | int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, | 71 | int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, |
| 90 | BIGNUM **rp); | 72 | BIGNUM **rp); |
| 91 | int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, | 73 | int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, |
