Class HMAC

  • All Implemented Interfaces:
    Digest

    public final class HMAC
    extends java.lang.Object
    implements Digest
    HMAC.
    • Constructor Summary

      Constructors 
      Constructor Description
      HMAC​(Digest md, byte[] key, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void digest​(byte[] out)  
      void digest​(byte[] out, int off)  
      int getDigestLength()  
      void reset()  
      void update​(byte b)  
      void update​(byte[] b)  
      void update​(byte[] b, int off, int len)  
      • Methods inherited from class java.lang.Object

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

      • HMAC

        public HMAC​(Digest md,
                    byte[] key,
                    int size)
    • Method Detail

      • getDigestLength

        public final int getDigestLength()
        Specified by:
        getDigestLength in interface Digest
      • update

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

        public final void update​(byte[] b)
        Specified by:
        update in interface Digest
      • update

        public final void update​(byte[] b,
                                 int off,
                                 int len)
        Specified by:
        update in interface Digest
      • reset

        public final void reset()
        Specified by:
        reset in interface Digest
      • digest

        public final void digest​(byte[] out)
        Specified by:
        digest in interface Digest
      • digest

        public final void digest​(byte[] out,
                                 int off)
        Specified by:
        digest in interface Digest