Class HmacT64

java.lang.Object
com.hierynomus.security.mac.HmacT64
All Implemented Interfaces:
Mac

public class HmacT64 extends 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).
  • Field Details

  • Constructor Details

    • HmacT64

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

    • init

      public void init(byte[] key) throws SecurityException
      Specified by:
      init in interface Mac
      Throws:
      SecurityException
    • 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