| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteArrayOutputStream | |
| private byte[] | |
| private int | |
| private int | |
| private final String | |
| private final int | |
| private final byte[] | |
| private final byte | |
| private final byte | |
| private final byte | |
| private byte[] | |
| private byte[] | |
| private boolean | |
| private boolean | |
| private byte[] | |
| private int | |
| private final int[] | |
| private final byte[] | |
| private byte | |
| private ElephantEngine. | |
| private int | |
| private int | |
| private byte[] | |
| private byte[] | |
| private final int | |
| private int | |
| private final byte[] | |
| private final ElephantEngine. | |
| private byte[] | |
| private final byte[] | |
| private final byte[] | |
| private byte[] | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public int | doFinal(byte[]
space for any resulting output data. output, int offset into out to start copying the data at. outOff)Implements org. |
| private void | |
| public String | getAlgorithmName()
Implements org. |
| public int | |
| public int | |
| public int | |
| public byte[] | getMac()
Implements org. |
| public int | getOutputSize(int
the length of the input. len)Implements org. |
| public int | getUpdateOutputSize(int
the length of the input. len)Implements org. |
| private int | |
| public void | init(boolean
true if we are setting up for encryption, false otherwise. forEncryption, CipherParameters the necessary parameters for the underlying cipher to be initialised. params)Implements org. |
| private void | |
| private void | |
| private void | |
| public void | processAADByte(byte
the byte to be processed. input)Implements org. |
| public void | processAADBytes(byte[]
the input byte array. input, int the offset into the in array where the data to be processed starts. inOff, int the number of bytes to be processed. len)Implements org. |
| private void | |
| public int | processByte(byte
the byte to be processed. input, byte[] the output buffer the processed byte goes into. output, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| public int | processBytes(byte[]
the input byte array. input, int the offset into the in array where the data to be processed starts. inOff, int the number of bytes to be processed. len, byte[] the output buffer the processed bytes go into. output, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| private int | processBytes(byte[] m, byte[] output, int outOff, int nb_it, int nblocks_m, int nblocks_c, int mlen, int nblocks_ad)
|
| public void | |
| private void | |
| private byte | |
| private byte | |
| private void |
| aadData | back to summary |
|---|---|
| private final ByteArrayOutputStream aadData | |
| ad | back to summary |
|---|---|
| private byte[] ad | |
| adlen | back to summary |
|---|---|
| private int adlen | |
| adOff | back to summary |
|---|---|
| private int adOff | |
| algorithmName | back to summary |
|---|---|
| private final String algorithmName | |
| BLOCK_SIZE | back to summary |
|---|---|
| private final int BLOCK_SIZE | |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| CRYPTO_ABYTES | back to summary |
|---|---|
| private final byte CRYPTO_ABYTES | |
| CRYPTO_KEYBYTES | back to summary |
|---|---|
| private final byte CRYPTO_KEYBYTES | |
| CRYPTO_NPUBBYTES | back to summary |
|---|---|
| private final byte CRYPTO_NPUBBYTES | |
| current_mask | back to summary |
|---|---|
| private byte[] current_mask | |
| expanded_key | back to summary |
|---|---|
| private byte[] expanded_key | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| inputMessage | back to summary |
|---|---|
| private byte[] inputMessage | |
| inputOff | back to summary |
|---|---|
| private int inputOff | |
| KeccakRhoOffsets | back to summary |
|---|---|
| private final int[] KeccakRhoOffsets | |
| KeccakRoundConstants | back to summary |
|---|---|
| private final byte[] KeccakRoundConstants | |
| lfsrIV | back to summary |
|---|---|
| private byte lfsrIV | |
| m_state | back to summary |
|---|---|
| private ElephantEngine. | |
| nb_its | back to summary |
|---|---|
| private int nb_its | |
| nBits | back to summary |
|---|---|
| private int nBits | |
| next_mask | back to summary |
|---|---|
| private byte[] next_mask | |
| npub | back to summary |
|---|---|
| private byte[] npub | |
| nRounds | back to summary |
|---|---|
| private final int nRounds | |
| nSBox | back to summary |
|---|---|
| private int nSBox | |
| outputMessage | back to summary |
|---|---|
| private final byte[] outputMessage | |
| parameters | back to summary |
|---|---|
| private final ElephantEngine. | |
| previous_mask | back to summary |
|---|---|
| private byte[] previous_mask | |
| previous_outputMessage | back to summary |
|---|---|
| private final byte[] previous_outputMessage | |
| sBoxLayer | back to summary |
|---|---|
| private final byte[] sBoxLayer | |
| tag | back to summary |
|---|---|
| private byte[] tag | |
| tag_buffer | back to summary |
|---|---|
| private final byte[] tag_buffer | |
| ElephantEngine | back to summary |
|---|---|
| public ElephantEngine(ElephantEngine. | |
| checkAad | back to summary |
|---|---|
| private void checkAad() | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] output, int outOff) throws IllegalStateException, InvalidCipherTextException Implements org. Doc from org. Finish the operation either appending or verifying the MAC at the end of the data.
| |
| get_c_block | back to summary |
|---|---|
| private void get_c_block(byte[] output, byte[] c, int cOff, int clen, int i) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm. | |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() | |
| getIVBytesSize | back to summary |
|---|---|
| public int getIVBytesSize() | |
| getKeyBytesSize | back to summary |
|---|---|
| public int getKeyBytesSize() | |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Implements org. Doc from org. Return the value of the MAC associated with the last stream processed.
| |
| getOutputSize | back to summary |
|---|---|
| public int getOutputSize(int len) Implements org. Doc from org. return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes.
The returned size may be dependent on the initialisation of this cipher
and may not be accurate once subsequent input data is processed - this method
should be invoked immediately prior to a call to final processing of input data
and a call to
| |
| getUpdateOutputSize | back to summary |
|---|---|
| public int getUpdateOutputSize(int len) Implements org. Doc from org. return the size of the output buffer required for a processBytes an input of len bytes. The returned size may be dependent on the initialisation of this cipher and may not be accurate once subsequent input data is processed - this method should be invoked immediately prior to input data being processed.
| |
| index | back to summary |
|---|---|
| private int index(int x, int y) | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Implements org. Doc from org. initialise the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object.
| |
| KeccakP200Round | back to summary |
|---|---|
| private void KeccakP200Round(byte[] state, int indexRound) | |
| lfsr_step | back to summary |
|---|---|
| private void lfsr_step(byte[] output, byte[] input) | |
| permutation | back to summary |
|---|---|
| private void permutation(byte[] state) | |
| processAADByte | back to summary |
|---|---|
| public void processAADByte(byte input) Implements org. Doc from org. Add a single byte to the associated data check.
| |
| processAADBytes | back to summary |
|---|---|
| public void processAADBytes(byte[] input, int inOff, int len) Implements org. Doc from org. Add a sequence of bytes to the associated data check.
| |
| processAADBytes | back to summary |
|---|---|
| private void processAADBytes(byte[] output) | |
| processByte | back to summary |
|---|---|
| public int processByte(byte input, byte[] output, int outOff) throws DataLengthException Implements org. Doc from org. encrypt/decrypt a single byte.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] input, int inOff, int len, byte[] output, int outOff) throws DataLengthException Implements org. Doc from org. process a block of bytes from in putting the result into out.
| |
| processBytes | back to summary |
|---|---|
| private int processBytes(byte[] m, byte[] output, int outOff, int nb_it, int nblocks_m, int nblocks_c, int mlen, int nblocks_ad) | |
| 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).
| |
| reset | back to summary |
|---|---|
| private void reset(boolean clearMac) | |
| ROL8 | back to summary |
|---|---|
| private byte ROL8(byte a, int offset) | |
| rotl | back to summary |
|---|---|
| private byte rotl(byte b) | |
| xor_block | back to summary |
|---|---|
| private void xor_block(byte[] state, byte[] block, int bOff, int size) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ElephantEngine. | |
| public static ElephantEngine. |
| elephant160 | back to summary |
|---|---|
| public static final ElephantEngine. | |
| elephant176 | back to summary |
|---|---|
| public static final ElephantEngine. | |
| elephant200 | back to summary |
|---|---|
| public static final ElephantEngine. | |
| ElephantParameters | back to summary |
|---|---|
| private ElephantParameters() | |
| valueOf | back to summary |
|---|---|
| public static ElephantEngine. | |
| values | back to summary |
|---|---|
| public static ElephantEngine. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. | |
| public static final ElephantEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ElephantEngine. | |
| public static ElephantEngine. |
| DecAad | back to summary |
|---|---|
| public static final ElephantEngine. | |
| DecData | back to summary |
|---|---|
| public static final ElephantEngine. | |
| DecFinal | back to summary |
|---|---|
| public static final ElephantEngine. | |
| DecInit | back to summary |
|---|---|
| public static final ElephantEngine. | |
| EncAad | back to summary |
|---|---|
| public static final ElephantEngine. | |
| EncData | back to summary |
|---|---|
| public static final ElephantEngine. | |
| EncFinal | back to summary |
|---|---|
| public static final ElephantEngine. | |
| EncInit | back to summary |
|---|---|
| public static final ElephantEngine. | |
| Uninitialized | back to summary |
|---|---|
| public static final ElephantEngine. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ElephantEngine. | |
| values | back to summary |
|---|---|
| public static ElephantEngine. | |