| Constructor and Description |
|---|
SipHash128()
SipHash128-2-4
|
SipHash128(int c,
int d)
SipHash128-c-d
|
| Modifier and Type | Method and Description |
|---|---|
long |
doFinal() |
int |
doFinal(byte[] out,
int outOff)
Compute the final stage of the MAC writing the output to the out
parameter.
|
java.lang.String |
getAlgorithmName()
Return the name of the algorithm the MAC implements.
|
int |
getMacSize()
Return the block size for this MAC (in bytes).
|
void |
reset()
Reset the MAC.
|
applySipRounds, init, processMessageWord, rotateLeft, update, updatepublic SipHash128()
public SipHash128(int c,
int d)
c - the number of compression roundsd - the number of finalization roundspublic java.lang.String getAlgorithmName()
MacgetAlgorithmName in interface MacgetAlgorithmName in class SipHashpublic int getMacSize()
MacgetMacSize in interface MacgetMacSize in class SipHashpublic long doFinal()
throws DataLengthException,
java.lang.IllegalStateException
doFinal in class SipHashDataLengthExceptionjava.lang.IllegalStateExceptionpublic int doFinal(byte[] out,
int outOff)
throws DataLengthException,
java.lang.IllegalStateException
MacdoFinal leaves the MAC in the same state it was after the last init.
doFinal in interface MacdoFinal in class SipHashout - the array the MAC is to be output to.outOff - the offset into the out buffer the output is to start at.DataLengthException - if there isn't enough space in out.java.lang.IllegalStateException - if the MAC is not initialised.