summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_local.h')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_local.h20
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
66typedef 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
76struct ECDSA_SIG_st { 66struct 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 */
87ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
88
89int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, 71int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
90 BIGNUM **rp); 72 BIGNUM **rp);
91int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, 73int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen,