|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.macs.SipHash
org.bouncycastle.crypto.macs.SipHash128
Implementation of SipHash with 128 bit output.
Based on the SipHash
and the C reference implementation
https://github.com/veorq/SipHash.
Field Summary |
Fields inherited from class org.bouncycastle.crypto.macs.SipHash |
c, d, k0, k1, m, v0, v1, v2, v3, wordCount, wordPos |
Constructor Summary | |
SipHash128()
SipHash128-2-4 |
|
SipHash128(int c,
int d)
SipHash128-c-d |
Method Summary | |
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. |
Methods inherited from class org.bouncycastle.crypto.macs.SipHash |
applySipRounds, init, processMessageWord, rotateLeft, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SipHash128()
public SipHash128(int c, int d)
c
- the number of compression roundsd
- the number of finalization roundsMethod Detail |
public java.lang.String getAlgorithmName()
Mac
getAlgorithmName
in interface Mac
getAlgorithmName
in class SipHash
public int getMacSize()
Mac
getMacSize
in interface Mac
getMacSize
in class SipHash
public long doFinal() throws DataLengthException, java.lang.IllegalStateException
doFinal
in class SipHash
DataLengthException
java.lang.IllegalStateException
public int doFinal(byte[] out, int outOff) throws DataLengthException, java.lang.IllegalStateException
Mac
doFinal leaves the MAC in the same state it was after the last init.
doFinal
in interface Mac
doFinal
in class SipHash
DataLengthException
java.lang.IllegalStateException
public void reset()
Mac
reset
in interface Mac
reset
in class SipHash
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |