| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private String | |
| private final int | |
| private boolean | |
| private byte[] | |
| private final int[] | |
| private final int | |
| private final int | |
| private final byte[] | |
| private final int | |
| private int | |
| private SparkleEngine. | |
| private final int[] | |
| private final int | |
| private final int | |
| private static final int[] | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int[] | |
| private final int | |
| private byte[] | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | |
| public int | doFinal(byte[]
space for any resulting output data. out, int offset into out to start copying the data at. outOff)Implements org. |
| private static int | |
| private void | |
| public String | getAlgorithmName()
Implements org. |
| 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. |
| public void | processAADByte(byte
the byte to be processed. in)Implements org. |
| public void | processAADBytes(byte[]
the input byte array. in, 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 | |
| private void | |
| private void | |
| public int | processByte(byte
the byte to be processed. in, byte[] the output buffer the processed byte goes into. out, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| public int | processBytes(byte[]
the input byte array. in, 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. out, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| private void | |
| public void | |
| private void | |
| private static void | |
| pack-priv static void | |
| public static void | |
| pack-priv static void | |
| public static void | |
| pack-priv static void |
| _A0 | back to summary |
|---|---|
| private final int _A0 | |
| _A1 | back to summary |
|---|---|
| private final int _A1 | |
| _M2 | back to summary |
|---|---|
| private final int _M2 | |
| _M3 | back to summary |
|---|---|
| private final int _M3 | |
| algorithmName | back to summary |
|---|---|
| private String algorithmName | |
| CAP_MASK | back to summary |
|---|---|
| private final int CAP_MASK | |
| encrypted | back to summary |
|---|---|
| private boolean encrypted | |
| initialAssociatedText | back to summary |
|---|---|
| private byte[] initialAssociatedText | |
| k | back to summary |
|---|---|
| private final int[] k | |
| KEY_BYTES | back to summary |
|---|---|
| private final int KEY_BYTES | |
| KEY_WORDS | back to summary |
|---|---|
| private final int KEY_WORDS | |
| m_buf | back to summary |
|---|---|
| private final byte[] m_buf | |
| m_bufferSizeDecrypt | back to summary |
|---|---|
| private final int m_bufferSizeDecrypt | |
| m_bufPos | back to summary |
|---|---|
| private int m_bufPos | |
| m_state | back to summary |
|---|---|
| private SparkleEngine. | |
| npub | back to summary |
|---|---|
| private final int[] npub | |
| RATE_BYTES | back to summary |
|---|---|
| private final int RATE_BYTES | |
| RATE_WORDS | back to summary |
|---|---|
| private final int RATE_WORDS | |
| RCON | back to summary |
|---|---|
| private static final int[] RCON | |
| SCHWAEMM_KEY_LEN | back to summary |
|---|---|
| private final int SCHWAEMM_KEY_LEN | |
| SCHWAEMM_NONCE_LEN | back to summary |
|---|---|
| private final int SCHWAEMM_NONCE_LEN | |
| SPARKLE_STEPS_BIG | back to summary |
|---|---|
| private final int SPARKLE_STEPS_BIG | |
| SPARKLE_STEPS_SLIM | back to summary |
|---|---|
| private final int SPARKLE_STEPS_SLIM | |
| state | back to summary |
|---|---|
| private final int[] state | |
| STATE_WORDS | back to summary |
|---|---|
| private final int STATE_WORDS | |
| tag | back to summary |
|---|---|
| private byte[] tag | |
| TAG_BYTES | back to summary |
|---|---|
| private final int TAG_BYTES | |
| TAG_WORDS | back to summary |
|---|---|
| private final int TAG_WORDS | |
| SparkleEngine | back to summary |
|---|---|
| public SparkleEngine(SparkleEngine. | |
| checkAAD | back to summary |
|---|---|
| private void checkAAD() | |
| checkData | back to summary |
|---|---|
| private boolean checkData() | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, 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.
| |
| ELL | back to summary |
|---|---|
| private static int ELL(int x) | |
| finishAAD | back to summary |
|---|---|
| private void finishAAD(SparkleEngine. | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm.
| |
| 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.
| |
| processAADByte | back to summary |
|---|---|
| public void processAADByte(byte in) Implements org. Doc from org. Add a single byte to the associated data check.
| |
| processAADBytes | back to summary |
|---|---|
| public void processAADBytes(byte[] in, int inOff, int len) Implements org. Doc from org. Add a sequence of bytes to the associated data check.
| |
| processBufferAAD | back to summary |
|---|---|
| private void processBufferAAD(byte[] buffer, int bufOff) | |
| processBufferDecrypt | back to summary |
|---|---|
| private void processBufferDecrypt(byte[] buffer, int bufOff, byte[] output, int outOff) | |
| processBufferEncrypt | back to summary |
|---|---|
| private void processBufferEncrypt(byte[] buffer, int bufOff, byte[] output, int outOff) | |
| processByte | back to summary |
|---|---|
| public int processByte(byte in, byte[] out, int outOff) throws DataLengthException Implements org. Doc from org. encrypt/decrypt a single byte.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException Implements org. Doc from org. process a block of bytes from in putting the result into out.
| |
| processFinalAAD | back to summary |
|---|---|
| private void processFinalAAD() | |
| 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) | |
| sparkle_opt | back to summary |
|---|---|
| private static void sparkle_opt(int[] state, int steps) | |
| sparkle_opt12 | back to summary |
|---|---|
| pack-priv static void sparkle_opt12(int[] state, int steps) | |
| sparkle_opt12 | back to summary |
|---|---|
| public static void sparkle_opt12(SparkleDigest. | |
| sparkle_opt16 | back to summary |
|---|---|
| pack-priv static void sparkle_opt16(int[] state, int steps) | |
| sparkle_opt16 | back to summary |
|---|---|
| public static void sparkle_opt16(SparkleDigest. | |
| sparkle_opt8 | back to summary |
|---|---|
| pack-priv static void sparkle_opt8(int[] state, int steps) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SparkleEngine. | |
| public static SparkleEngine. |
| SCHWAEMM128_128 | back to summary |
|---|---|
| public static final SparkleEngine. | |
| SCHWAEMM192_192 | back to summary |
|---|---|
| public static final SparkleEngine. | |
| SCHWAEMM256_128 | back to summary |
|---|---|
| public static final SparkleEngine. | |
| SCHWAEMM256_256 | back to summary |
|---|---|
| public static final SparkleEngine. | |
| SparkleParameters | back to summary |
|---|---|
| private SparkleParameters() | |
| valueOf | back to summary |
|---|---|
| public static SparkleEngine. | |
| values | back to summary |
|---|---|
| public static SparkleEngine. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. | |
| public static final SparkleEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SparkleEngine. | |
| public static SparkleEngine. |
| DecAad | back to summary |
|---|---|
| public static final SparkleEngine. | |
| DecData | back to summary |
|---|---|
| public static final SparkleEngine. | |
| DecFinal | back to summary |
|---|---|
| public static final SparkleEngine. | |
| DecInit | back to summary |
|---|---|
| public static final SparkleEngine. | |
| EncAad | back to summary |
|---|---|
| public static final SparkleEngine. | |
| EncData | back to summary |
|---|---|
| public static final SparkleEngine. | |
| EncFinal | back to summary |
|---|---|
| public static final SparkleEngine. | |
| EncInit | back to summary |
|---|---|
| public static final SparkleEngine. | |
| Uninitialized | back to summary |
|---|---|
| public static final SparkleEngine. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static SparkleEngine. | |
| values | back to summary |
|---|---|
| public static SparkleEngine. | |