Enum Class GordianSipHashSpec
java.lang.Object
java.lang.Enum<GordianSipHashSpec>
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianSipHashSpec
- All Implemented Interfaces:
Serializable,Comparable<GordianSipHashSpec>,Constable
SipHashSpec.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSipHash-2-4.SipHash-4-8.SipHash128-2-4.SipHash128-4-8. -
Method Summary
Modifier and TypeMethodDescriptionintObtain the number of compression rounds.intObtain the number of finalization rounds.Obtain the output length.booleanisLong()Is this a long output?toString()static GordianSipHashSpecReturns the enum constant of this class with the specified name.static GordianSipHashSpec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIPHASH_2_4
SipHash-2-4. -
SIPHASH128_2_4
SipHash128-2-4. -
SIPHASH_4_8
SipHash-4-8. -
SIPHASH128_4_8
SipHash128-4-8.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
- Overrides:
toStringin classEnum<GordianSipHashSpec>
-