projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e6c817
)
Fix the size of the hash array when checking sig hashes
author
Jonathan McDowell
<noodles@earth.li>
Sat, 14 Jul 2012 19:20:27 +0000
(13:20 -0600)
committer
Jonathan McDowell
<noodles@earth.li>
Sat, 14 Jul 2012 19:20:27 +0000
(13:20 -0600)
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
patch
|
blob
|
history
diff --git
a/sigcheck.c
b/sigcheck.c
index e5e8ccde9640e6bce5ce248e0d3d16bf200d9557..852b53b3784a578d5d41c933b1b5b8cc2656f331 100644
(file)
--- 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;