Photon-Beetle with reference to C Reference Impl from: https://github.com/PHOTON-Beetle/Software
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final ByteArrayOutputStream | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private byte[] | |
| private final int | |
| private final ByteArrayOutputStream | |
| private final byte[][] | |
| private byte[] | |
| private final int | |
| private final int | |
| private final byte[][] | |
| private final int | |
| private final int | |
| private final int | |
| private final byte[] | |
| private byte[] | |
| private byte[][] | |
| private final int | |
| private byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
space for any resulting output data. output, int offset into out to start copying the data at. outOff)Implements org. |
| 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. |
| 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 void | |
| private byte | |
| private void |
| A | back to summary |
|---|---|
| private byte[] A | |
| aadData | back to summary |
|---|---|
| private final ByteArrayOutputStream aadData | |
| CRYPTO_KEYBYTES | back to summary |
|---|---|
| private final int CRYPTO_KEYBYTES | |
| CRYPTO_NPUBBYTES | back to summary |
|---|---|
| private final int CRYPTO_NPUBBYTES | |
| D | back to summary |
|---|---|
| private final int D | |
| Dq | back to summary |
|---|---|
| private final int Dq | |
| Dr | back to summary |
|---|---|
| private final int Dr | |
| DSquare | back to summary |
|---|---|
| private final int DSquare | |
| encrypted | back to summary |
|---|---|
| private boolean encrypted | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| input_empty | back to summary |
|---|---|
| private boolean input_empty | |
| K | back to summary |
|---|---|
| private byte[] K | |
| LAST_THREE_BITS_OFFSET | back to summary |
|---|---|
| private final int LAST_THREE_BITS_OFFSET | |
| message | back to summary |
|---|---|
| private final ByteArrayOutputStream message | |
| MixColMatrix | back to summary |
|---|---|
| private final byte[][] MixColMatrix | |
| N | back to summary |
|---|---|
| private byte[] N | |
| RATE_INBYTES | back to summary |
|---|---|
| private final int RATE_INBYTES | |
| RATE_INBYTES_HALF | back to summary |
|---|---|
| private final int RATE_INBYTES_HALF | |
| RC | back to summary |
|---|---|
| private final byte[][] RC | |
| ROUND | back to summary |
|---|---|
| private final int ROUND | |
| S | back to summary |
|---|---|
| private final int S | |
| S_1 | back to summary |
|---|---|
| private final int S_1 | |
| sbox | back to summary |
|---|---|
| private final byte[] sbox | |
| state | back to summary |
|---|---|
| private byte[] state | |
| state_2d | back to summary |
|---|---|
| private byte[][] state_2d | |
| STATE_INBYTES | back to summary |
|---|---|
| private final int STATE_INBYTES | |
| T | back to summary |
|---|---|
| private byte[] T | |
| TAG_INBYTES | back to summary |
|---|---|
| private final int TAG_INBYTES | |
| PhotonBeetleEngine | back to summary |
|---|---|
| public PhotonBeetleEngine(PhotonBeetleEngine. | |
| 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.
| |
| 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.
| |
| 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.
| |
| PHOTON_Permutation | back to summary |
|---|---|
| private void PHOTON_Permutation() | |
| 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) | |
| rhoohr | back to summary |
|---|---|
| private void rhoohr(byte[] ciphertext, int outOff, byte[] plaintext, int inOff, int DBlen_inbytes) | |
| select | back to summary |
|---|---|
| private byte select(boolean condition1, boolean condition2, byte option3, byte option4) | |
| XOR | back to summary |
|---|---|
| private void XOR(byte[] in_right, int rOff, int iolen_inbytes) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PhotonBeetleEngine. | |
| public static final PhotonBeetleEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PhotonBeetleEngine. | |
| public static PhotonBeetleEngine. |
| pb128 | back to summary |
|---|---|
| public static final PhotonBeetleEngine. | |
| pb32 | back to summary |
|---|---|
| public static final PhotonBeetleEngine. | |
| PhotonBeetleParameters | back to summary |
|---|---|
| private PhotonBeetleParameters() | |
| valueOf | back to summary |
|---|---|
| public static PhotonBeetleEngine. | |
| values | back to summary |
|---|---|
| public static PhotonBeetleEngine. | |