@Test public void testGetBytes() { hash.update(DATA); assertArrayEquals(new BigInteger("5eb63bbbe01eeed093cb22bb8f5acdc3", 16).toByteArray(), hash.getBytes()); }
@Override public byte[] getBytes() { getSavedDigest(); return Arrays.copyOf(savedDigest, savedDigest.length); }
DigestHash implements StatefulHash { @Override public byte[] getBytes() { getSavedDigest(); return Arrays.copyOf(savedDigest, savedDigest.length); } }
DigestHash implements StatefulHash { @Override public byte[] getBytes() { getSavedDigest(); return Arrays.copyOf(savedDigest, savedDigest.length); } DigestHash(MessageDigest digest); }
DigestHash implements StatefulHash { @Override public byte[] getBytes() { getSavedDigest(); return Arrays.copyOf(savedDigest, savedDigest.length); } DigestHash(MessageDigest digest); @Override String algorithm(); @Override int length(); @Override boolean supportsUnsafe(); @Override StatefulHash createNew(); @Override boolean supportsIncremental(); @Override void reset(); @Override void update(byte[] input); @Override void update(byte[] input, int index, int length); @Override void update(ByteBuffer input); @Override void update(long address, long length); @Override byte[] getBytes(); @Override int getBytes(byte[] output, int index, int maxLength); @Override byte getByte(); @Override short getShort(); @Override int getInt(); @Override long getLong(); }
DigestHash implements StatefulHash { @Override public byte[] getBytes() { getSavedDigest(); return Arrays.copyOf(savedDigest, savedDigest.length); } DigestHash(MessageDigest digest); @Override String algorithm(); @Override int length(); @Override boolean supportsUnsafe(); @Override StatefulHash createNew(); @Override boolean supportsIncremental(); @Override void reset(); @Override void update(byte[] input); @Override void update(byte[] input, int index, int length); @Override void update(ByteBuffer input); @Override void update(long address, long length); @Override byte[] getBytes(); @Override int getBytes(byte[] output, int index, int maxLength); @Override byte getByte(); @Override short getShort(); @Override int getInt(); @Override long getLong();  }