update comments

This commit is contained in:
zzz
2016-01-29 18:28:43 +00:00
parent da3086bbef
commit 129fb973f2
3 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,6 @@ public class EdDSAPrivateKey implements EdDSAKey, PrivateKey {
* @since implemented in 0.9.25
*/
public byte[] getEncoded() {
// TODO no equals() implemented in spec, but it's essentially a singleton
if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512)))
return null;
int totlen = 17 + seed.length;

View File

@ -72,7 +72,6 @@ public class EdDSAPublicKey implements EdDSAKey, PublicKey {
* @since implemented in 0.9.25
*/
public byte[] getEncoded() {
// TODO no equals() implemented in spec, but it's essentially a singleton
if (!edDsaSpec.equals(EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512)))
return null;
int totlen = 15 + Abyte.length;

View File

@ -3,6 +3,8 @@ package net.i2p.crypto.eddsa.math;
import java.io.Serializable;
/**
*
* Note: concrete subclasses must implement hashCode() and equals()
*
* @since 0.9.15
*