Specification
https://csrc.nist.gov/CSRC/media/Projects/lightweight-cryptography/documents/finalist-round/updated-spec-doc/elephant-spec-final.pdf
| 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 int | |
| private final byte[] | |
| private byte[] | |
| private byte[] | |
| private boolean | |
| private byte[] | |
| private int | |
| private final int[] | |
| private final byte[] | |
| private byte | |
| private ElephantEngine. | |
| private int | |
| private int | |
| private int | |
| private byte[] | |
| private byte[] | |
| private final int | |
| private int | |
| private final ElephantEngine. | |
| private byte[] | |
| private final byte[] | |
| private final 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. Finish the operation either appending or verifying the MAC at the end of the data. |
| public int | |
| public int | getOutputSize(int
the length of the input. len)Implements org. return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes. |
| public int | getUpdateOutputSize(int
the length of the input. len)Implements org. return the size of the output buffer required for a processBytes an input of len bytes. |
| private int | |
| protected void | |
| private void | |
| private void | |
| private void | |
| public void | processAADByte(byte
the byte to be processed. input)Implements org. Add a single byte to the associated data check. |
| 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. Add a sequence of bytes to the associated data check. |
| private int | |
| private void | |
| 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. process a block of bytes from in putting the result into out. |
| private int | processBytes(byte[] m, byte[] output, int outOff, int nb_it, int nblocks_m, int nblocks_c, int mlen, int nblocks_ad, boolean isDofinal)
|
| protected 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 | |
| BLOCK_SIZE | back to summary |
|---|---|
| private final int BLOCK_SIZE | |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| current_mask | back to summary |
|---|---|
| private byte[] current_mask | |
| expanded_key | back to summary |
|---|---|
| private byte[] expanded_key | |
| 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. | |
| messageLen | back to summary |
|---|---|
| private int messageLen | |
| 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 | |
| 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_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.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() | |
| 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 |
|---|---|
| protected void init(byte[] k, byte[] iv) throws IllegalArgumentException Implements abstract org.
| |
| 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 int processAADBytes() | |
| processAADBytes | back to summary |
|---|---|
| private void processAADBytes(byte[] output) | |
| 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, boolean isDofinal) | |
| reset | back to summary |
|---|---|
| protected void reset(boolean clearMac) Overrides org. | |
| 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. | |