| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final int | |
| private final Cipher | |
| private final int | |
| private final JcaTlsCrypto | |
| private SecretKey | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | JceBlockCipherImpl(JcaTlsCrypto crypto, Cipher cipher, String algorithm, int keySize, boolean isEncrypting)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
array holding input data to the cipher. input, int offset into input array data starts at. inputOffset, int length of the input data in the array. inputLength, byte[] array to hold the cipher output. output, int offset into output array to start saving output. outputOffset)Implements org. Perform the cipher encryption/decryption returning the output in output. |
| public int | getBlockSize()
Implements org. Return the blocksize (in bytes) of the underlying block cipher. |
| public void | init(byte[]
array holding the initialization vector (IV). iv, int offset into the array the IV starts at. ivOff, int length of the IV in the array. ivLen)Implements org. Initialise the parameters for operator. |
| public void | setKey(byte[]
array holding the block cipher key. key, int offset into the array the key starts at. keyOff, int length of the key in the array. keyLen)Implements org. Set the key to be used by the block cipher implementation supporting this service. |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| BUF_SIZE | back to summary |
|---|---|
| private static final int BUF_SIZE | |
| cipher | back to summary |
|---|---|
| private final Cipher cipher | |
| cipherMode | back to summary |
|---|---|
| private final int cipherMode | |
| crypto | back to summary |
|---|---|
| private final JcaTlsCrypto crypto | |
| key | back to summary |
|---|---|
| private SecretKey key | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| JceBlockCipherImpl | back to summary |
|---|---|
| public JceBlockCipherImpl(JcaTlsCrypto crypto, Cipher cipher, String algorithm, int keySize, boolean isEncrypting) throws GeneralSecurityException | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) Implements org. Doc from org. Perform the cipher encryption/decryption returning the output in output. Note we have to use doFinal() here as it is the only way to guarantee output from the underlying cipher.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the blocksize (in bytes) of the underlying block cipher.
| |
| init | back to summary |
|---|---|
| public void init(byte[] iv, int ivOff, int ivLen) Implements org. Doc from org. Initialise the parameters for operator.
| |
| setKey | back to summary |
|---|---|
| public void setKey(byte[] key, int keyOff, int keyLen) Implements org. Doc from org. Set the key to be used by the block cipher implementation supporting this service.
| |