Class NoneHmac

java.lang.Object
com.sshtools.common.ssh.components.NoneHmac
All Implemented Interfaces:
Component, SshComponent, SshHmac, SecureComponent

public class NoneHmac extends Object implements SshHmac
  • Constructor Details

    • NoneHmac

      public NoneHmac()
  • Method Details

    • getMacSize

      public int getMacSize()
      Description copied from interface: SshHmac
      The size of the message digest output by the hmac algorithm
      Specified by:
      getMacSize in interface SshHmac
      Returns:
    • getMacLength

      public int getMacLength()
      Description copied from interface: SshHmac
      The length of the message digest output by this implementation (maybe lower than mac size);
      Specified by:
      getMacLength in interface SshHmac
      Returns:
    • generate

      public void generate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start)
      Specified by:
      generate in interface SshHmac
    • init

      public void init(byte[] keydata) throws SshException
      Specified by:
      init in interface SshHmac
      Throws:
      SshException
    • verify

      public boolean verify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset)
      Specified by:
      verify in interface SshHmac
    • update

      public void update(byte[] b)
      Specified by:
      update in interface SshHmac
    • doFinal

      public byte[] doFinal()
      Specified by:
      doFinal in interface SshHmac
    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface SecureComponent
      Specified by:
      getAlgorithm in interface SshComponent
      Specified by:
      getAlgorithm in interface SshHmac
    • isETM

      public boolean isETM()
      Specified by:
      isETM in interface SshHmac
    • getSecurityLevel

      public SecurityLevel getSecurityLevel()
      Specified by:
      getSecurityLevel in interface SecureComponent
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface SecureComponent