|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.paddings.ISO10126d2Padding
public class ISO10126d2Padding
A padder that adds ISO10126-2 padding to a block.
| Constructor Summary | |
|---|---|
ISO10126d2Padding()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISO10126d2Padding()
| Method Detail |
|---|
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 BlockCipherPadding
public int addPadding(byte[] in,
int inOff)
addPadding in interface BlockCipherPadding
public int padCount(byte[] in)
throws InvalidCipherTextException
padCount in interface BlockCipherPaddingInvalidCipherTextException - if the padding is badly formed
or invalid.
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||