This padding pads the block out with the compliment of the last bit of the plain text.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | addPadding(byte[] in, int inOff)
Implements org. add the pad bytes to the passed in block, returning the number of bytes added. |
| public String | Returns: the name of the algorithm the padder implements.Implements org. Return the name of the algorithm the padder implements. |
| public void | init(SecureRandom
- a SecureRandom if available. random)Implements org. Initialise the padder. |
| public int | padCount(byte[] in)
Implements org. return the number of pad bytes present in the block. |
| TBCPadding | back to summary |
|---|---|
| public TBCPadding() | |
| addPadding | back to summary |
|---|---|
| public int addPadding(byte[] in, int inOff) Implements org. add the pad bytes to the passed in block, returning the number of bytes added. Note this assumes that the last block of plain text is always passed to it inside in. i.e. if inOff is zero, indicating the entire block is to be overwritten with padding the value of in should be the same as the last block of plain text. | |
| getPaddingName | back to summary |
|---|---|
| public String getPaddingName() Implements org. Return the name of the algorithm the padder implements.
| |
| init | back to summary |
|---|---|
| public void init(SecureRandom random) throws IllegalArgumentException Implements org. Initialise the padder.
| |
| padCount | back to summary |
|---|---|
| public int padCount(byte[] in) throws InvalidCipherTextException Implements org. return the number of pad bytes present in the block.
| |