/** * Copy constructor. This will copy the state of the provided message * digest. */ public WhirlpoolDigest(WhirlpoolDigest originalDigest) { reset(originalDigest); }
public int doFinal(byte[] out, int outOff) { // sets out[outOff] .. out[outOff+DIGEST_LENGTH_BYTES] finish(); for (int i = 0; i < 8; i++) { convertLongToByteArray(_hash[i], out, outOff + (i * 8)); } reset(); return getDigestSize(); }
public int doFinal(byte[] out, int outOff) { // sets out[outOff] .. out[outOff+DIGEST_LENGTH_BYTES] finish(); for (int i = 0; i < 8; i++) { convertLongToByteArray(_hash[i], out, outOff + (i * 8)); } reset(); return getDigestSize(); }