Class GeneralDigest

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.crypto.Digest , io.anyline.nfc.bouncycastle.crypto.ExtendedDigest , io.anyline.nfc.bouncycastle.util.Memoable

    
    public abstract class GeneralDigest
     implements ExtendedDigest, Memoable
                        

    base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void update(byte in) update the message digest with a single byte.
      void update(Array<byte> in, int inOff, int len) update the message digest with a block of bytes.
      void finish()
      void reset() reset the digest back to it's initial state.
      int getByteLength() Return the size in bytes of the internal buffer the digest applies it's compression function to.
      • Methods inherited from class io.anyline.nfc.bouncycastle.util.Memoable

        copy, reset
      • Methods inherited from class io.anyline.nfc.bouncycastle.crypto.Digest

        doFinal, getAlgorithmName, getDigestSize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • update

         void update(byte in)

        update the message digest with a single byte.

        Parameters:
        in - the input byte to be entered.
      • update

         void update(Array<byte> in, int inOff, int len)

        update the message digest with a block of bytes.

        Parameters:
        in - the byte array containing the data.
        inOff - the offset into the byte array where the data starts.
        len - the length of the data.
      • reset

         void reset()

        reset the digest back to it's initial state.

      • getByteLength

         int getByteLength()

        Return the size in bytes of the internal buffer the digest applies it's compression function to.

        Returns:

        byte length of the digests internal buffer.