8333046: Clean codes in sun.security.util.math
Reviewed-by: weijun
This commit is contained in:
parent
10eb1cb639
commit
c0ce7d871f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -250,4 +250,4 @@ int main(){
|
||||
BN_CTX_free(ctx);
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
@ -92,4 +92,4 @@ public class IntegerPolynomialTest {
|
||||
}
|
||||
}
|
||||
|
||||
//make test TEST="test/jdk/com/sun/security/util/math/intpoly/IntegerPolynomialTest.java"
|
||||
//make test TEST="test/jdk/com/sun/security/util/math/intpoly/IntegerPolynomialTest.java"
|
||||
|
@ -97,4 +97,4 @@ public class MontgomeryPolynomialFuzzTest {
|
||||
}
|
||||
}
|
||||
|
||||
//make test TEST="test/jdk/com/sun/security/util/math/intpoly/MontgomeryPolynomialFuzzTest.java"
|
||||
//make test TEST="test/jdk/com/sun/security/util/math/intpoly/MontgomeryPolynomialFuzzTest.java"
|
||||
|
Loading…
x
Reference in New Issue
Block a user