X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/2981454b687a63049482ae55ca8f87fa7f6a3132..7bd3364494a4b173f5bffc24bfa52fab6b26806a:/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;