summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c
index 7e03c234ee..83be5fd38b 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.49 2023/07/03 09:55:42 tb Exp $ */ 1/* $OpenBSD: ecs_ossl.c,v 1.50 2023/07/03 09:59:20 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -440,7 +440,7 @@ ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len,
440 /* Ensure signature uses DER and doesn't have trailing garbage */ 440 /* Ensure signature uses DER and doesn't have trailing garbage */
441 if ((derlen = i2d_ECDSA_SIG(s, &der)) != sig_len) 441 if ((derlen = i2d_ECDSA_SIG(s, &der)) != sig_len)
442 goto err; 442 goto err;
443 if (memcmp(sigbuf, der, derlen)) 443 if (timingsafe_memcmp(sigbuf, der, derlen))
444 goto err; 444 goto err;
445 445
446 ret = ECDSA_do_verify(dgst, dgst_len, s, eckey); 446 ret = ECDSA_do_verify(dgst, dgst_len, s, eckey);