java.lang.Object | |
↳ | org.bouncycastle.crypto.paddings.X923Padding |
A padder that adds X9.23 padding to a block - if a SecureRandom is passed in random padding is assumed, otherwise padding with zeros is used.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
add the pad bytes to the passed in block, returning the
number of bytes added.
| |||||||||||
Return the name of the algorithm the padder implements.
| |||||||||||
Initialise the padder.
| |||||||||||
return the number of pad bytes present in the block.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.paddings.BlockCipherPadding
|
add the pad bytes to the passed in block, returning the number of bytes added.
Return the name of the algorithm the padder implements.
Initialise the padder.
random | a SecureRandom if one is available. |
---|
IllegalArgumentException |
---|
return the number of pad bytes present in the block.
InvalidCipherTextException |
---|