I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 129fb973 authored by zzz's avatar zzz
Browse files

update comments

parent da3086bb
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,6 @@ public class EdDSAPrivateKey implements EdDSAKey, PrivateKey { ...@@ -87,7 +87,6 @@ public class EdDSAPrivateKey implements EdDSAKey, PrivateKey {
* @since implemented in 0.9.25 * @since implemented in 0.9.25
*/ */
public byte[] getEncoded() { public byte[] getEncoded() {
// TODO no equals() implemented in spec, but it's essentially a singleton
if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512))) if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512)))
return null; return null;
int totlen = 17 + seed.length; int totlen = 17 + seed.length;
......
...@@ -72,7 +72,6 @@ public class EdDSAPublicKey implements EdDSAKey, PublicKey { ...@@ -72,7 +72,6 @@ public class EdDSAPublicKey implements EdDSAKey, PublicKey {
* @since implemented in 0.9.25 * @since implemented in 0.9.25
*/ */
public byte[] getEncoded() { public byte[] getEncoded() {
// TODO no equals() implemented in spec, but it's essentially a singleton
if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512))) if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512)))
return null; return null;
int totlen = 15 + Abyte.length; int totlen = 15 + Abyte.length;
......
...@@ -3,6 +3,8 @@ package net.i2p.crypto.eddsa.math; ...@@ -3,6 +3,8 @@ package net.i2p.crypto.eddsa.math;
import java.io.Serializable; import java.io.Serializable;
/** /**
*
* Note: concrete subclasses must implement hashCode() and equals()
* *
* @since 0.9.15 * @since 0.9.15
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment