Package org.bouncycastle.crypto.fips
Class FipsSHS.TupleHashParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsSHS.Parameters
org.bouncycastle.crypto.fips.FipsSHS.TupleHashParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsSHS
Customizable TupleHash parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the customization string for this parameter set.int
Return the hash size for this parameter set.withCustomizationString
(byte[] customizationString) Return a new set of parameters specifying a specific customization string.withDigestSize
(int digestSizeinBits) Return a new set of parameters specifying a specific hash size.Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
Method Details
-
getDigestSizeInBits
public int getDigestSizeInBits()Return the hash size for this parameter set.- Returns:
- the hash size in bits.
-
getCustomizationString
public byte[] getCustomizationString()Return the customization string for this parameter set.- Returns:
- the customization string.
-
withCustomizationString
Return a new set of parameters specifying a specific customization string.- Parameters:
customizationString
- the function name bit string (S).- Returns:
- a new set of TupleHashParameters including the S value.
-
withDigestSize
Return a new set of parameters specifying a specific hash size.- Parameters:
digestSizeinBits
- bit length of the hash length.- Returns:
- a new set of TupleHashParameters for the hash size.
-