java.lang.Object | |
↳ | org.bouncycastle.crypto.BufferedAsymmetricBlockCipher |
a buffer wrapper for an asymmetric block cipher, allowing input to be accumulated in a piecemeal fashion until final processing.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
buf | |||||||||||
bufOff |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
base constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
process the contents of the buffer using the underlying
cipher.
| |||||||||||
return the amount of data sitting in the buffer.
| |||||||||||
returns the largest size an input block can be.
| |||||||||||
returns the maximum size of the block produced by this cipher.
| |||||||||||
return the underlying cipher for the buffer.
| |||||||||||
initialise the buffer and the underlying cipher.
| |||||||||||
add another byte for processing.
| |||||||||||
add len bytes to the buffer for processing.
| |||||||||||
Reset the buffer and the underlying cipher.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
base constructor.
cipher | the cipher this buffering object wraps. |
---|
process the contents of the buffer using the underlying cipher.
InvalidCipherTextException | if we are given a garbage block. |
---|
return the amount of data sitting in the buffer.
returns the largest size an input block can be.
returns the maximum size of the block produced by this cipher.
return the underlying cipher for the buffer.
initialise the buffer and the underlying cipher.
forEncryption | if true the cipher is initialised for encryption, if false for decryption. |
---|---|
params | the key and other data required by the cipher. |
add another byte for processing.
in | the input byte. |
---|
add len bytes to the buffer for processing.
in | the input data |
---|---|
inOff | offset into the in array where the data starts |
len | the length of the block to be processed. |
Reset the buffer and the underlying cipher.