public class ISO10126d2Padding extends java.lang.Object implements BlockCipherPadding
| Constructor and Description |
|---|
ISO10126d2Padding() |
| Modifier and Type | Method and Description |
|---|---|
int |
addPadding(byte[] in,
int inOff)
add the pad bytes to the passed in block, returning the
number of bytes added.
|
java.lang.String |
getPaddingName()
Return the name of the algorithm the padder implements.
|
void |
init(java.security.SecureRandom random)
Initialise the padder.
|
int |
padCount(byte[] in)
return the number of pad bytes present in the block.
|
public void init(java.security.SecureRandom random)
throws java.lang.IllegalArgumentException
init in interface BlockCipherPaddingrandom - a SecureRandom if available.java.lang.IllegalArgumentExceptionpublic java.lang.String getPaddingName()
getPaddingName in interface BlockCipherPaddingpublic int addPadding(byte[] in,
int inOff)
addPadding in interface BlockCipherPaddingpublic int padCount(byte[] in)
throws InvalidCipherTextException
padCount in interface BlockCipherPaddingInvalidCipherTextException - if the padding is badly formed
or invalid.