Class GordianSymKeySpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianSymKeySpec
- All Implemented Interfaces:
GordianIdSpec,GordianKeySpec
SymKey specification.
-
Constructor Summary
ConstructorsConstructorDescriptionGordianSymKeySpec(GordianSymKeyType pSymKeyType, GordianLength pKeyLength) Constructor.GordianSymKeySpec(GordianSymKeyType pSymKeyType, GordianLength pBlockLength, GordianLength pKeyLength) Constructor. -
Method Summary
-
Constructor Details
-
GordianSymKeySpec
Constructor.- Parameters:
pSymKeyType- the symKeyTypepKeyLength- the keyLength
-
GordianSymKeySpec
public GordianSymKeySpec(GordianSymKeyType pSymKeyType, GordianLength pBlockLength, GordianLength pKeyLength) Constructor.- Parameters:
pSymKeyType- the symKeyTypepBlockLength- the stateLengthpKeyLength- the keyLength
-
-
Method Details
-
getSymKeyType
Obtain symKey Type.- Returns:
- the symKeyType
-
getBlockLength
Obtain Block Length.- Returns:
- the blockLength
-
getKeyLength
Description copied from interface:GordianKeySpecObtain the keyLength.- Specified by:
getKeyLengthin interfaceGordianKeySpec- Returns:
- the keyLength
-
getHalfBlockLength
Obtain HalfBlock length.- Returns:
- the Length
-
isValid
public boolean isValid()Is the keySpec valid?- Returns:
- true/false.
-
toString
-
equals
-
hashCode
public int hashCode()
-