Class HmacSha

  • All Implemented Interfaces:
    SshHmac
    Direct Known Subclasses:
    HmacSha96

    public class HmacSha
    extends java.lang.Object
    implements SshHmac
    Version:
    $Revision: 1.20 $
    Author:
    $author$
    • Constructor Summary

      Constructors 
      Constructor Description
      HmacSha()
      Creates a new HmacSha object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] generate​(long sequenceNo, byte[] data, int offset, int len)  
      int getMacLength()  
      void init​(byte[] keydata)  
      boolean verify​(long sequenceNo, byte[] data)  
      • Methods inherited from class java.lang.Object

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

      • HmacSha

        public HmacSha()
        Creates a new HmacSha object.
    • Method Detail

      • getMacLength

        public int getMacLength()
        Specified by:
        getMacLength in interface SshHmac
        Returns:
      • generate

        public byte[] generate​(long sequenceNo,
                               byte[] data,
                               int offset,
                               int len)
        Specified by:
        generate in interface SshHmac
        Parameters:
        sequenceNo -
        data -
        offset -
        len -
        Returns:
      • verify

        public boolean verify​(long sequenceNo,
                              byte[] data)
        Specified by:
        verify in interface SshHmac
        Parameters:
        sequenceNo -
        data -
        Returns: