diff options
| author | tb <> | 2019-01-19 01:12:48 +0000 |
|---|---|---|
| committer | tb <> | 2019-01-19 01:12:48 +0000 |
| commit | a8a1d0862b279d5f1d505fa305718acb94730824 (patch) | |
| tree | 5ac3e1c2617f2fd9b71523bfd1836f187ba33661 /src/lib/libcrypto/ecdsa/ecdsa.h | |
| parent | aa769d92fad41004606a446424dde716784d7854 (diff) | |
| download | openbsd-a8a1d0862b279d5f1d505fa305718acb94730824.tar.gz openbsd-a8a1d0862b279d5f1d505fa305718acb94730824.tar.bz2 openbsd-a8a1d0862b279d5f1d505fa305718acb94730824.zip | |
Partial port of EC_KEY_METHOD from OpenSSL 1.1.
This commit adds missing API for ECDH/ECDSA_verify.
from markus
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecdsa.h')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecdsa.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.h b/src/lib/libcrypto/ecdsa/ecdsa.h index 12d6677ce3..71b8825436 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.6 2019/01/19 01:07:00 tb Exp $ */ | 1 | /* $OpenBSD: ecdsa.h,v 1.7 2019/01/19 01:12:48 tb Exp $ */ |
| 2 | /** | 2 | /** |
| 3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions | 3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions |
| 4 | * \author Written by Nils Larsch for the OpenSSL project | 4 | * \author Written by Nils Larsch for the OpenSSL project |
| @@ -279,6 +279,11 @@ void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, | |||
| 279 | ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, | 279 | ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, |
| 280 | int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, | 280 | int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, |
| 281 | EC_KEY *eckey)); | 281 | EC_KEY *eckey)); |
| 282 | void EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth, | ||
| 283 | int (*verify)(int type, const unsigned char *dgst, int dgst_len, | ||
| 284 | const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), | ||
| 285 | int (*verify_sig)(const unsigned char *dgst, int dgst_len, | ||
| 286 | const ECDSA_SIG *sig, EC_KEY *eckey)); | ||
| 282 | void EC_KEY_METHOD_get_sign(EC_KEY_METHOD *meth, | 287 | void EC_KEY_METHOD_get_sign(EC_KEY_METHOD *meth, |
| 283 | int (**psign)(int type, const unsigned char *dgst, | 288 | int (**psign)(int type, const unsigned char *dgst, |
| 284 | int dlen, unsigned char *sig, unsigned int *siglen, | 289 | int dlen, unsigned char *sig, unsigned int *siglen, |
| @@ -288,6 +293,12 @@ void EC_KEY_METHOD_get_sign(EC_KEY_METHOD *meth, | |||
| 288 | ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, | 293 | ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, |
| 289 | int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, | 294 | int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, |
| 290 | EC_KEY *eckey)); | 295 | EC_KEY *eckey)); |
| 296 | void EC_KEY_METHOD_get_verify(EC_KEY_METHOD *meth, | ||
| 297 | int (**pverify)(int type, const unsigned char *dgst, int dgst_len, | ||
| 298 | const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), | ||
| 299 | int (**pverify_sig)(const unsigned char *dgst, int dgst_len, | ||
| 300 | const ECDSA_SIG *sig, EC_KEY *eckey)); | ||
| 301 | |||
| 291 | 302 | ||
| 292 | /* BEGIN ERROR CODES */ | 303 | /* BEGIN ERROR CODES */ |
| 293 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 304 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
