| org.bouncycastle.crypto.AsymmetricBlockCipher
All known Subclasses: org.bouncycastle.crypto.engines.RSAEngine, org.bouncycastle.crypto.engines.RSABlindedEngine, org.bouncycastle.crypto.engines.RSABlindingEngine, org.bouncycastle.crypto.engines.NaccacheSternEngine, org.bouncycastle.crypto.encodings.ISO9796d1Encoding, org.bouncycastle.crypto.engines.ElGamalEngine, org.bouncycastle.crypto.encodings.OAEPEncoding, org.bouncycastle.crypto.encodings.PKCS1Encoding,
AsymmetricBlockCipher | public interface AsymmetricBlockCipher (Code) | | base interface that a public/private key block cipher needs
to conform to.
|
Method Summary | |
public int | getInputBlockSize() returns the largest size an input block can be. | public int | getOutputBlockSize() returns the maximum size of the block produced by this cipher. | public void | init(boolean forEncryption, CipherParameters param) initialise the cipher. | public byte[] | processBlock(byte[] in, int inOff, int len) process the block of len bytes stored in in from offset inOff.
Parameters: in - the input data Parameters: inOff - offset into the in array where the data starts Parameters: len - the length of the block to be processed. |
getInputBlockSize | public int getInputBlockSize()(Code) | | returns the largest size an input block can be.
maximum size for an input block. |
getOutputBlockSize | public int getOutputBlockSize()(Code) | | returns the maximum size of the block produced by this cipher.
maximum size of the output block produced by the cipher. |
init | public void init(boolean forEncryption, CipherParameters param)(Code) | | initialise the cipher.
Parameters: forEncryption - if true the cipher is initialised for encryption, if false for decryption. Parameters: param - the key and other data required by the cipher. |
processBlock | public byte[] processBlock(byte[] in, int inOff, int len) throws InvalidCipherTextException(Code) | | process the block of len bytes stored in in from offset inOff.
Parameters: in - the input data Parameters: inOff - offset into the in array where the data starts Parameters: len - the length of the block to be processed. the resulting byte array of the encryption/decryption process. exception: InvalidCipherTextException - data decrypts improperly. exception: DataLengthException - the input data is too large for the cipher. |
|
|