There is a lot of not referenced methods in freenet.crypt.Util class:

fillByteArrayFromInts(int[] ints, byte[] bytes);
fillByteArrayFromLongs(long[] ints, byte[] bytes);
fillIntArrayFromBytes(byte[] bytes, int[] ints);
fillLongArrayFromBytes(byte[] bytes, long[] longs);
BigInteger generateLargeRandom(int lowerBound,int upperBound,Random r);
hashString(Digest d, String s);
byteArrayEqual(byte[] a, byte[] b, int offset, int length);
getCipherByName(String name, int keySize);
getDigestByName(String name);
log2(long n);

IMHO it would be better to completely remove them, since they could
possibly have bugs and probably nobody will use them (do devs even know
their existence?).



Reply via email to