gnu.crypto.jce.spec
public class TMMHParameterSpec extends Object implements AlgorithmParameterSpec
This class is little more than a container for the key stream, tag length, and prefix parameters for the TMMH algorithm.
Version: $Revision: 1.2 $
Field Summary | |
---|---|
protected IRandom | keystream The keystream. |
protected byte[] | prefix The prefix. |
protected Integer | tagLength The tag length. |
Constructor Summary | |
---|---|
TMMHParameterSpec(IRandom keystream, Integer tagLength, byte[] prefix)
Create a new parameter specification.
| |
TMMHParameterSpec(IRandom keystream, Integer tagLength)
Create a new parameter specification with no prefix.
|
Method Summary | |
---|---|
IRandom | getKeystream()
Return the key stream this specification was initialized with.
|
byte[] | getPrefix()
Return the prefix, or null if no prefix was
specified.
|
Integer | getTagLength()
Return the tag length this specification was initialized with.
|
Parameters: keystream The (PRNG) key stream. tagLength The tag length. prefix The prefix.
Parameters: keystream The (PRNG) key stream. tagLength The tag length.
Returns: The key stream.
null
if no prefix was
specified.
Returns: The prefix.
Returns: The tag length.