Package org.bouncycastle.crypto.fips
Class FipsSHS.ParallelHashParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsSHS.Parameters
org.bouncycastle.crypto.fips.FipsSHS.ParallelHashParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsSHS
Customizable ParallelHash parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the customization string for this parameter set.int
Return the hash size for this parameter set.withBlockLength
(int blockLengthInBytes) Return a new set of parameters specifying a specific block size for chunking.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 ParallelHashParameters 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.
-
withBlockLength
Return a new set of parameters specifying a specific block size for chunking.- Parameters:
blockLengthInBytes
- byte length of the chunking block.- Returns:
- a new set of ParallelHashParameters for the hash size.
-