| Modifier and Type | Field and Description |
|---|---|
| private boolean | calledUpdate
Whether the cipher has processed any data yet. |
| private final NativeRef. | cipherCtx
Native pointer for the OpenSSL EVP_CIPHER context. |
| private int | modeBlockSize
The block size of the current mode. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 abstract String | getCipherName(int keySize, OpenSSLCipher.
Returns the OpenSSL cipher name for the particular |
| 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. |
| calledUpdate | back to summary |
|---|---|
| private boolean calledUpdate Whether the cipher has processed any data yet. EVP_CIPHER doesn't like calling "doFinal()" in decryption mode without processing any updates. | |
| cipherCtx | back to summary |
|---|---|
| private final NativeRef. Native pointer for the OpenSSL EVP_CIPHER context. | |
| modeBlockSize | back to summary |
|---|---|
| private int modeBlockSize The block size of the current mode. | |
| OpenSSLEvpCipher | back to summary |
|---|---|
| public OpenSSLEvpCipher(OpenSSLCipher. | |
| 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
| |
| getCipherName | back to summary |
|---|---|
| pack-priv abstract String getCipherName(int keySize, OpenSSLCipher. Returns the OpenSSL cipher name for the particular | |
| 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() Reset this Cipher instance state to process a new chunk of data. | |
| 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
| |