| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private AsymmetricBlockCipher | |
| private boolean | |
| private boolean | |
| private static final int | |
| private SecureRandom | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| private byte[] | |
| private byte[] | |
| public int | getInputBlockSize()
Implements org. |
| public int | getOutputBlockSize()
Implements org. |
| public AsymmetricBlockCipher | |
| 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. param)Implements org. |
| public byte[] | processBlock(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. inLen)Implements org. |
| private boolean |
| blockBuffer | back to summary |
|---|---|
| private byte[] blockBuffer | |
| engine | back to summary |
|---|---|
| private AsymmetricBlockCipher engine | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| forPrivateKey | back to summary |
|---|---|
| private boolean forPrivateKey | |
| HEADER_LENGTH | back to summary |
|---|---|
| private static final int HEADER_LENGTH | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| useStrictLength | back to summary |
|---|---|
| private boolean useStrictLength | |
| CustomPKCS1Encoding | back to summary |
|---|---|
| pack-priv CustomPKCS1Encoding(AsymmetricBlockCipher cipher) Basic constructor. | |
| checkPkcs1Encoding1 | back to summary |
|---|---|
| private static int checkPkcs1Encoding1(byte[] buf) Check the argument is a valid encoding with type 1. Returns the plaintext length if valid, or -1 if invalid. | |
| checkPkcs1Encoding2 | back to summary |
|---|---|
| private static int checkPkcs1Encoding2(byte[] buf) Check the argument is a valid encoding with type 2. Returns the plaintext length if valid, or -1 if invalid. | |
| decodeBlock | back to summary |
|---|---|
private byte[] decodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
| |
| encodeBlock | back to summary |
|---|---|
| private byte[] encodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException | |
| getInputBlockSize | back to summary |
|---|---|
| public int getInputBlockSize() Implements org. Doc from org. returns the largest size an input block can be.
| |
| getOutputBlockSize | back to summary |
|---|---|
| public int getOutputBlockSize() Implements org. Doc from org. returns the maximum size of the block produced by this cipher.
| |
| getUnderlyingCipher | back to summary |
|---|---|
| public AsymmetricBlockCipher getUnderlyingCipher() | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters param) Implements org. Doc from org. initialise the cipher.
| |
| processBlock | back to summary |
|---|---|
| public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException Implements org. Doc from org. process the block of len bytes stored in in from offset inOff.
| |
| useStrict | back to summary |
|---|---|
| private boolean useStrict() | |