Class ReflectedLongCrc

All Implemented Interfaces:
Hash, IncrementalLongHash, StatelessHash, StatelessLongHash

final class ReflectedLongCrc extends AbstractLongCrc
Implements a "reflected" LSB-first long-width CRC function using a lookup table.
  • Constructor Details

    • ReflectedLongCrc

      ReflectedLongCrc(String algorithm, int width, long poly, long init, long xorOut)
  • Method Details

    • initial

      protected long initial()
      Description copied from class: AbstractIncrementalLongHash
      The initial state of the hash function, which is the same as the output value for an empty input sequence.
      Overrides:
      initial in class AbstractLongCrc
      Returns:
      the initial hash state/output
    • resumeRaw

      protected long resumeRaw(long crc, byte[] input, int index, int length)
      Specified by:
      resumeRaw in class AbstractLongCrc