]> the.earth.li Git - onak.git/commitdiff
Fix signature hash checking for RIPEMD-160
authorJonathan McDowell <noodles@earth.li>
Sun, 3 Nov 2013 19:36:11 +0000 (11:36 -0800)
committerJonathan McDowell <noodles@earth.li>
Sun, 3 Nov 2013 19:36:11 +0000 (11:36 -0800)
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

index 2f165bce0dd1e711bff108089ecc70781ca33595..902c9a1e9ce078df9cdaa03e58644906531a5b9a 100644 (file)
@@ -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;