Class GordianXMSSKeySpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianXMSSKeySpec
XMSS KeySpec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumXMSS digestType.static enumXMSS Height.static enumXMSS keyTypes.static enumXMSSMT Layers. -
Constructor Summary
ConstructorsConstructorDescriptionGordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Constructor.GordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Constructor.GordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSKeyType pKeyType, GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanObtain the digestType.Obtain the height.Obtain the keyType.Obtain the layers.inthashCode()booleanisHigh()Is the keySpec high (height > 15)?booleanisMT()Is this key MT?booleanisValid()Is the keySpec valid?static List<GordianXMSSKeySpec> Obtain a list of all possible specs.static List<GordianXMSSKeySpec> Obtain a list of all possible specs.toString()static GordianXMSSKeySpecxmss(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Create XMSS keySpec.static GordianXMSSKeySpecxmssmt(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Create XMSS keySpec.
-
Constructor Details
-
GordianXMSSKeySpec
public GordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Constructor.- Parameters:
pDigestType- the digestTypepHeight- the height
-
GordianXMSSKeySpec
public GordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Constructor.- Parameters:
pDigestType- the digestTypepHeight- the heightpLayers- the layers
-
GordianXMSSKeySpec
public GordianXMSSKeySpec(GordianXMSSKeySpec.GordianXMSSKeyType pKeyType, GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Constructor.- Parameters:
pKeyType- the keyTypepDigestType- the digestTypepHeight- the heightpLayers- the layers
-
-
Method Details
-
isMT
public boolean isMT()Is this key MT?- Returns:
- true/false
-
getKeyType
Obtain the keyType.- Returns:
- the keyType
-
getDigestType
Obtain the digestType.- Returns:
- the digestType
-
getHeight
Obtain the height.- Returns:
- the height
-
getLayers
Obtain the layers.- Returns:
- the layers
-
isValid
public boolean isValid()Is the keySpec valid?- Returns:
- true/false.
-
isHigh
public boolean isHigh()Is the keySpec high (height > 15)?- Returns:
- true/false.
-
xmss
public static GordianXMSSKeySpec xmss(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Create XMSS keySpec.- Parameters:
pDigestType- the digestTypepHeight- the height- Returns:
- the keySpec
-
xmssmt
public static GordianXMSSKeySpec xmssmt(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Create XMSS keySpec.- Parameters:
pDigestType- the digestTypepHeight- the heightpLayers- the layers- Returns:
- the keySpec
-
toString
-
equals
-
hashCode
public int hashCode() -
listPossibleKeySpecs
Obtain a list of all possible specs.- Returns:
- the list
-
listPossibleKeySpecs
public static List<GordianXMSSKeySpec> listPossibleKeySpecs(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType) Obtain a list of all possible specs.- Parameters:
pDigestType- the digestType- Returns:
- the list
-