gnu.crypto.jce.spec
Class TMMHParameterSpec
java.lang.Object
gnu.crypto.jce.spec.TMMHParameterSpec
- AlgorithmParameterSpec
public class TMMHParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec
This class represents the algorithm parameters for the Truncated
Multi-Modular Hash function for use with JCE-derived instances of
TMMH16
.
This class is little more than a container for the key stream, tag
length, and prefix parameters for the TMMH algorithm.
Version:
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.
|
keystream
protected IRandom keystream
The keystream.
prefix
protected byte[] prefix
The prefix.
tagLength
protected Integer tagLength
The tag length.
TMMHParameterSpec
public TMMHParameterSpec(IRandom keystream,
Integer tagLength)
Create a new parameter specification with no prefix.
keystream
- The (PRNG) key stream.tagLength
- The tag length.
TMMHParameterSpec
public TMMHParameterSpec(IRandom keystream,
Integer tagLength,
byte[] prefix)
Create a new parameter specification.
keystream
- The (PRNG) key stream.tagLength
- The tag length.prefix
- The prefix.
getKeystream
public IRandom getKeystream()
Return the key stream this specification was initialized with.
- The key stream.
getPrefix
public byte[] getPrefix()
Return the prefix, or null
if no prefix was
specified.
- The prefix.
getTagLength
public Integer getTagLength()
Return the tag length this specification was initialized with.
- The tag length.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.