Class GordianMacSpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianMacSpec
- All Implemented Interfaces:
GordianIdSpec,GordianKeySpec
Mac Specification.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGordianMacSpec(GordianMacType pMacType, GordianLength pKeyLength) vmpcMac/raw poly1305Mac Constructor.GordianMacSpec(GordianMacType pMacType, GordianLength pKeyLength, GordianLength pLength) zucMac Constructor.GordianMacSpec(GordianMacType pMacType, GordianLength pKeyLength, GordianDigestSpec pDigestSpec) hMac/skeinMac Constructor.GordianMacSpec(GordianMacType pMacType, GordianSymKeySpec pKeySpec) gMac/Poly1305 Constructor.GordianMacSpec(GordianMacType pMacType, GordianSipHashSpec pSpec) sipHash Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanObtain DigestSpec.intgetIVLen()Obtain the IV length.Obtain the keyLength.Obtain MacLength.Obtain Mac Type.Obtain SipHashSpec.Obtain SubSpec.Obtain SymKeySpec.inthashCode()booleanisValid()Is the macSpec valid?booleanisXof()Is this a Xof Mac?toString()
-
Field Details
-
SEP
The Separator.- See Also:
-
-
Constructor Details
-
GordianMacSpec
public GordianMacSpec(GordianMacType pMacType, GordianLength pKeyLength, GordianDigestSpec pDigestSpec) hMac/skeinMac Constructor.- Parameters:
pMacType- the macTypepKeyLength- the keyLengthpDigestSpec- the digestSpec
-
GordianMacSpec
gMac/Poly1305 Constructor.- Parameters:
pMacType- the macTypepKeySpec- the keySpec
-
GordianMacSpec
zucMac Constructor.- Parameters:
pMacType- the macTypepKeyLength- the keyLengthpLength- the length
-
GordianMacSpec
sipHash Constructor.- Parameters:
pMacType- the macTypepSpec- the SipHashSpec
-
GordianMacSpec
vmpcMac/raw poly1305Mac Constructor.- Parameters:
pMacType- the macTypepKeyLength- the keyLength
-
-
Method Details
-
getMacType
Obtain Mac Type.- Returns:
- the MacType
-
getKeyLength
Description copied from interface:GordianKeySpecObtain the keyLength.- Specified by:
getKeyLengthin interfaceGordianKeySpec- Returns:
- the keyLength
-
getSubSpec
Obtain SubSpec.- Returns:
- the SubSpec
-
isValid
public boolean isValid()Is the macSpec valid?- Returns:
- true/false.
-
getDigestSpec
Obtain DigestSpec.- Returns:
- the DigestSpec
-
getSymKeySpec
Obtain SymKeySpec.- Returns:
- the SymKeySpec
-
getSipHashSpec
Obtain SipHashSpec.- Returns:
- the Spec
-
getMacLength
Obtain MacLength.- Returns:
- the Length
-
getIVLen
public int getIVLen()Obtain the IV length.- Returns:
- the IV Length
-
isXof
public boolean isXof()Is this a Xof Mac?- Returns:
- true/false
-
toString
-
equals
-
hashCode
public int hashCode()
-