java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianMacParameters

public final class GordianMacParameters extends Object
Mac Parameters.
  • Method Details

    • key

      public static GordianMacParameters key(GordianKey<GordianMacSpec> pKey)
      Generate keyOnly Parameters.
      Parameters:
      pKey - the key
      Returns:
      the macParameters
    • keyAndNonce

      public static GordianMacParameters keyAndNonce(GordianKey<GordianMacSpec> pKey, byte[] pNonce)
      Obtain keyAndNonce Parameters.
      Parameters:
      pKey - the key
      pNonce - the nonce
      Returns:
      the macParameters
    • keyWithRandomNonce

      public static GordianMacParameters keyWithRandomNonce(GordianKey<GordianMacSpec> pKey)
      Obtain keyAndRandomNonce Parameters.
      Parameters:
      pKey - the key
      Returns:
      the macParameters
    • getKey

      public GordianKey<GordianMacSpec> getKey()
      Obtain the key.
      Returns:
      the key
    • getNonce

      public byte[] getNonce()
      Obtain the Nonce.
      Returns:
      the nonce
    • randomNonce

      public boolean randomNonce()
      Is the nonce randomly generated?
      Returns:
      true/false
    • getPersonal

      public byte[] getPersonal()
      Obtain the Personalisation.
      Returns:
      the personalisation
    • getOutputLength

      public long getOutputLength()
      Obtain the Output length.
      Returns:
      the outLength
    • getTreeLeafLen

      public int getTreeLeafLen()
      Obtain the treeLeafLength.
      Returns:
      the leafLength
    • getTreeFanOut

      public short getTreeFanOut()
      Obtain the treeFanOut.
      Returns:
      the fanOut
    • getTreeMaxDepth

      public short getTreeMaxDepth()
      Obtain the treeMaxDepth.
      Returns:
      the maxDepth