mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8333046: Clean codes in sun.security.util.math
Reviewed-by: weijun
This commit is contained in:
parent
10eb1cb639
commit
c0ce7d871f
6 changed files with 6 additions and 9 deletions
|
@ -25,8 +25,6 @@
|
|||
|
||||
package sun.security.util.math;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
/**
|
||||
* An interface for the field of integers modulo a prime number. An
|
||||
* implementation of this interface can be used to get properties of the
|
||||
|
|
|
@ -824,7 +824,7 @@ public abstract sealed class IntegerPolynomial implements IntegerFieldModuloP
|
|||
numAdds = 0;
|
||||
}
|
||||
|
||||
numAdds = IntegerPolynomial.this.square(limbs, limbs);;
|
||||
numAdds = IntegerPolynomial.this.square(limbs, limbs);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ import sun.security.util.math.ImmutableIntegerModuloP;
|
|||
import sun.security.util.math.IntegerMontgomeryFieldModuloP;
|
||||
import sun.security.util.math.SmallValue;
|
||||
import sun.security.util.math.IntegerFieldModuloP;
|
||||
import java.lang.Math;
|
||||
import java.math.BigInteger;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
|
@ -110,7 +109,7 @@ public final class MontgomeryIntegerPolynomialP256 extends IntegerPolynomial
|
|||
|
||||
@Override
|
||||
public SmallValue getSmallValue(int value) {
|
||||
// Explicitely here as reminder that SmallValue stays in residue domain
|
||||
// Explicitly here as reminder that SmallValue stays in residue domain
|
||||
// See multByInt below for how this is used
|
||||
return super.getSmallValue(value);
|
||||
}
|
||||
|
@ -557,4 +556,4 @@ public final class MontgomeryIntegerPolynomialP256 extends IntegerPolynomial
|
|||
limbs[i - 5] += (v << 4) & LIMB_MASK;
|
||||
limbs[i - 4] += v >> 48;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue