Interface Mac

All Superinterfaces:
AlgorithmNameProvider, MacInformation
All Known Implementing Classes:
BaseMac

public interface Mac extends MacInformation
Message Authentication Code for use in SSH. It usually wraps a javax.crypto.Mac class.
  • Method Details

    • init

      void init(byte[] key) throws Exception
      Throws:
      Exception
    • update

      default void update(byte[] buf)
    • update

      void update(byte[] buf, int start, int len)
    • updateUInt

      void updateUInt(long foo)
    • doFinal

      default byte[] doFinal() throws Exception
      Throws:
      Exception
    • doFinal

      default void doFinal(byte[] buf) throws Exception
      Throws:
      Exception
    • doFinal

      void doFinal(byte[] buf, int offset) throws Exception
      Throws:
      Exception
    • equals

      static boolean equals(byte[] a1, int a1Offset, byte[] a2, int a2Offset, int length)