Class MD5RollingGen


  • public class MD5RollingGen
    extends MD5Gen
    MD5 hash generator based on rolling step-by-step algorithm. Use it to prevent heap overflow
    • Constructor Detail

      • MD5RollingGen

        public MD5RollingGen()
    • Method Detail

      • update

        public MD5Gen update​(byte[] input)
        Reset and calculate new hash from input
        Overrides:
        update in class MD5Gen
        Parameters:
        input - Input bytes
        Returns:
        Reference to this object
      • reset

        public void reset()
        Start new calculation
      • addBytesPart

        public MD5RollingGen addBytesPart​(byte[] bytesPart)
        Add part of bytes to calculate MD5 hash
        Parameters:
        bytesPart - Part of bytes
        Returns:
        Reference to this object