File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
test/net/i2p/crypto/eddsa/math Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ public void constructorUsingByteArrayReturnsExpectedResult() {
168168
169169 /**
170170 * Test method for {@link GroupElement#toByteArray()}.
171+ * <p>
171172 * TODO 20141001 BR: why test with points which are not on the curve?
172173 */
173174 @ Test
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public static Field getField() {
5050
5151 /**
5252 * Converts a 2^25.5 bit representation to a BigInteger.
53+ * <p>
5354 * Value: 2^exponents[0] * t[0] + 2^exponents[1] * t[1] + ... + 2^exponents[9] * t[9]
5455 *
5556 * @param t The 2^25.5 bit representation.
@@ -66,6 +67,7 @@ public static BigInteger toBigInteger(final int[] t) {
6667
6768 /**
6869 * Converts a 2^8 bit representation to a BigInteger.
70+ * <p>
6971 * Value: bytes[0] + 2^8 * bytes[1] + ...
7072 *
7173 * @param bytes The 2^8 bit representation.
@@ -135,6 +137,7 @@ public static byte[] reduceModGroupOrder(final byte[] bytes) {
135137
136138 /**
137139 * Calculates (a * b + c) mod group order and returns the result.
140+ * <p>
138141 * a, b and c are given in 2^8 bit representation.
139142 *
140143 * @param a The first integer.
@@ -189,6 +192,7 @@ public static GroupElement getRandomGroupElement() {
189192
190193 /**
191194 * Creates a group element from a byte array.
195+ * <p>
192196 * Bit 0 to 254 are the affine y-coordinate, bit 255 is the sign of the affine x-coordinate.
193197 *
194198 * @param bytes the byte array.
You can’t perform that action at this time.
0 commit comments