| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private AsymmetricBlockCipher | |
| private boolean | |
| private boolean | |
| private static final int | |
| public static final String | NOT_STRICT_LENGTH_ENABLED_PROPERTY
some providers fail to include the leading zero in PKCS1 encoded blocks. |
| private SecureRandom | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| private byte[] | |
| private int | |
| 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 |
| dudBlock | back to summary |
|---|---|
| private byte[] dudBlock | |
| 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 | |
| NOT_STRICT_LENGTH_ENABLED_PROPERTY | back to summary |
|---|---|
| public static final String NOT_STRICT_LENGTH_ENABLED_PROPERTY some providers fail to include the leading zero in PKCS1 encoded blocks. If you need to work with one of these set the system property org.bouncycastle.pkcs1.strict to false. The system property is checked during construction of the encoding object, it is set to true by default. | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| useStrictLength | back to summary |
|---|---|
| private boolean useStrictLength | |
| PKCS1Encoding | back to summary |
|---|---|
| public PKCS1Encoding(AsymmetricBlockCipher cipher) Basic constructor. | |
| 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 | |
| findStart | back to summary |
|---|---|
| private int findStart(byte type, byte[] block) 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() | |