| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkSupportedKeySize(int keySize)
Implements abstract org. keySize (in
bytes) and throws InvalidKeyException if it doesn't.
|
| pack-priv void | checkSupportedMode(OpenSSLCipher.
Implements abstract org. mode
and throws NoSuchAlgorithmException if it doesn't.
|
| pack-priv void | checkSupportedPadding(OpenSSLCipher.
Implements abstract org. padding
and throws NoSuchPaddingException if it doesn't.
|
| pack-priv int | doFinalInternal(byte[] output, int outputOffset, int maximumLen)
Implements abstract org. |
| pack-priv void | engineInitInternal(byte[] encodedKey, AlgorithmParameterSpec params, SecureRandom random)
Implements abstract org. |
| pack-priv String | getBaseCipherName()
Implements abstract org. |
| pack-priv int | |
| pack-priv int | getOutputSizeForFinal(int inputLen)
Implements abstract org. doFinal() is called with this
inputLen.
|
| pack-priv int | getOutputSizeForUpdate(int inputLen)
Implements abstract org. update() is called with this
inputLen.
|
| private void | |
| pack-priv int | updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset, int maximumLen)
Implements abstract org. |
| BLOCK_SIZE_BYTES | back to summary |
|---|---|
| private static final int BLOCK_SIZE_BYTES | |
| blockCounter | back to summary |
|---|---|
| private int blockCounter | |
| currentBlockConsumedBytes | back to summary |
|---|---|
| private int currentBlockConsumedBytes | |
| NONCE_SIZE_BYTES | back to summary |
|---|---|
| private static final int NONCE_SIZE_BYTES | |
| OpenSSLCipherChaCha20 | back to summary |
|---|---|
| public OpenSSLCipherChaCha20() | |
| checkSupportedKeySize | back to summary |
|---|---|
| pack-priv void checkSupportedKeySize(int keySize) throws InvalidKeyException Implements abstract org. Doc from org. Checks whether the cipher supports this particular
| |
| checkSupportedMode | back to summary |
|---|---|
| pack-priv void checkSupportedMode(OpenSSLCipher. Implements abstract org. Doc from org. Checks whether the cipher supports this particular cipher
| |
| checkSupportedPadding | back to summary |
|---|---|
| pack-priv void checkSupportedPadding(OpenSSLCipher. Implements abstract org. Doc from org. Checks whether the cipher supports this particular cipher
| |
| doFinalInternal | back to summary |
|---|---|
| pack-priv int doFinalInternal(byte[] output, int outputOffset, int maximumLen) throws IllegalBlockSizeException, BadPaddingException, ShortBufferException Implements abstract org. Doc from org. API-specific implementation of the final block. The
| |
| engineInitInternal | back to summary |
|---|---|
| pack-priv void engineInitInternal(byte[] encodedKey, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract org. Doc from org. API-specific implementation of initializing the cipher. The
| |
| getBaseCipherName | back to summary |
|---|---|
| pack-priv String getBaseCipherName() Implements abstract org. Doc from org. Returns the standard name for the particular algorithm.
| |
| getCipherBlockSize | back to summary |
|---|---|
| pack-priv int getCipherBlockSize() Implements abstract org.
| |
| getOutputSizeForFinal | back to summary |
|---|---|
| pack-priv int getOutputSizeForFinal(int inputLen) Implements abstract org. Doc from org. The size of output if
| |
| getOutputSizeForUpdate | back to summary |
|---|---|
| pack-priv int getOutputSizeForUpdate(int inputLen) Implements abstract org. Doc from org. The size of output if
| |
| reset | back to summary |
|---|---|
| private void reset() | |
| updateInternal | back to summary |
|---|---|
| pack-priv int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset, int maximumLen) throws ShortBufferException Implements abstract org. Doc from org. API-specific implementation of updating the cipher. The
| |