Xoodyak with reference to C Reference Impl from: https://github.com/XKCP/XKCP
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteArrayOutputStream | |
| private boolean | |
| private boolean | |
| private final int | |
| private boolean | |
| private boolean | |
| private byte[] | |
| private byte[] | |
| private final int | |
| private final ByteArrayOutputStream | |
| private XoodyakEngine. | |
| private final int | |
| private final int | |
| private final int | |
| private int | |
| private final int | |
| private final int | |
| private int | |
| private final int[] | |
| pack-priv final int | |
| private final int | |
| private byte[] | |
| private byte[] | |
| private final int |
| 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. |
| pack-priv void | |
| private int | |
| 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 | |
| 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. |
| 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. |
| public void | |
| private void | |
| private int | |
| private void |
| aadData | back to summary |
|---|---|
| private final ByteArrayOutputStream aadData | |
| aadFinished | back to summary |
|---|---|
| private boolean aadFinished | |
| encrypted | back to summary |
|---|---|
| private boolean encrypted | |
| f_bPrime | back to summary |
|---|---|
| private final int f_bPrime | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| iv | back to summary |
|---|---|
| private byte[] iv | |
| K | back to summary |
|---|---|
| private byte[] K | |
| MAXROUNDS | back to summary |
|---|---|
| private final int MAXROUNDS | |
| message | back to summary |
|---|---|
| private final ByteArrayOutputStream message | |
| mode | back to summary |
|---|---|
| private XoodyakEngine. | |
| NCOLUMS | back to summary |
|---|---|
| private final int NCOLUMS | |
| NLANES | back to summary |
|---|---|
| private final int NLANES | |
| NROWS | back to summary |
|---|---|
| private final int NROWS | |
| phase | back to summary |
|---|---|
| private int phase | |
| PhaseDown | back to summary |
|---|---|
| private final int PhaseDown | |
| PhaseUp | back to summary |
|---|---|
| private final int PhaseUp | |
| Rabsorb | back to summary |
|---|---|
| private int Rabsorb | |
| RC | back to summary |
|---|---|
| private final int[] RC | |
| Rkin | back to summary |
|---|---|
| pack-priv final int Rkin | |
| Rkout | back to summary |
|---|---|
| private final int Rkout | |
| state | back to summary |
|---|---|
| private byte[] state | |
| tag | back to summary |
|---|---|
| private byte[] tag | |
| TAGLEN | back to summary |
|---|---|
| private final int TAGLEN | |
| XoodyakEngine | back to summary |
|---|---|
| public XoodyakEngine() | |
| AbsorbAny | back to summary |
|---|---|
| private void AbsorbAny(byte[] X, int Xoff, int XLen, int r, int Cd) | |
| 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.
| |
| Down | back to summary |
|---|---|
| pack-priv void Down(byte[] Xi, int XiOff, int XiLen, int Cd) | |
| encrypt | back to summary |
|---|---|
| private int encrypt(byte[] input, int inOff, int len, byte[] output, int outOff) | |
| 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.
| |
| processAAD | back to summary |
|---|---|
| private void processAAD() | |
| 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.
| |
| 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.
| |
| 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) | |
| ROTL32 | back to summary |
|---|---|
| private int ROTL32(int a, int offset) | |
| Up | back to summary |
|---|---|
| private void Up(byte[] Yi, int YiLen, int Cu) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final XoodyakEngine. | |
| public static final XoodyakEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static XoodyakEngine. | |
| public static XoodyakEngine. |
| ModeHash | back to summary |
|---|---|
| public static final XoodyakEngine. | |
| ModeKeyed | back to summary |
|---|---|
| public static final XoodyakEngine. | |
| MODE | back to summary |
|---|---|
| private MODE() | |
| valueOf | back to summary |
|---|---|
| public static XoodyakEngine. | |
| values | back to summary |
|---|---|
| public static XoodyakEngine. | |