public interface GordianMacParamsBuilder
MacParams Builder.
  • Method Details

    • setKey

      Set the key.
      Parameters:
      pKey - the key
      Returns:
      the Builder
    • setNonce

      GordianMacParamsBuilder setNonce(byte[] pNonce)
      Set the nonce.
      Parameters:
      pNonce - the nonce
      Returns:
      the Builder
    • withRandomNonce

      GordianMacParamsBuilder withRandomNonce()
      Use random nonce.
      Returns:
      the Builder
    • setPersonalisation

      GordianMacParamsBuilder setPersonalisation(byte[] pPersonal)
      Set the personalisation.
      Parameters:
      pPersonal - the personalisation
      Returns:
      the Builder
    • setOutputLength

      GordianMacParamsBuilder setOutputLength(long pOutLen)
      Set the output length.
      Parameters:
      pOutLen - the outputLen
      Returns:
      the Builder
    • setTreeConfig

      GordianMacParamsBuilder setTreeConfig(int pFanOut, int pMaxDepth, int pLeafLen)
      Set the treeConfig.
      Parameters:
      pFanOut - the fanout.
      pMaxDepth - the maxDepth.
      pLeafLen - the leafLength.
      Returns:
      the Builder
    • build

      Build the parameters.
      Returns:
      the parameters
    • key

      Generate keyOnly Parameters.
      Parameters:
      pKey - the key
      Returns:
      the macParameters
    • keyAndNonce

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

      GordianMacParams keyWithRandomNonce(GordianKey<GordianMacSpec> pKey)
      Obtain keyAndRandomNonce Parameters.
      Parameters:
      pKey - the key
      Returns:
      the macParameters