Class BCMac

java.lang.Object
com.hierynomus.security.bc.BCMac
All Implemented Interfaces:
Mac

public class BCMac extends Object implements Mac
  • Field Details

    • lookup

      private static Map<String,Factory<org.bouncycastle.crypto.Mac>> lookup
    • mac

      private final org.bouncycastle.crypto.Mac mac
  • Constructor Details

  • Method Details

    • getMacFactory

      private Factory<org.bouncycastle.crypto.Mac> getMacFactory(String name)
    • init

      public void init(byte[] key)
      Specified by:
      init in interface Mac
    • update

      public void update(byte b)
      Specified by:
      update in interface Mac
    • update

      public void update(byte[] array)
      Specified by:
      update in interface Mac
    • update

      public void update(byte[] array, int offset, int length)
      Specified by:
      update in interface Mac
    • doFinal

      public byte[] doFinal()
      Specified by:
      doFinal in interface Mac
    • reset

      public void reset()
      Specified by:
      reset in interface Mac