[freenet-dev] freenet.crypt.Util not referenced methods

Alberto Bacchelli sback at sback.it
Tue Aug 28 08:46:44 UTC 2007


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?).





More information about the Devl mailing list