Package org.bouncycastle.crypto.macs
Class Zuc128Mac
java.lang.Object
org.bouncycastle.crypto.macs.Zuc128Mac
- All Implemented Interfaces:
Mac
Zuc128 Mac implementation.
Based on https://www.qtc.jp/3GPP/Specs/eea3eia3specificationv16.pdf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doFinal
(byte[] out, int outOff) Finalize the mac.Obtain Algorithm Name.int
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.
-
Constructor Details
-
Zuc128Mac
public Zuc128Mac()Constructor.
-
-
Method Details
-
getAlgorithmName
Obtain Algorithm Name.- Specified by:
getAlgorithmName
in interfaceMac
- Returns:
- the name
-
getMacSize
public int getMacSize()Obtain Mac Size.- Specified by:
getMacSize
in interfaceMac
- Returns:
- the size in Bytes
-
init
Initialise the Mac. -
update
public void update(byte in) Update the mac with a single byte. -
update
public void update(byte[] in, int inOff, int len) Update the mac. -
doFinal
public int doFinal(byte[] out, int outOff) Finalize the mac. -
reset
public void reset()Description copied from interface:Mac
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).
-