Based on the SipHash and the C reference implementation
https://github.com/veorq/SipHash.
| Access | Constructor and Description |
|---|---|
| public | |
| public | SipHash128(int
the number of compression rounds c, int the number of finalization rounds d)SipHash128-c-d |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public int | doFinal(byte[]
the array the MAC is to be output to. out, int the offset into the out buffer the output is to start at. outOff)Overrides org. Implements org. |
| public String | getAlgorithmName()
Overrides org. Implements org. |
| public int | getMacSize()
Overrides org. Implements org. |
| public void | reset()
Overrides org. Implements org. |
| SipHash128 | back to summary |
|---|---|
| public SipHash128() SipHash128-2-4 | |
| SipHash128 | back to summary |
|---|---|
| public SipHash128(int c, int d) SipHash128-c-d
| |
| doFinal | back to summary |
|---|---|
| public long doFinal() throws DataLengthException, IllegalStateException Overrides org. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) throws DataLengthException, IllegalStateException Overrides org. Implements org. Doc from org. Compute the final stage of the MAC writing the output to the out parameter. doFinal leaves the MAC in the same state it was after the last init.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Overrides org. Implements org. Doc from org. Return the name of the algorithm the MAC implements.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Overrides org. Implements org. Doc from org. Return the block size for this MAC (in bytes).
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. Doc from org. Reset the MAC. At the end of resetting the MAC should be in the in the same state it was after the last init (if there was one). | |