|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.paddings.ISO7816d4Padding
public class ISO7816d4Padding
A padder that adds the padding according to the scheme referenced in ISO 7814-4 - scheme 2 from ISO 9797-1. The first byte is 0x80, rest is 0x00
Constructor Summary | |
---|---|
ISO7816d4Padding()
|
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 ISO7816d4Padding()
Method Detail |
---|
public void init(java.security.SecureRandom random) throws java.lang.IllegalArgumentException
init
in interface BlockCipherPadding
random
- - a SecureRandom if available.
java.lang.IllegalArgumentException
public 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 BlockCipherPadding
InvalidCipherTextException
- if the padding is badly formed
or invalid.
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |