Skip to content

Commit f9a9213

Browse files
committed
Javadoc fixes
1 parent da76a71 commit f9a9213

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void setField(Field f) {
2222
/**
2323
* Decode a FieldElement from its (b-1)-bit encoding.
2424
* The highest bit is masked out.
25-
* @param val the (b-1)-bit encoding of a FieldElement.
25+
* @param in the (b-1)-bit encoding of a FieldElement.
2626
* @return the FieldElement represented by 'val'.
2727
*/
2828
public abstract FieldElement decode(byte[] in);
@@ -33,7 +33,7 @@ public void setField(Field f) {
3333
* than the (b-1)-bit encoding of -x. If q is an odd prime and the encoding
3434
* is the little-endian representation of {0, 1,..., q-1} then the negative
3535
* elements of F_q are {1, 3, 5,..., q-2}.
36-
* @return
36+
* @return true if negative
3737
*/
3838
public abstract boolean isNegative(FieldElement x);
3939
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ GroupElement cmov(GroupElement u, int b) {
489489
*
490490
* @param pos = i/2 for i in {0, 2, 4,..., 62}
491491
* @param b = r_i
492-
* @return
492+
* @return the GroupElement
493493
*/
494494
GroupElement select(int pos, int b) {
495495
// Is r_i negative?
@@ -522,7 +522,7 @@ GroupElement select(int pos, int b) {
522522
* Preconditions: (TODO: Check this applies here)
523523
* a[31] <= 127
524524
* @param a = a[0]+256*a[1]+...+256^31 a[31]
525-
* @return
525+
* @return the GroupElement
526526
*/
527527
public GroupElement scalarMultiply(byte[] a) {
528528
GroupElement t;
@@ -603,7 +603,7 @@ static byte[] slide(byte[] a) {
603603
* @param A in P3 representation.
604604
* @param a = a[0]+256*a[1]+...+256^31 a[31]
605605
* @param b = b[0]+256*b[1]+...+256^31 b[31]
606-
* @return
606+
* @return the GroupElement
607607
*/
608608
public GroupElement doubleScalarMultiplyVariableTime(GroupElement A, byte[] a, byte[] b) {
609609
byte[] aslide = slide(a);
@@ -645,7 +645,6 @@ public GroupElement doubleScalarMultiplyVariableTime(GroupElement A, byte[] a, b
645645

646646
/**
647647
* Verify that a point is on its curve.
648-
* @param P The point to check.
649648
* @return true if the point lies on its curve.
650649
*/
651650
public boolean isOnCurve() {

src/net/i2p/crypto/eddsa/math/bigint/BigIntegerLittleEndianEncoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public BigInteger toBigInteger(byte[] in) {
6565
* than the (b-1)-bit encoding of -x. If q is an odd prime and the encoding
6666
* is the little-endian representation of {0, 1,..., q-1} then the negative
6767
* elements of F_q are {1, 3, 5,..., q-2}.
68-
* @return
68+
* @return true if negative
6969
*/
7070
public boolean isNegative(FieldElement x) {
7171
return ((BigIntegerFieldElement)x).bi.testBit(0);

0 commit comments

Comments
 (0)