Package generic.hash

Class FNV1a32MessageDigest

    • Constructor Detail

      • FNV1a32MessageDigest

        public FNV1a32MessageDigest​(int initialVector)
      • FNV1a32MessageDigest

        public FNV1a32MessageDigest()
    • Method Detail

      • update

        public void update​(byte[] input,
                           int offset,
                           int len)
        Description copied from class: AbstractMessageDigest
        You REALLY want to override this method.
        Specified by:
        update in interface MessageDigest
        Overrides:
        update in class AbstractMessageDigest
        Parameters:
        input - the array of bytes
        offset - the offset to start from in the array of bytes
        len - the number of bytes to use, starting at offset
      • update

        public void update​(byte[] input,
                           int offset,
                           int len,
                           TaskMonitor monitor)
        Description copied from class: AbstractMessageDigest
        You REALLY want to override this method too.
        Specified by:
        update in interface MessageDigest
        Overrides:
        update in class AbstractMessageDigest
        Parameters:
        input - the array of bytes
        offset - the offset to start from in the array of bytes
        len - the number of bytes to use, starting at offset
        monitor - the monitor to check during loops
      • update

        public void update​(byte input)
        Description copied from interface: MessageDigest
        Updates the digest using the specified byte.
        Parameters:
        input - the byte with which to update the digest
      • digest

        public int digest​(byte[] buf,
                          int offset,
                          int len)
        Description copied from interface: MessageDigest
        Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.
        Parameters:
        buf - output buffer for the computed digest
        offset - offset into the output buffer to begin storing the digest
        len - number of bytes within buf allocated for the digest
        Returns:
        the number of bytes placed into buf
      • digestLong

        public long digestLong()
        Description copied from interface: MessageDigest
        Completes the hash computation by performing final operations such as padding, and returns (up to) the first 8 bytes as a big-endian long value. The digest is reset after this call is made.
        Returns:
        the digest value as a long value
      • reset

        public void reset()
        Description copied from interface: MessageDigest
        Resets the digest for further use.