Class HMACSHA1

  • All Implemented Interfaces:
    MAC
    Direct Known Subclasses:
    HMACSHA196

    public class HMACSHA1
    extends java.lang.Object
    implements MAC
    • Constructor Summary

      Constructors 
      Constructor Description
      HMACSHA1()  
    • Constructor Detail

      • HMACSHA1

        public HMACSHA1()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MAC
      • isEtM

        public boolean isEtM()
        Specified by:
        isEtM in interface MAC
      • setH

        protected void setH​(java.security.MessageDigest md)
      • getBlockSize

        public int getBlockSize()
      • init

        public void init​(byte[] key)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        public void update​(int i)
      • update

        public void update​(byte[] foo,
                           int s,
                           int l)
      • doFinal

        public void doFinal​(byte[] buf,
                            int offset)