Class GordianDigestSpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.digest.GordianDigestSpec
- All Implemented Interfaces:
GordianIdSpec
Digest Specification.
-
Constructor Summary
ConstructorsConstructorDescriptionGordianDigestSpec(GordianDigestType pDigestType) Constructor.GordianDigestSpec(GordianDigestType pDigestType, GordianLength pLength) Constructor.GordianDigestSpec(GordianDigestType pDigestType, GordianLength pLength, Boolean pXofMode) Constructor.GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength) Constructor.GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength, Boolean pXofMode) Constructor. -
Method Summary
-
Constructor Details
-
GordianDigestSpec
Constructor.- Parameters:
pDigestType- the digestType
-
GordianDigestSpec
Constructor.- Parameters:
pDigestType- the digestTypepLength- the length
-
GordianDigestSpec
Constructor.- Parameters:
pDigestType- the digestTypepLength- the lengthpXofMode- is this an explicit Xof?
-
GordianDigestSpec
public GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength) Constructor.- Parameters:
pDigestType- the digestTypepState- the digestStatepLength- the length
-
GordianDigestSpec
public GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength, Boolean pXofMode) Constructor.- Parameters:
pDigestType- the digestTypepState- the digestStatepLength- the lengthpXofMode- is this an explicit Xof?
-
-
Method Details
-
getDigestType
Obtain Digest Type.- Returns:
- the DigestType
-
getSubSpec
Obtain DigestSubSpec.- Returns:
- the SubSpec
-
getDigestState
Obtain DigestState.- Returns:
- the State
-
getDigestLength
Obtain Digest Length.- Returns:
- the Length
-
isXofMode
Is the digestSpec a Xof mode?- Returns:
- true/false.
-
isXof
Is the digestSpec a Xof?- Returns:
- true/false.
-
isValid
public boolean isValid()Is the digestSpec valid?- Returns:
- true/false.
-
isSha2Hybrid
public boolean isSha2Hybrid()Is this a sha2 hybrid state.- Returns:
- true/false
-
toString
-
equals
-
hashCode
public int hashCode()
-