| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.bouncycastle.crypto.encodings.OAEPEncodingConstructor Summary | |
| |
| |
| |
Method Summary | |
byte[] |
|
byte[] |
|
int |
|
int |
|
AsymmetricBlockCipher | |
void |
|
byte[] |
|
public byte[] decodeBlock(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextException
- Throws:
InvalidCipherTextException- if the decrypted block turns out to be badly formatted.
public byte[] encodeBlock(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextExceptionpublic int getInputBlockSize()
returns the largest size an input block can be.
- Specified by:
- getInputBlockSize in interface AsymmetricBlockCipher
- Returns:
- maximum size for an input block.
public int getOutputBlockSize()
returns the maximum size of the block produced by this cipher.
- Specified by:
- getOutputBlockSize in interface AsymmetricBlockCipher
- Returns:
- maximum size of the output block produced by the cipher.
public void init(boolean forEncryption,
CipherParameters param)initialise the cipher.
- Specified by:
- init in interface AsymmetricBlockCipher
- Parameters:
forEncryption- if true the cipher is initialised for encryption, if false for decryption.param- the key and other data required by the cipher.
public byte[] processBlock(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextExceptionprocess the block of len bytes stored in in from offset inOff.
- Specified by:
- processBlock in interface AsymmetricBlockCipher
- Parameters:
in- the input datainOff- offset into the in array where the data starts
- Returns:
- the resulting byte array of the encryption/decryption process.
- Throws:
InvalidCipherTextException- data decrypts improperly.