From 0fe15b8e1d4d40a543f4616c3dbf223134ecab67 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Thu, 21 Aug 2014 23:43:57 +0000 Subject: [PATCH] Use DataHelper instead of TestUtils --- .../i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java b/core/java/src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java index f19523fedd..6b0f207ddf 100644 --- a/core/java/src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java +++ b/core/java/src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java @@ -1,8 +1,8 @@ package net.i2p.crypto.eddsa.math.ed25519; -import net.i2p.crypto.eddsa.TestUtils; import net.i2p.crypto.eddsa.math.Field; import net.i2p.crypto.eddsa.math.FieldElement; +import net.i2p.data.DataHelper; /** * An element t, entries t[0]...t[9], represents the integer @@ -961,11 +961,11 @@ public class Ed25519FieldElement extends FieldElement { Ed25519FieldElement fe = (Ed25519FieldElement) obj; // XXX why does direct byte[] comparison fail? // TODO should this be constant time? - return TestUtils.getHex(toByteArray()).equals(TestUtils.getHex(fe.toByteArray())); + return DataHelper.toString(toByteArray()).equals(DataHelper.toString(fe.toByteArray())); } @Override public String toString() { - return "[Ed25519FieldElement val="+TestUtils.getHex(toByteArray())+"]"; + return "[Ed25519FieldElement val="+DataHelper.toString(toByteArray())+"]"; } } -- GitLab