PKCS5Padding
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the length of the paddingthe length of the data to pad len)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)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 data and their padding in, int the offset in off, int in where the data startsthe length of the data and their padding len)Returns the index where padding starts. |
| padLength | back to summary |
|---|---|
| public int padLength(int len) 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 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) Returns the index where padding starts. Given a buffer with data and their padding, this method returns the index where the padding starts.
| |