-
Enhancement
-
Resolution: Fixed
-
P3
-
5.0
-
b01
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8030152 | 9 | Brian Burkhalter | P3 | Resolved | Fixed | b01 |
JDK-8045495 | 8u25 | Brian Burkhalter | P3 | Resolved | Fixed | b01 |
JDK-8053732 | emb-8u26 | Brian Burkhalter | P3 | Resolved | Fixed | b17 |
Some algorithms need to perform a lot of squaring operations (e.g. elliptic curve crypto). Squaring can be implemented in approximately half the number of primitive multiplications as general multiplication code.
BigInteger has that code internally but it is not accessible by applications. To change that, the multiply(BigInteger val) code should include a this.equals(val) check and use the squaring code if so.
BigInteger has that code internally but it is not accessible by applications. To change that, the multiply(BigInteger val) code should include a this.equals(val) check and use the squaring code if so.
- backported by
-
JDK-8030152 BigInteger a.multiply(a) should use squaring code
- Resolved
-
JDK-8045495 BigInteger a.multiply(a) should use squaring code
- Resolved
-
JDK-8053732 BigInteger a.multiply(a) should use squaring code
- Resolved