public interface AsymmetricBlockCipher
Modifier and Type | Method and Description |
---|---|
int |
getInputBlockSize()
returns the largest size an input block can be.
|
int |
getOutputBlockSize()
returns the maximum size of the block produced by this cipher.
|
void |
init(boolean forEncryption,
CipherParameters param)
initialise the cipher.
|
byte[] |
processBlock(byte[] in,
int inOff,
int len)
process the block of len bytes stored in in from offset inOff.
|
void init(boolean forEncryption, CipherParameters param)
forEncryption
- if true the cipher is initialised for
encryption, if false for decryption.param
- the key and other data required by the cipher.int getInputBlockSize()
int getOutputBlockSize()
byte[] processBlock(byte[] in, int inOff, int len) throws InvalidCipherTextException
in
- the input datainOff
- offset into the in array where the data startslen
- the length of the block to be processed.InvalidCipherTextException
- data decrypts improperly.DataLengthException
- the input data is too large for the cipher.Copyright © 2015. All rights reserved.