summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_locl.h
diff options
context:
space:
mode:
authortb <>2019-01-19 01:07:00 +0000
committertb <>2019-01-19 01:07:00 +0000
commitdc38b357c3a6e0db4a7172af29148961b86b0724 (patch)
treef28042e7a3c924e4bf846d6cded984e02699177d /src/lib/libcrypto/ecdsa/ecs_locl.h
parentf11f1c0f8ad579cfb88a2559e3efe0e0367cec85 (diff)
downloadopenbsd-dc38b357c3a6e0db4a7172af29148961b86b0724.tar.gz
openbsd-dc38b357c3a6e0db4a7172af29148961b86b0724.tar.bz2
openbsd-dc38b357c3a6e0db4a7172af29148961b86b0724.zip
Partial port of EC_KEY_METHOD from OpenSSL 1.1.
This commit adds init/free, support for signing, setting and getting the method, engine support as well as extra data. from markus
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_locl.h')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_locl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_locl.h b/src/lib/libcrypto/ecdsa/ecs_locl.h
index 94e8874332..0a9f17908b 100644
--- a/src/lib/libcrypto/ecdsa/ecs_locl.h
+++ b/src/lib/libcrypto/ecdsa/ecs_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_locl.h,v 1.5 2016/12/21 15:49:29 jsing Exp $ */ 1/* $OpenBSD: ecs_locl.h,v 1.6 2019/01/19 01:07:00 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -81,6 +81,14 @@ typedef struct ecdsa_data_st {
81 */ 81 */
82ECDSA_DATA *ecdsa_check(EC_KEY *eckey); 82ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
83 83
84int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
85 BIGNUM **rp);
86int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen,
87 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv,
88 const BIGNUM *r, EC_KEY *eckey);
89ECDSA_SIG *ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len,
90 const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey);
91
84__END_HIDDEN_DECLS 92__END_HIDDEN_DECLS
85 93
86#endif /* HEADER_ECS_LOCL_H */ 94#endif /* HEADER_ECS_LOCL_H */