Package com.google.crypto.tink.signature
Class SlhDsaParameters
- java.lang.Object
-
- com.google.crypto.tink.Parameters
-
- com.google.crypto.tink.signature.SignatureParameters
-
- com.google.crypto.tink.signature.SlhDsaParameters
-
public class SlhDsaParameters extends SignatureParameters
Describes the parameters of SLH-DSA signature primitive.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlhDsaParameters.HashTypeSLH-DSA hash type.static classSlhDsaParameters.SignatureTypeWhat the SLH-DSA signing is optimized for.static classSlhDsaParameters.VariantDescribes details of the SLH-DSA signature format.
-
Field Summary
Fields Modifier and Type Field Description static intSLH_DSA_128_PRIVATE_KEY_SIZE_BYTES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlhDsaParameterscreateSlhDsaWithSha2And128S(SlhDsaParameters.Variant variant)Create an SLH-DSA-SHA2-128S parameters with a given variant.booleanequals(java.lang.Object o)SlhDsaParameters.HashTypegetHashType()intgetPrivateKeySize()SlhDsaParameters.SignatureTypegetSignatureType()SlhDsaParameters.VariantgetVariant()inthashCode()booleanhasIdRequirement()Returns true if a key created with the parameters in this object has to have a certain ID when it is in a keyset.java.lang.StringtoString()
-
-
-
Field Detail
-
SLH_DSA_128_PRIVATE_KEY_SIZE_BYTES
public static final int SLH_DSA_128_PRIVATE_KEY_SIZE_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSlhDsaWithSha2And128S
public static SlhDsaParameters createSlhDsaWithSha2And128S(SlhDsaParameters.Variant variant)
Create an SLH-DSA-SHA2-128S parameters with a given variant.The other configurations are currently not supported.
-
getHashType
public SlhDsaParameters.HashType getHashType()
-
getSignatureType
public SlhDsaParameters.SignatureType getSignatureType()
-
getVariant
public SlhDsaParameters.Variant getVariant()
-
getPrivateKeySize
public int getPrivateKeySize()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
hasIdRequirement
public boolean hasIdRequirement()
Description copied from class:ParametersReturns true if a key created with the parameters in this object has to have a certain ID when it is in a keyset.In Tink, certain keys change their behavior depending on the key id (for example, an
Aeadobject can prefix the ciphertext with the big endian encoding of the key id). If this is the case, such a key should require a unique id inKey.getIdRequirementOrNull()and return true here.- Specified by:
hasIdRequirementin classParameters
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-