 Timestamp:
 Feb 6, 2019 12:35:27 PM (17 months ago)
 Branches:
 master
 Children:
 19cb85a
 Parents:
 3a30f07
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

core/java/src/net/i2p/crypto/eddsa/math/GroupElement.java
r3a30f07 r490b81c 484 484 */ 485 485 private GroupElement toRep(final Representation repr) { 486 if (this.repr == repr) 487 return this; 486 488 switch (this.repr) { 487 489 case P2: 488 490 switch (repr) { 489 case P2:490 return p2(this.curve, this.X, this.Y, this.Z);491 491 default: 492 492 throw new IllegalArgumentException(); … … 496 496 case P2: 497 497 return p2(this.curve, this.X, this.Y, this.Z); 498 case P3:499 return p3(this.curve, this.X, this.Y, this.Z, this.T);500 498 case CACHED: 501 499 return cached(this.curve, this.Y.add(this.X), this.Y.subtract(this.X), this.Z, this.T.multiply(this.curve.get2D())); … … 511 509 case P3PrecomputedDouble: 512 510 return p3(this.curve, this.X.multiply(this.T), Y.multiply(this.Z), this.Z.multiply(this.T), this.X.multiply(this.Y), true); 513 case P1P1:514 return p1p1(this.curve, this.X, this.Y, this.Z, this.T);515 511 default: 516 512 throw new IllegalArgumentException(); … … 518 514 case PRECOMP: 519 515 switch (repr) { 520 case PRECOMP:521 return precomp(this.curve, this.X, this.Y, this.Z);522 516 default: 523 517 throw new IllegalArgumentException(); … … 525 519 case CACHED: 526 520 switch (repr) { 527 case CACHED:528 return cached(this.curve, this.X, this.Y, this.Z, this.T);529 521 default: 530 522 throw new IllegalArgumentException();
Note: See TracChangeset
for help on using the changeset viewer.