Enum Class GordianSLHDSASpec
java.lang.Object
java.lang.Enum<GordianSLHDSASpec>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianSLHDSASpec
- All Implemented Interfaces:
Serializable,Comparable<GordianSLHDSASpec>,Constable
SphincsPlus KeySpecs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSHA2 128f.SHA2 128f hash.SHA2 128s.SHA2 128s hash.SHA2 192f.SHA2 192f hash.SHA2 192s.SHA2 192s hash.SHA2 256f.SHA2 256f hash.SHA2 256s.SHA2 256s hash.SHAKE 128f.SHAKE 128f hash.SHAKE 128s.SHAKE 128s hash.SHAKE 192f.SHAKE 192f hash.SHAKE 192s.SHAKE 192s hash.SHAKE 256f.SHAKE 256f hash.SHAKE 256s.SHAKE 256s hash. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifierObtain SLHDSA algorithm Identifier.org.bouncycastle.pqc.crypto.slhdsa.SLHDSAParametersObtain SLHDSA Parameters.org.bouncycastle.jcajce.spec.SLHDSAParameterSpecObtain SPHINCSPlus ParameterSpec.booleanisHash()Is this a hash signer?static GordianSLHDSASpecReturns the enum constant of this class with the specified name.static GordianSLHDSASpec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHA128F
SHA2 128f. -
SHA128S
SHA2 128s. -
SHA192F
SHA2 192f. -
SHA192S
SHA2 192s. -
SHA256F
SHA2 256f. -
SHA256S
SHA2 256s. -
SHAKE128F
SHAKE 128f. -
SHAKE128S
SHAKE 128s. -
SHAKE192F
SHAKE 192f. -
SHAKE192S
SHAKE 192s. -
SHAKE256F
SHAKE 256f. -
SHAKE256S
SHAKE 256s. -
SHA128F_HASH
SHA2 128f hash. -
SHA128S_HASH
SHA2 128s hash. -
SHA192F_HASH
SHA2 192f hash. -
SHA192S_HASH
SHA2 192s hash. -
SHA256F_HASH
SHA2 256f hash. -
SHA256S_HASH
SHA2 256s hash. -
SHAKE128F_HASH
SHAKE 128f hash. -
SHAKE128S_HASH
SHAKE 128s hash. -
SHAKE192F_HASH
SHAKE 192f hash. -
SHAKE192S_HASH
SHAKE 192s hash. -
SHAKE256F_HASH
SHAKE 256f hash. -
SHAKE256S_HASH
SHAKE 256s hash.
-
-
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
-
isHash
public boolean isHash()Is this a hash signer?- Returns:
- true/false
-
getParameters
public org.bouncycastle.pqc.crypto.slhdsa.SLHDSAParameters getParameters()Obtain SLHDSA Parameters.- Returns:
- the parameters.
-
getParameterSpec
public org.bouncycastle.jcajce.spec.SLHDSAParameterSpec getParameterSpec()Obtain SPHINCSPlus ParameterSpec.- Returns:
- the parameters.
-
getIdentifier
public org.bouncycastle.asn1.ASN1ObjectIdentifier getIdentifier()Obtain SLHDSA algorithm Identifier.- Returns:
- the identifier.
-