| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | theByteIndex
The current byte index. |
| private final Zuc256Mac. | theEngine
The Zuc256 Engine. |
| private final int[] | theKeyStream
The active keyStream. |
| private final int[] | theMac
The calculated Mac in words. |
| private final int | theMacLength
The mac length. |
| private Zuc256CoreEngine | 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 output buffer outOff)Implements org. |
| public String | Returns: the nameImplements org. |
| private int | Returns: the wordthe wordNumber wordNo, final int the bitNumber bitNo)Obtain the keyStreamWord. |
| public int | Returns: the size in BytesImplements org. |
| public void | init(final CipherParameters
the parameters pParams)Implements org. |
| private void | |
| public void | |
| private 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 Zuc256Mac. The Zuc256 Engine. | |
| theKeyStream | back to summary |
|---|---|
| private final int[] theKeyStream The active keyStream. | |
| theMac | back to summary |
|---|---|
| private final int[] theMac The calculated Mac in words. | |
| theMacLength | back to summary |
|---|---|
| private final int theMacLength The mac length. | |
| theState | back to summary |
|---|---|
| private Zuc256CoreEngine 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. | |
| Zuc256Mac | back to summary |
|---|---|
| public Zuc256Mac(final int pLength) 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.
| |
| getKeyStreamWord | back to summary |
|---|---|
| private int getKeyStreamWord(final int wordNo, 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. Reset the Mac. | |
| shift4Final | back to summary |
|---|---|
| private void shift4Final() Shift for final update. | |
| 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 |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int |
| InternalZuc256Engine | back to summary |
|---|---|
| public InternalZuc256Engine(int pLength) | |
| createKeyStreamWord | back to summary |
|---|---|
| pack-priv int createKeyStreamWord() | |