X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/47a6b94c2389f0e2a4f42706818a12369746b713..be7737f9178c518884da0cfaf1b3b3ed26bb1cd9:/sshrsa.c diff --git a/sshrsa.c b/sshrsa.c index b7732105..f7817361 100644 --- a/sshrsa.c +++ b/sshrsa.c @@ -727,7 +727,7 @@ static int rsa2_verifysig(void *key, char *sig, int siglen, ret = 1; - bytes = bignum_bitcount(rsa->modulus) / 8; + bytes = (bignum_bitcount(rsa->modulus)+7) / 8; /* Top (partial) byte should be zero. */ if (bignum_byte(out, bytes - 1) != 0) ret = 0;