From 78d77be7ae2b6293fe117d8670c0abbe80272238 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 3 Nov 2013 11:36:11 -0800 Subject: [PATCH] Fix signature hash checking for RIPEMD-160 There was a missing break statement in the RIPEMD-160 case that resulted in us miscalculating the signature hash for a signature using RIPEMD-160. --- sigcheck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sigcheck.c b/sigcheck.c index 2f165bc..902c9a1 100644 --- a/sigcheck.c +++ b/sigcheck.c @@ -182,6 +182,7 @@ int check_packet_sighash(struct openpgp_publickey *key, } ripemd160_digest(&ripemd160_context, RIPEMD160_DIGEST_SIZE, hash); + break; #else logthing(LOGTHING_INFO, "RIPEMD160 support not available."); return -1; -- 2.39.5