Skip to content

Commit 5ab6cba

Browse files
committed
Clean up some unnecessary changed lines.
1 parent 6756a6a commit 5ab6cba

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/net/i2p/crypto/eddsa/math/GroupElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ private GroupElement toRep(final Representation repr) {
499499
case P2:
500500
return p2(this.curve, this.X, this.Y, this.Z);
501501
case P3:
502-
return p3(this.curve, this.X, this.Y, this.Z, this.T, false);
502+
return p3(this.curve, this.X, this.Y, this.Z, this.T);
503503
case CACHED:
504504
return cached(this.curve, this.Y.add(this.X), this.Y.subtract(this.X), this.Z, this.T.multiply(this.curve.get2D()));
505505
default:

test/net/i2p/crypto/eddsa/math/ConstantsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ConstantsTest {
3838
static final FieldElement ONE = curve.getField().ONE;
3939
static final FieldElement TWO = curve.getField().TWO;
4040

41-
static final GroupElement P3_ZERO = GroupElement.p3(curve, ZERO, ONE, ONE, ZERO, false);
41+
static final GroupElement P3_ZERO = GroupElement.p3(curve, ZERO, ONE, ONE, ZERO);
4242

4343
@Test
4444
public void testb() {

test/net/i2p/crypto/eddsa/math/MathUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static GroupElement toGroupElement(final byte[] bytes) {
237237
x = x.negate().mod(getQ());
238238
}
239239

240-
return GroupElement.p3(curve, toFieldElement(x), toFieldElement(y), getField().ONE, toFieldElement(x.multiply(y).mod(getQ())), false);
240+
return GroupElement.p3(curve, toFieldElement(x), toFieldElement(y), getField().ONE, toFieldElement(x.multiply(y).mod(getQ())));
241241
}
242242

243243
/**
@@ -371,7 +371,7 @@ public static GroupElement addGroupElements(final GroupElement g1, final GroupEl
371371
.multiply(BigInteger.ONE.subtract(dx1x2y1y2).modInverse(getQ())).mod(getQ());
372372
BigInteger t3 = x3.multiply(y3).mod(getQ());
373373

374-
return GroupElement.p3(g1.getCurve(), toFieldElement(x3), toFieldElement(y3), getField().ONE, toFieldElement(t3), false);
374+
return GroupElement.p3(g1.getCurve(), toFieldElement(x3), toFieldElement(y3), getField().ONE, toFieldElement(t3));
375375
}
376376

377377
/**
@@ -436,13 +436,13 @@ public static GroupElement negateGroupElement(final GroupElement g) {
436436
throw new IllegalArgumentException("g must have representation P3");
437437
}
438438

439-
return GroupElement.p3(g.getCurve(), g.getX().negate(), g.getY(), g.getZ(), g.getT().negate(), false);
439+
return GroupElement.p3(g.getCurve(), g.getX().negate(), g.getY(), g.getZ(), g.getT().negate());
440440
}
441441

442442
// Start TODO BR: Remove when finished!
443443
@Test
444444
public void mathUtilsWorkAsExpected() {
445-
final GroupElement neutral = GroupElement.p3(curve, curve.getField().ZERO, curve.getField().ONE, curve.getField().ONE, curve.getField().ZERO, false);
445+
final GroupElement neutral = GroupElement.p3(curve, curve.getField().ZERO, curve.getField().ONE, curve.getField().ONE, curve.getField().ZERO);
446446
for (int i=0; i<1000; i++) {
447447
final GroupElement g = getRandomGroupElement();
448448

0 commit comments

Comments
 (0)