diff options
author | tb <> | 2023-07-28 08:49:43 +0000 |
---|---|---|
committer | tb <> | 2023-07-28 08:49:43 +0000 |
commit | a60bb43ba730ae6d2d64a6568ee5fddecaf151e3 (patch) | |
tree | efbe0438383ae81f0c511a990e4a656ecd91e76c /src/lib/libcrypto/hidden/openssl/ecdsa.h | |
parent | 9c4fb33240afcde0c06cf9e4b12424a2cfa28418 (diff) | |
download | openbsd-a60bb43ba730ae6d2d64a6568ee5fddecaf151e3.tar.gz openbsd-a60bb43ba730ae6d2d64a6568ee5fddecaf151e3.tar.bz2 openbsd-a60bb43ba730ae6d2d64a6568ee5fddecaf151e3.zip |
Make extended ECDSA signing routines internal
ECDSA_sign_setup() permits precomputing the values of the inverse of the
random k and the corresponding r. These can then be fed into the signing
routines ECDSA_{do_,}sign_ex() multiple times if needed. This is not a
great idea and the interface adds a lot of unwanted complexity.
Not to mention that nothing ever used this correctly - if s works out to
0, a special error code is thrown requesting that the caller provide new
kinv and r values. Unsurprisingly, nobody ever checked for that special
error code.
ok jsing
This commit marks the start of a libcrypto major bump. Do not build the
tree until I bumped the shlib_version and synced file sets (in about 35
commits).
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl/ecdsa.h')
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/ecdsa.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/ecdsa.h b/src/lib/libcrypto/hidden/openssl/ecdsa.h index ef8a789939..b2563ed37d 100644 --- a/src/lib/libcrypto/hidden/openssl/ecdsa.h +++ b/src/lib/libcrypto/hidden/openssl/ecdsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecdsa.h,v 1.2 2023/07/07 19:37:54 beck Exp $ */ | 1 | /* $OpenBSD: ecdsa.h,v 1.3 2023/07/28 08:49:43 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -34,16 +34,13 @@ LCRYPTO_USED(ECDSA_SIG_get0_r); | |||
34 | LCRYPTO_USED(ECDSA_SIG_get0_s); | 34 | LCRYPTO_USED(ECDSA_SIG_get0_s); |
35 | LCRYPTO_USED(ECDSA_SIG_set0); | 35 | LCRYPTO_USED(ECDSA_SIG_set0); |
36 | LCRYPTO_USED(ECDSA_do_sign); | 36 | LCRYPTO_USED(ECDSA_do_sign); |
37 | LCRYPTO_USED(ECDSA_do_sign_ex); | ||
38 | LCRYPTO_USED(ECDSA_do_verify); | 37 | LCRYPTO_USED(ECDSA_do_verify); |
39 | LCRYPTO_USED(ECDSA_OpenSSL); | 38 | LCRYPTO_USED(ECDSA_OpenSSL); |
40 | LCRYPTO_USED(ECDSA_set_default_method); | 39 | LCRYPTO_USED(ECDSA_set_default_method); |
41 | LCRYPTO_USED(ECDSA_get_default_method); | 40 | LCRYPTO_USED(ECDSA_get_default_method); |
42 | LCRYPTO_USED(ECDSA_set_method); | 41 | LCRYPTO_USED(ECDSA_set_method); |
43 | LCRYPTO_USED(ECDSA_size); | 42 | LCRYPTO_USED(ECDSA_size); |
44 | LCRYPTO_USED(ECDSA_sign_setup); | ||
45 | LCRYPTO_USED(ECDSA_sign); | 43 | LCRYPTO_USED(ECDSA_sign); |
46 | LCRYPTO_USED(ECDSA_sign_ex); | ||
47 | LCRYPTO_USED(ECDSA_verify); | 44 | LCRYPTO_USED(ECDSA_verify); |
48 | LCRYPTO_USED(ECDSA_get_ex_new_index); | 45 | LCRYPTO_USED(ECDSA_get_ex_new_index); |
49 | LCRYPTO_USED(ECDSA_set_ex_data); | 46 | LCRYPTO_USED(ECDSA_set_ex_data); |