Enum Class GordianCipherMode
java.lang.Object
java.lang.Enum<GordianCipherMode>
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianCipherMode
- All Implemented Interfaces:
Serializable,Comparable<GordianCipherMode>,Constable
Cipher Modes. Available algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCBC Mode.CCM Mode.CFB Mode.CFB8 Mode.EAX Mode.ECB Mode.G3413CBC Mode.G3413CFB Mode.G3413CTR Mode.G3413OFB Mode.GCFB Mode.GCM Mode.GCMSIV Mode.GOFB Mode.KCCM Mode.KCTR Mode.KGCM Mode.OCB Mode.OFB Mode.OFB8 Mode.SIC(CTR) Mode. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan we work on a short block?booleanDoes the mode require padding?booleanisAAD()Is this an AAD mode?booleanneedsIV()Does the mode need an IV?booleanNeeds re-initialisation after final.booleanDoes the mode require a standard block?booleanvalidForSymKey(GordianSymKeySpec pKeySpec) Is this mode valid for the symKeySpec?static GordianCipherModeReturns the enum constant of this class with the specified name.static GordianCipherMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ECB
ECB Mode. -
CBC
CBC Mode. -
SIC
SIC(CTR) Mode. -
CFB
CFB Mode. -
CFB8
CFB8 Mode. -
OFB
OFB Mode. -
OFB8
OFB8 Mode. -
EAX
EAX Mode. -
CCM
CCM Mode. -
GCM
GCM Mode. -
OCB
OCB Mode. -
GCFB
GCFB Mode. -
GOFB
GOFB Mode. -
KCTR
KCTR Mode. -
KCCM
KCCM Mode. -
KGCM
KGCM Mode. -
G3413CBC
G3413CBC Mode. -
G3413CFB
G3413CFB Mode. -
G3413OFB
G3413OFB Mode. -
G3413CTR
G3413CTR Mode. -
GCMSIV
GCMSIV Mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
hasPadding
public boolean hasPadding()Does the mode require padding?- Returns:
- true/false
-
isAAD
public boolean isAAD()Is this an AAD mode?- Returns:
- true/false
-
allowShortBlock
public boolean allowShortBlock()Can we work on a short block?- Returns:
- true/false
-
needsStdBlock
public boolean needsStdBlock()Does the mode require a standard block?- Returns:
- true/false
-
validForSymKey
Is this mode valid for the symKeySpec?- Parameters:
pKeySpec- the keySpec- Returns:
- true/false
-
needsIV
public boolean needsIV()Does the mode need an IV?- Returns:
- true/false
-
needsReInitialisation
public boolean needsReInitialisation()Needs re-initialisation after final.- Returns:
- true/false
-