java.lang.Object
java.lang.Enum<GordianSipHashSpec>
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianSipHashSpec
All Implemented Interfaces:
Serializable, Comparable<GordianSipHashSpec>, Constable

public enum GordianSipHashSpec extends Enum<GordianSipHashSpec>
SipHashSpec.
  • Enum Constant Details

  • Method Details

    • values

      public static GordianSipHashSpec[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GordianSipHashSpec valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOutLength

      public GordianLength getOutLength()
      Obtain the output length.
      Returns:
      the length
    • isLong

      public boolean isLong()
      Is this a long output?
      Returns:
      true/false
    • getCompression

      public int getCompression()
      Obtain the number of compression rounds.
      Returns:
      the number of rounds
    • getFinalisation

      public int getFinalisation()
      Obtain the number of finalization rounds.
      Returns:
      the number of rounds
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GordianSipHashSpec>