diff --git a/core/java/src/net/i2p/util/NativeBigInteger.java b/core/java/src/net/i2p/util/NativeBigInteger.java index 10b5fb777..b867cf76f 100644 --- a/core/java/src/net/i2p/util/NativeBigInteger.java +++ b/core/java/src/net/i2p/util/NativeBigInteger.java @@ -640,7 +640,9 @@ public class NativeBigInteger extends BigInteger { } /** - * @throws ArithmeticException if m <= 0 + * @param m must be postive + * @param exponent must be postive + * @throws ArithmeticException if m <= 0 or exponent <=0 */ @Override public BigInteger modPow(BigInteger exponent, BigInteger m) { @@ -654,7 +656,9 @@ public class NativeBigInteger extends BigInteger { } /** - * @throws ArithmeticException if m <= 0 + * @param exponent must be postive + * @param m must be postive and odd + * @throws ArithmeticException if m <= 0 or m is even or exponent <=0 * @since 0.9.26 and libjbigi version 3 and GMP version 5 */ public BigInteger modPowCT(BigInteger exponent, BigInteger m) {