improved variable name.
@@ -76,8 +76,8 @@ private BigInteger validate(BigInteger modulus, boolean isInternal)
int maxBitLength = Properties.asInteger("org.bouncycastle.rsa.max_size", 15360);
- int qBitLength = modulus.bitLength();
- if (maxBitLength < qBitLength)
+ int modBitLength = modulus.bitLength();
+ if (maxBitLength < modBitLength)
{
throw new IllegalArgumentException("modulus value out of range");
}
