| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final AsymmetricBlockCipher | |
| private boolean | |
| private final Digest | |
| private final int | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public byte[] | |
| public int | getInputBlockSize()
Implements org. returns the largest size an input block can be. |
| private static int | |
| public int | getOutputBlockSize()
Implements org. returns the maximum size of the block produced by this cipher. |
| 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. initialise the cipher. |
| private void | maskGeneratorFunction1(byte[] z, int zOff, int zLen, byte[] mask, int maskOff, int maskLen)
mask generator function, as described in PKCS1v2. |
| 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. process the block of len bytes stored in in from offset inOff. |
| defHash | back to summary |
|---|---|
| private final byte[] defHash | |
| engine | back to summary |
|---|---|
| private final AsymmetricBlockCipher engine | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| mgf1Hash | back to summary |
|---|---|
| private final Digest mgf1Hash | |
| mgf1NoMemoLimit | back to summary |
|---|---|
| private final int mgf1NoMemoLimit | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| OAEPEncoding | back to summary |
|---|---|
| public OAEPEncoding(AsymmetricBlockCipher cipher) | |
| OAEPEncoding | back to summary |
|---|---|
| public OAEPEncoding(AsymmetricBlockCipher cipher, Digest hash) | |
| OAEPEncoding | back to summary |
|---|---|
| public OAEPEncoding(AsymmetricBlockCipher cipher, Digest hash, byte[] encodingParams) | |
| OAEPEncoding | back to summary |
|---|---|
| public OAEPEncoding(AsymmetricBlockCipher cipher, Digest hash, Digest mgf1Hash, byte[] encodingParams) | |
| decodeBlock | back to summary |
|---|---|
public byte[] decodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
| |
| encodeBlock | back to summary |
|---|---|
| public 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.
| |
| getMGF1NoMemoLimit | back to summary |
|---|---|
| private static int getMGF1NoMemoLimit(Digest d) | |
| 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.
| |
| maskGeneratorFunction1 | back to summary |
|---|---|
| private void maskGeneratorFunction1(byte[] z, int zOff, int zLen, byte[] mask, int maskOff, int maskLen) mask generator function, as described in PKCS1v2. | |
| 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.
| |