Class MD4

    • Constructor Detail

      • MD4

        public MD4()
    • Method Detail

      • engineReset

        public void engineReset()
        Resets this object disregarding any temporary data present at the time of the invocation of this call.
        Specified by:
        engineReset in class MessageDigestSpi
      • engineUpdate

        public void engineUpdate​(byte b)
        Continues an MD4 message digest using the input byte.
        Specified by:
        engineUpdate in class MessageDigestSpi
      • engineUpdate

        public void engineUpdate​(byte[] input,
                                 int offset,
                                 int len)
        MD4 block update operation.

        Continues an MD4 message digest operation, by filling the buffer, transform(ing) data in 512-bit message block(s), updating the variables context and count, and leaving (buffering) the remaining bytes in buffer for the next update or finish.

        Specified by:
        engineUpdate in class MessageDigestSpi
        Parameters:
        input - input block
        offset - start of meaningful bytes in input
        len - count of bytes in input block to consider
      • engineDigest

        public byte[] engineDigest()
        Completes the hash computation by performing final operations such as padding. At the return of this engineDigest, the MD engine is reset.
        Specified by:
        engineDigest in class MessageDigestSpi
        Returns:
        the array of bytes for the resulting hash value.