| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final int | |
| private boolean | |
| private boolean | |
| private int[] | |
| private int[] | |
| private static final int | |
| private static final byte[] | |
| private static final int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private void | |
| private void | |
| private static void | |
| private static void | |
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the cipher implements. |
| public int | getBlockSize()
Implements org. Return the block size for this cipher (in bytes). |
| public void | init(boolean
if true the cipher is initialised for
encryption, if false for decryption. forEncryption, CipherParameters the key and other data required by the cipher. params)Implements org. Initialise the cipher. |
| private void | |
| private static int | |
| private byte | |
| public int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. Process one block of input from the array in and write it to the out array. |
| private int | |
| private int | |
| public void | |
| private static int | |
| private static void | |
| private static void | |
| private int | |
| private int | |
| private int | |
| private void |
| _keySize | back to summary |
|---|---|
| private int _keySize | |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| ke | back to summary |
|---|---|
| private int[] ke | |
| kw | back to summary |
|---|---|
| private int[] kw | |
| MASK8 | back to summary |
|---|---|
| private static final int MASK8 | |
| SBOX1 | back to summary |
|---|---|
| private static final byte[] SBOX1 | |
| SIGMA | back to summary |
|---|---|
| private static final int[] SIGMA | |
| subkey | back to summary |
|---|---|
| private int[] subkey | |
| CamelliaLightEngine | back to summary |
|---|---|
| public CamelliaLightEngine() | |
| bitsOfSecurity | back to summary |
|---|---|
| private int bitsOfSecurity() | |
| bytes2int | back to summary |
|---|---|
| private int bytes2int(byte[] src, int offset) | |
| camelliaF2 | back to summary |
|---|---|
| private void camelliaF2(int[] s, int[] skey, int keyoff) | |
| camelliaFLs | back to summary |
|---|---|
| private void camelliaFLs(int[] s, int[] fkey, int keyoff) | |
| decroldq | back to summary |
|---|---|
| private static void decroldq(int rot, int[] ki, int ioff, int[] ko, int ooff) | |
| decroldqo32 | back to summary |
|---|---|
| private static void decroldqo32(int rot, int[] ki, int ioff, int[] ko, int ooff) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. Doc from org. Initialise the cipher.
| |
| int2bytes | back to summary |
|---|---|
| private void int2bytes(int word, byte[] dst, int offset) | |
| leftRotate | back to summary |
|---|---|
| private static int leftRotate(int x, int s) | |
| lRot8 | back to summary |
|---|---|
| private byte lRot8(byte v, int rot) | |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| processBlock128 | back to summary |
|---|---|
| private int processBlock128(byte[] in, int inOff, byte[] out, int outOff) | |
| processBlock192or256 | back to summary |
|---|---|
| private int processBlock192or256(byte[] in, int inOff, byte[] out, int outOff) | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| rightRotate | back to summary |
|---|---|
| private static int rightRotate(int x, int s) | |
| roldq | back to summary |
|---|---|
| private static void roldq(int rot, int[] ki, int ioff, int[] ko, int ooff) | |
| roldqo32 | back to summary |
|---|---|
| private static void roldqo32(int rot, int[] ki, int ioff, int[] ko, int ooff) | |
| sbox2 | back to summary |
|---|---|
| private int sbox2(int x) | |
| sbox3 | back to summary |
|---|---|
| private int sbox3(int x) | |
| sbox4 | back to summary |
|---|---|
| private int sbox4(int x) | |
| setKey | back to summary |
|---|---|
| private void setKey(boolean forEncryption, byte[] key) | |