| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | |
| protected int | |
| private final AsymmetricBlockCipher |
| Access | Constructor and Description |
|---|---|
| public | BufferedAsymmetricBlockCipher(AsymmetricBlockCipher
the cipher this buffering object wraps. cipher)base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the result of the encryption/decryption process on the buffer.process the contents of the buffer using the underlying cipher. |
| public int | Returns: the amount of data sitting in the buffer.return the amount of data sitting in the buffer. |
| public int | Returns: maximum size for an input block.returns the largest size an input block can be. |
| public int | Returns: maximum size of the output block produced by the cipher.returns the maximum size of the block produced by this cipher. |
| public AsymmetricBlockCipher | Returns: the underlying cipher for the buffer.return the underlying cipher for the buffer. |
| public void | init(boolean
if true the cipher is initialised for
encryption, if false for decryption. forEncryption, CipherParameters the key and other data required by the cipher. params)initialise the buffer and the underlying cipher. |
| public void | |
| public void | processBytes(byte[]
the input data in, int offset into the in array where the data starts inOff, int the length of the block to be processed. len)add len bytes to the buffer for processing. |
| public void |
| buf | back to summary |
|---|---|
| protected byte[] buf | |
| bufOff | back to summary |
|---|---|
| protected int bufOff | |
| cipher | back to summary |
|---|---|
| private final AsymmetricBlockCipher cipher | |
| BufferedAsymmetricBlockCipher | back to summary |
|---|---|
| public BufferedAsymmetricBlockCipher(AsymmetricBlockCipher cipher) base constructor.
| |
| doFinal | back to summary |
|---|---|
| public byte[] doFinal() throws InvalidCipherTextException process the contents of the buffer using the underlying cipher.
| |
| getBufferPosition | back to summary |
|---|---|
| public int getBufferPosition() return the amount of data sitting in the buffer.
| |
| getInputBlockSize | back to summary |
|---|---|
| public int getInputBlockSize() returns the largest size an input block can be.
| |
| getOutputBlockSize | back to summary |
|---|---|
| public int getOutputBlockSize() returns the maximum size of the block produced by this cipher.
| |
| getUnderlyingCipher | back to summary |
|---|---|
| public AsymmetricBlockCipher getUnderlyingCipher() return the underlying cipher for the buffer.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) initialise the buffer and the underlying cipher.
| |
| processByte | back to summary |
|---|---|
| public void processByte(byte in) add another byte for processing.
| |
| processBytes | back to summary |
|---|---|
| public void processBytes(byte[] in, int inOff, int len) add len bytes to the buffer for processing.
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the buffer and the underlying cipher. | |