Padding
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the length of the paddingthe length of the data to pad len)Implements com. Determines how long the padding will be for a given input length. |
| public void | padWithLen(byte[]
the input buffer with the data to pad in, int the offset in off, int in where the padding bytes
are appendedthe number of padding bytes to add len)Implements com. Adds the given number of padding bytes to the data input. |
| public int | Returns: the index where the padding starts, or -1 if the input is not properly paddedthe buffer with the padded data in, int the offset in off, int in where the padded data startsthe length of the padded data len)Implements com. Returns the index where the padding starts. |
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| PKCS5Padding | back to summary |
|---|---|
| pack-priv PKCS5Padding(int blockSize) | |
| padLength | back to summary |
|---|---|
| public int padLength(int len) Implements com. Determines how long the padding will be for a given input length.
| |
| padWithLen | back to summary |
|---|---|
| public void padWithLen(byte[] in, int off, int len) throws ShortBufferException Implements com. Adds the given number of padding bytes to the data input. The value of the padding bytes is determined by the specific padding mechanism that implements this interface.
| |
| unpad | back to summary |
|---|---|
| public int unpad(byte[] in, int off, int len) Implements com. Returns the index where the padding starts. Given a buffer with padded data, this method returns the index where the padding starts.
| |