Changeset 0fe15b8


Ignore:
Timestamp:
Aug 21, 2014 11:43:57 PM (6 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
7b64586
Parents:
a1cb00b
Message:

Use DataHelper? instead of TestUtils?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java

    ra1cb00b r0fe15b8  
    11package net.i2p.crypto.eddsa.math.ed25519;
    22
    3 import net.i2p.crypto.eddsa.TestUtils;
    43import net.i2p.crypto.eddsa.math.Field;
    54import net.i2p.crypto.eddsa.math.FieldElement;
     5import net.i2p.data.DataHelper;
    66
    77/**
     
    962962        // XXX why does direct byte[] comparison fail?
    963963        // TODO should this be constant time?
    964         return TestUtils.getHex(toByteArray()).equals(TestUtils.getHex(fe.toByteArray()));
     964        return DataHelper.toString(toByteArray()).equals(DataHelper.toString(fe.toByteArray()));
    965965    }
    966966
    967967    @Override
    968968    public String toString() {
    969         return "[Ed25519FieldElement val="+TestUtils.getHex(toByteArray())+"]";
     969        return "[Ed25519FieldElement val="+DataHelper.toString(toByteArray())+"]";
    970970    }
    971971}
Note: See TracChangeset for help on using the changeset viewer.