propagate from branch 'i2p.i2p' (head c62904685f0153a5b8cd032e8b3f1c4f64c5bec9)

to branch 'i2p.i2p.str4d.ui' (head 2a82ccb644906256af7bd0827725dc83e4c76be2)
This commit is contained in:
str4d
2016-08-08 02:29:14 +00:00
8 changed files with 44 additions and 11 deletions

View File

@@ -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) {