Class HmacMd5

java.lang.Object
com.sshtools.j2ssh.transport.hmac.HmacMd5
All Implemented Interfaces:
SshHmac
Direct Known Subclasses:
HmacMd596

public class HmacMd5 extends Object implements SshHmac
Version:
$Revision: 1.15 $
Author:
$author$
  • Constructor Details

    • HmacMd5

      public HmacMd5()
      Creates a new HmacMd5 object.
  • Method Details

    • 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:
    • init

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

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