Class HmacT64

  • All Implemented Interfaces:
    Mac

    public class HmacT64
    extends java.lang.Object
    implements Mac
    This is an implementation of the HMACT64 keyed hashing algorithm. HMACT64 is defined by Luke Leighton as a modified HMAC-MD5 (RFC 2104) in which the key is truncated at 64 bytes (rather than being hashed via MD5).
    • Constructor Summary

      Constructors 
      Constructor Description
      HmacT64​(MessageDigest md5)
      Creates an HMACT64 instance which uses the given secret key material.
    • Method Summary

      Modifier and Type Method Description
      byte[] doFinal()  
      void init​(byte[] key)  
      void reset()  
      void update​(byte b)  
      void update​(byte[] array)  
      void update​(byte[] array, int offset, int length)  
      • Methods inherited from class java.lang.Object

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

      • HmacT64

        public HmacT64​(MessageDigest md5)
        Creates an HMACT64 instance which uses the given secret key material.
    • Method Detail

      • doFinal

        public byte[] doFinal()
        Specified by:
        doFinal in interface Mac
      • update

        public void update​(byte b)
        Specified by:
        update in interface Mac
      • update

        public void update​(byte[] array)
        Specified by:
        update in interface Mac
      • update

        public void update​(byte[] array,
                           int offset,
                           int length)
        Specified by:
        update in interface Mac
      • reset

        public void reset()
        Specified by:
        reset in interface Mac