|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.macs.Zuc256Mac
Zuc256 Mac implementation. Based on https://www.is.cas.cn/ztzl2016/zouchongzhi/201801/W020180126529970733243.pdf
Constructor Summary | |
Zuc256Mac(int pLength)
Constructor. |
Method Summary | |
int |
doFinal(byte[] out,
int outOff)
Finalize the mac. |
java.lang.String |
getAlgorithmName()
Obtain Algorithm Name. |
int |
getMacSize()
Obtain Mac Size. |
void |
init(CipherParameters pParams)
Initialise the Mac. |
void |
reset()
Reset the Mac. |
void |
update(byte in)
Update the mac with a single byte. |
void |
update(byte[] in,
int inOff,
int len)
Update the mac. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Zuc256Mac(int pLength)
pLength
- the bit length of the MacMethod Detail |
public java.lang.String getAlgorithmName()
getAlgorithmName
in interface Mac
public int getMacSize()
getMacSize
in interface Mac
public void init(CipherParameters pParams)
init
in interface Mac
pParams
- the parameterspublic void update(byte in)
update
in interface Mac
in
- the byte to update withpublic void update(byte[] in, int inOff, int len)
update
in interface Mac
in
- the input bufferinOff
- the starting offset in the input bufferlen
- the length of data to processpublic int doFinal(byte[] out, int outOff)
doFinal
in interface Mac
out
- the output bufferoutOff
- the starting offset in the output bufferpublic void reset()
reset
in interface Mac
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |