Next: , Previous: The MacFactory Class, Up: Message Authentication Codes


7.3 TMMH/16

In addition to the key, the TMMH/16 requires three more parameters passed to its init method, using the following three keys:

— Variable: java.lang.String TAG_LENGTH

The output length, in bytes, represented as a java.lang.Integer. This value must be an even integer between 2 and 64.

— Variable: java.lang.String KEYSTREAM

An instance of gnu.crypto.prng.IRandom, which is to serve as the source of random bytes for this instance.

— Variable: java.lang.String PREFIX

A byte array of TAG_LENGTH bytes. If this parameter is omitted an all-zero byte array will be used. This value is XORed with the digest just before it is returned.