summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-06-25 18:35:28 +0000
committertb <>2023-06-25 18:35:28 +0000
commit4f21d97099309dee2fff64e714d96a6e3ff929ba (patch)
tree7ebd88ccaeca3282f3bc81e9b654d3643b65cf6d /src
parent93a17583d912ca338be885974e669a9eb871c489 (diff)
downloadopenbsd-4f21d97099309dee2fff64e714d96a6e3ff929ba.tar.gz
openbsd-4f21d97099309dee2fff64e714d96a6e3ff929ba.tar.bz2
openbsd-4f21d97099309dee2fff64e714d96a6e3ff929ba.zip
ecdsa_do_sign(): remove useless ecdsa_check() call
ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_ossl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c
index 9702cd6dab..02e38109bc 100644
--- a/src/lib/libcrypto/ecdsa/ecs_ossl.c
+++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_ossl.c,v 1.33 2023/04/13 15:00:24 tb Exp $ */ 1/* $OpenBSD: ecs_ossl.c,v 1.34 2023/06/25 18:35:28 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -289,15 +289,13 @@ ecdsa_do_sign(const unsigned char *dgst, int dgst_len,
289 BN_CTX *ctx = NULL; 289 BN_CTX *ctx = NULL;
290 const EC_GROUP *group; 290 const EC_GROUP *group;
291 ECDSA_SIG *ret; 291 ECDSA_SIG *ret;
292 ECDSA_DATA *ecdsa;
293 int attempts = 0; 292 int attempts = 0;
294 int ok = 0; 293 int ok = 0;
295 294
296 ecdsa = ecdsa_check(eckey);
297 group = EC_KEY_get0_group(eckey); 295 group = EC_KEY_get0_group(eckey);
298 priv_key = EC_KEY_get0_private_key(eckey); 296 priv_key = EC_KEY_get0_private_key(eckey);
299 297
300 if (group == NULL || priv_key == NULL || ecdsa == NULL) { 298 if (group == NULL || priv_key == NULL) {
301 ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); 299 ECDSAerror(ERR_R_PASSED_NULL_PARAMETER);
302 return NULL; 300 return NULL;
303 } 301 }