Such a padding packet MUST be ignored when received.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | MAX_PADDING_LEN
Maximum random padding length. |
| public static final int | MIN_PADDING_LEN
Minimum random padding length in octets. |
| private PaddingPacket |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | PGPPadding(SecureRandom
random number generator instance random)Generate a new, random |
| public | |
| public | PGPPadding(int
number of random octets len, SecureRandom random number generator instance random)Generate a new, random |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public byte[] | |
| public byte[] | |
| public byte[] |
| MAX_PADDING_LEN | back to summary |
|---|---|
| public static final int MAX_PADDING_LEN Maximum random padding length. Chosen somewhat arbitrarily, as SSH also uses max 255 bytes for random padding.
| |
| MIN_PADDING_LEN | back to summary |
|---|---|
| public static final int MIN_PADDING_LEN Minimum random padding length in octets. Chosen totally arbitrarily. | |
| p | back to summary |
|---|---|
| private PaddingPacket p | |
| PGPPadding | back to summary |
|---|---|
| public PGPPadding(BCPGInputStream in) throws IOException Default constructor.
| |
| PGPPadding | back to summary |
|---|---|
| public PGPPadding() Generate a new, random | |
| PGPPadding | back to summary |
|---|---|
| public PGPPadding(SecureRandom random) Generate a new, random
| |
| PGPPadding | back to summary |
|---|---|
| public PGPPadding(int len) Generate a new, random lenrandom bytes. | |
| PGPPadding | back to summary |
|---|---|
| public PGPPadding(int len, SecureRandom random) Generate a new, random lenrandom bytes.
| |
| encode | back to summary |
|---|---|
| public void encode(OutputStream outStream) throws IOException | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws IOException | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded(PacketFormat format) throws IOException | |
| getPadding | back to summary |
|---|---|
| public byte[] getPadding() Return the padding octets as a byte array.
| |