X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/47a6b94c2389f0e2a4f42706818a12369746b713..142a7757ce23032acccf721411b24a69168d22ea:/sshrsa.c?ds=sidebyside 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;