java.lang.Object
org.seppiko.commons.utils.crypto.CRC24
- All Implemented Interfaces:
Checksum
CRC-24 implementation as described in RFC4880.
- Author:
- Leonard Woo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetValue()Returns the current checksum value.voidreset()Resets the checksum to its initial value.voidupdate(byte[] b, int off, int len) Updates the current checksum with the specified array of bytes.voidupdate(int b) Updates the current checksum with the specified byte.
-
Constructor Details
-
CRC24
public CRC24()Create CRC-24 instance.
-
-
Method Details
-
update
public void update(int b) Updates the current checksum with the specified byte. -
update
public void update(byte[] b, int off, int len) Updates the current checksum with the specified array of bytes. -
getValue
public long getValue()Returns the current checksum value. -
reset
public void reset()Resets the checksum to its initial value.
-