From: Jonathan McDowell Date: Sun, 3 Nov 2013 19:36:11 +0000 (-0800) Subject: Fix signature hash checking for RIPEMD-160 X-Git-Tag: onak-0.4.3~43 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=78d77be7ae2b6293fe117d8670c0abbe80272238;p=onak.git 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. --- 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;