java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianSymKeySpec
All Implemented Interfaces:
GordianIdSpec, GordianKeySpec

public class GordianSymKeySpec extends Object implements GordianKeySpec
SymKey specification.
  • Constructor Details

    • GordianSymKeySpec

      public GordianSymKeySpec(GordianSymKeyType pSymKeyType, GordianLength pKeyLength)
      Constructor.
      Parameters:
      pSymKeyType - the symKeyType
      pKeyLength - the keyLength
    • GordianSymKeySpec

      public GordianSymKeySpec(GordianSymKeyType pSymKeyType, GordianLength pBlockLength, GordianLength pKeyLength)
      Constructor.
      Parameters:
      pSymKeyType - the symKeyType
      pBlockLength - the stateLength
      pKeyLength - the keyLength
  • Method Details

    • getSymKeyType

      public GordianSymKeyType getSymKeyType()
      Obtain symKey Type.
      Returns:
      the symKeyType
    • getBlockLength

      public GordianLength getBlockLength()
      Obtain Block Length.
      Returns:
      the blockLength
    • getKeyLength

      public GordianLength getKeyLength()
      Description copied from interface: GordianKeySpec
      Obtain the keyLength.
      Specified by:
      getKeyLength in interface GordianKeySpec
      Returns:
      the keyLength
    • getHalfBlockLength

      public GordianLength getHalfBlockLength()
      Obtain HalfBlock length.
      Returns:
      the Length
    • isValid

      public boolean isValid()
      Is the keySpec valid?
      Returns:
      true/false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object