Class GordianStreamKeySpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianStreamKeySpec
- All Implemented Interfaces:
GordianIdSpec,GordianKeySpec
GordianKnot StreamKeySpec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBlakeXof Key styles.static enumChaCha20 Key styles.static enumElephant Key styles.static enumISAP Key styles.static enumRomulus Key styles.static enumSalsa20 Key styles.static enumSkeinXof Key styles.static enumSparkle Key styles.static interfaceSubKeyType.static enumVMPC Key styles. -
Constructor Summary
ConstructorsConstructorDescriptionGordianStreamKeySpec(GordianStreamKeyType pStreamKeyType, GordianLength pKeyLength) Constructor.GordianStreamKeySpec(GordianStreamKeyType pStreamKeyType, GordianLength pKeyLength, GordianStreamKeySpec.GordianStreamSubKeyType pSubKeyType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintObtain the IV Length.Obtain the keyLength.Obtain streamKey Type.Obtain subKey Type.inthashCode()booleanisAEAD()Is this keySpec an AEAD keySpec?booleanisValid()Is the keySpec valid?booleanneedsIV()Does this cipher need an IV?booleanDoes this keySpec optionally support AEAD?toString()
-
Constructor Details
-
GordianStreamKeySpec
Constructor.- Parameters:
pStreamKeyType- the streamKeyTypepKeyLength- the keyLength
-
GordianStreamKeySpec
public GordianStreamKeySpec(GordianStreamKeyType pStreamKeyType, GordianLength pKeyLength, GordianStreamKeySpec.GordianStreamSubKeyType pSubKeyType) Constructor.- Parameters:
pStreamKeyType- the streamKeyTypepKeyLength- the keyLengthpSubKeyType- the subKeyType
-
-
Method Details
-
getStreamKeyType
Obtain streamKey Type.- Returns:
- the streamKeyType
-
getKeyLength
Description copied from interface:GordianKeySpecObtain the keyLength.- Specified by:
getKeyLengthin interfaceGordianKeySpec- Returns:
- the keyLength
-
getSubKeyType
Obtain subKey Type.- Returns:
- the subKeyType
-
isValid
public boolean isValid()Is the keySpec valid?- Returns:
- true/false.
-
needsIV
public boolean needsIV()Does this cipher need an IV?- Returns:
- true/false
-
toString
-
getIVLength
public int getIVLength()Obtain the IV Length.- Returns:
- the IV length.
-
supportsAEAD
public boolean supportsAEAD()Does this keySpec optionally support AEAD?- Returns:
- true/false
-
isAEAD
public boolean isAEAD()Is this keySpec an AEAD keySpec?- Returns:
- true/false
-
equals
-
hashCode
public int hashCode()
-