"SipHash is a family of PRFs SipHash-c-d where the integer parameters c and d are the number of compression rounds and the number of finalization rounds. A compression round is identical to a finalization round and this round function is called SipRound. Given a 128-bit key k and a (possibly empty) byte string m, SipHash-c-d returns a 64-bit value..."
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected final int | |
| protected long | |
| protected long | |
| protected long | |
| public static final int | |
| protected long | |
| protected long | |
| protected long | |
| protected long | |
| protected int | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SipHashEngine(int
the number of compression rounds c, int the number of finalization rounds d)SipHash-c-d |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| 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)Implements org. |
| public String | getAlgorithmName()
Implements org. |
| public int | getMacSize()
Implements org. |
| public void | init(CipherParameters
the key and other data required by the MAC. params)Implements org. |
| protected void | |
| public void | |
| protected static long | |
| public void | update(byte
the byte to be processed. input)Implements org. |
| public void | update(byte[]
the array containing the input. input, int the index in the array the data begins at. offset, int the length of the input starting at inOff. length)Implements org. |
| c | back to summary |
|---|---|
| protected final int c | |
| d | back to summary |
|---|---|
| protected final int d | |
| k0 | back to summary |
|---|---|
| protected long k0 | |
| k1 | back to summary |
|---|---|
| protected long k1 | |
| m | back to summary |
|---|---|
| protected long m | |
| MAC_SIZE | back to summary |
|---|---|
| public static final int MAC_SIZE | |
| v0 | back to summary |
|---|---|
| protected long v0 | |
| v1 | back to summary |
|---|---|
| protected long v1 | |
| v2 | back to summary |
|---|---|
| protected long v2 | |
| v3 | back to summary |
|---|---|
| protected long v3 | |
| wordCount | back to summary |
|---|---|
| protected int wordCount | |
| wordPos | back to summary |
|---|---|
| protected int wordPos | |
| SipHashEngine | back to summary |
|---|---|
| public SipHashEngine() SipHash-2-4 | |
| SipHashEngine | back to summary |
|---|---|
| public SipHashEngine(int c, int d) SipHash-c-d
| |
| applySipRounds | back to summary |
|---|---|
| protected void applySipRounds(int n) | |
| doFinal | back to summary |
|---|---|
| public long doFinal() throws DataLengthException, IllegalStateException | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) throws DataLengthException, IllegalStateException 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() Implements org. Doc from org. Return the name of the algorithm the MAC implements.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements org. Doc from org. Return the block size for this MAC (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(CipherParameters params) throws IllegalArgumentException Implements org. Doc from org. Initialise the MAC.
| |
| processMessageWord | back to summary |
|---|---|
| protected void processMessageWord() | |
| reset | back to summary |
|---|---|
| public void reset() 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). | |
| rotateLeft | back to summary |
|---|---|
| protected static long rotateLeft(long x, int n) | |
| update | back to summary |
|---|---|
| public void update(byte input) throws IllegalStateException Implements org. Doc from org. add a single byte to the mac for processing.
| |
| update | back to summary |
|---|---|
| public void update(byte[] input, int offset, int length) throws DataLengthException, IllegalStateException Implements org.
| |