| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final ChaCha20Cipher. | |
| protected final ChaCha20Cipher. | |
| protected final Mac | |
| protected Cipher. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public String | |
| public void | init(Cipher.
Encrypt/Decrypt initialization mode,Key bytes key, byte[] Initialization vector bytes iv)Implements org. Initialize the cipher for encryption or decryption with the given key and initialization vector |
| public void | update(byte[]
The input/output bytes input, int The offset of the data in the data buffer inputOffset, int The number of bytes to update, starting at the given offset; must be a multiple of the
cipher's block size inputLen)Implements org. Performs in-place encryption or decryption on the given data. |
| public void | updateAAD(byte[]
The additional data to authenticate data, int The offset of the additional data in the buffer offset, int The number of bytes in the buffer to use for authentication length)Implements org. Adds the provided input data as additional authenticated data during encryption or decryption. |
| bodyEngine | back to summary |
|---|---|
| protected final ChaCha20Cipher. | |
| headerEngine | back to summary |
|---|---|
| protected final ChaCha20Cipher. | |
| mac | back to summary |
|---|---|
| protected final Mac mac | |
| mode | back to summary |
|---|---|
| protected Cipher. | |
| ChaCha20Cipher | back to summary |
|---|---|
| public ChaCha20Cipher() | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements org.
| |
| getAuthenticationTagSize | back to summary |
|---|---|
| public int getAuthenticationTagSize() Implements org.
| |
| getCipherBlockSize | back to summary |
|---|---|
| public int getCipherBlockSize() Implements org.
| |
| getIVSize | back to summary |
|---|---|
| public int getIVSize() Implements org.
| |
| getKdfSize | back to summary |
|---|---|
| public int getKdfSize() Implements org.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Implements org.
| |
| getTransformation | back to summary |
|---|---|
| public String getTransformation() Implements org.
| |
| init | back to summary |
|---|---|
| public void init(Cipher. Implements org. Doc from org. Initialize the cipher for encryption or decryption with the given key and initialization vector | |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inputOffset, int inputLen) throws Exception Implements org. Doc from org. Performs in-place encryption or decryption on the given data. | |
| updateAAD | back to summary |
|---|---|
| public void updateAAD(byte[] data, int offset, int length) throws Exception Implements org. Doc from org. Adds the provided input data as additional authenticated data during encryption or decryption. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int[] | |
| protected final int[] | |
| protected long | |
| private static final int | |
| private static final int | |
| private static final int | |
| protected final byte[] | |
| protected final byte[] | |
| private static final int | |
| protected long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected byte[] | |
| protected void | |
| private static void | |
| private static int[] |
| BLOCK_BYTES | back to summary |
|---|---|
| private static final int BLOCK_BYTES | |
| BLOCK_INTS | back to summary |
|---|---|
| private static final int BLOCK_INTS | |
| COUNTER_OFFSET | back to summary |
|---|---|
| private static final int COUNTER_OFFSET | |
| ENGINE_STATE_HEADER | back to summary |
|---|---|
| private static final int[] ENGINE_STATE_HEADER | |
| engineState | back to summary |
|---|---|
| protected final int[] engineState | |
| initialNonce | back to summary |
|---|---|
| protected long initialNonce | |
| KEY_BYTES | back to summary |
|---|---|
| private static final int KEY_BYTES | |
| KEY_INTS | back to summary |
|---|---|
| private static final int KEY_INTS | |
| KEY_OFFSET | back to summary |
|---|---|
| private static final int KEY_OFFSET | |
| keyStream | back to summary |
|---|---|
| protected final byte[] keyStream | |
| nonce | back to summary |
|---|---|
| protected final byte[] nonce | |
| NONCE_OFFSET | back to summary |
|---|---|
| private static final int NONCE_OFFSET | |
| nonceVal | back to summary |
|---|---|
| protected long nonceVal | |
| ChaChaEngine | back to summary |
|---|---|
| protected ChaChaEngine() | |
| advanceNonce | back to summary |
|---|---|
| protected void advanceNonce() | |
| crypt | back to summary |
|---|---|
| protected void crypt(byte[] in, int offset, int length, byte[] out, int outOffset) | |
| initCounter | back to summary |
|---|---|
| protected void initCounter(long counter) | |
| initKey | back to summary |
|---|---|
| protected void initKey(byte[] key) | |
| initNonce | back to summary |
|---|---|
| protected void initNonce(byte[] nonce) | |
| polyKey | back to summary |
|---|---|
| protected byte[] polyKey() | |
| setKeyStream | back to summary |
|---|---|
| protected void setKeyStream(int[] engine) | |
| unpackIntsLE | back to summary |
|---|---|
| private static void unpackIntsLE(byte[] buf, int off, int nrInts, int[] dst, int dstOff) | |
| unpackSigmaString | back to summary |
|---|---|
| private static int[] unpackSigmaString(byte[] buf) | |