From 666b0d041ecf22f2b4936d3b04a98e5807f55877 Mon Sep 17 00:00:00 2001
From: Jonathan McDowell <noodles@earth.li>
Date: Sat, 14 Jul 2012 13:20:27 -0600
Subject: [PATCH] Fix the size of the hash array when checking sig hashes

It was only 20 bytes - big enough for SHA1, but not when the larger
SHA2 hashes are available in nettle. This allows up to SHA512.
---
 sigcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sigcheck.c b/sigcheck.c
index e5e8ccd..852b53b 100644
--- a/sigcheck.c
+++ b/sigcheck.c
@@ -57,7 +57,7 @@ int check_packet_sighash(struct openpgp_publickey *key,
 	uint8_t keyheader[3];
 	uint8_t packetheader[5];
 	uint8_t v4trailer[6];
-	uint8_t hash[20];
+	uint8_t hash[64];
 	uint8_t *hashdata[8];
 	size_t hashlen[8];
 	int chunks, i;
-- 
2.39.5