java.lang.Object
org.seppiko.commons.utils.crypto.CRC64ECMA182
- All Implemented Interfaces:
Checksum
CRC64 with ECMA182
- Author:
- Leonard Woo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate CRC64 object and initialization.CRC64ECMA182(long crc) Create CRC64 object and initialization. -
Method Summary
-
Constructor Details
-
CRC64ECMA182
public CRC64ECMA182()Create CRC64 object and initialization. -
CRC64ECMA182
public CRC64ECMA182(long crc) Create CRC64 object and initialization.- Parameters:
crc- initialize value
-
-
Method Details
-
update
public void update(int b) Updates the CRC64 checksum with the specified byte. -
update
public void update(byte[] b, int off, int len) throws NullPointerException, ArrayIndexOutOfBoundsException Updates the CRC64 checksum with the specified array of bytes.- Specified by:
updatein interfaceChecksum- Parameters:
b- dataoff- data init offsetlen- data length- Throws:
NullPointerException- data is nullArrayIndexOutOfBoundsException- if off is negative, or len is negative, or off+len is * negative or greater than the length of the array b
-
getValue
public long getValue()Returns CRC64 value. -
reset
public void reset()Resets CRC64 to initial value.
-