| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | theByteIndex
The current byte index. |
| private final Zuc128Mac. | theEngine
The Zuc128 Engine. |
| private final int[] | theKeyStream
The active keyStream. |
| private int | theMac
The calculated Mac in words. |
| private Zuc128CoreEngine | theState
The initialised state. |
| private int | theWordIndex
The current word index. |
| private static final int | TOPBIT
The Maximum Bit Mask. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size of the macthe output buffer out, final int the starting offset in the input buffer outOff)Implements org. |
| public String | Returns: the nameImplements org. |
| private int | |
| private int | |
| public int | Returns: the size in BytesImplements org. |
| public void | init(final CipherParameters
the parameters pParams)Implements org. |
| private void | |
| public void | |
| private void | |
| public void | update(final byte
the byte to update with in)Implements org. |
| public void | update(final byte[]
the input buffer in, final int the starting offset in the input buffer inOff, final int the length of data to process len)Implements org. |
| private void |
| theByteIndex | back to summary |
|---|---|
| private int theByteIndex The current byte index. | |
| theEngine | back to summary |
|---|---|
| private final Zuc128Mac. The Zuc128 Engine. | |
| theKeyStream | back to summary |
|---|---|
| private final int[] theKeyStream The active keyStream. | |
| theMac | back to summary |
|---|---|
| private int theMac The calculated Mac in words. | |
| theState | back to summary |
|---|---|
| private Zuc128CoreEngine theState The initialised state. | |
| theWordIndex | back to summary |
|---|---|
| private int theWordIndex The current word index. | |
| TOPBIT | back to summary |
|---|---|
| private static final int TOPBIT The Maximum Bit Mask. | |
| Zuc128Mac | back to summary |
|---|---|
| public Zuc128Mac() Constructor. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(final byte[] out, final int outOff) Implements org. Finalize the mac.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Obtain Algorithm Name.
| |
| getFinalWord | back to summary |
|---|---|
| private int getFinalWord() Obtain the final word.
| |
| getKeyStreamWord | back to summary |
|---|---|
| private int getKeyStreamWord(final int bitNo) Obtain the keyStreamWord.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements org. Obtain Mac Size.
| |
| init | back to summary |
|---|---|
| public void init(final CipherParameters pParams) Implements org. Initialise the Mac.
| |
| initKeyStream | back to summary |
|---|---|
| private void initKeyStream() Initialise the keyStream. | |
| 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). | |
| shift4NextByte | back to summary |
|---|---|
| private void shift4NextByte() Shift for next byte. | |
| update | back to summary |
|---|---|
| public void update(final byte in) Implements org. Update the mac with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(final byte[] in, final int inOff, final int len) Implements org. Update the mac.
| |
| updateMac | back to summary |
|---|---|
| private void updateMac(final int bitNo) Update the Mac.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int |
| InternalZuc128Engine | back to summary |
|---|---|
| private InternalZuc128Engine() | |
| createKeyStreamWord | back to summary |
|---|---|
| pack-priv int createKeyStreamWord() | |