| java.lang.Object com.sun.midp.crypto.PKCS5Padding
PKCS5Padding | final public class PKCS5Padding implements Padder(Code) | | This class implements padding as specified in the PKCS#5 standard.
|
Constructor Summary | |
public | PKCS5Padding(int blockSize) Constructor. |
Method Summary | |
public int | pad(byte[] queue, int count) Pads the input according to the PKCS5 padding scheme. | public int | unPad(byte[] outBuff, int size) Removes padding bytes that were added to the input. |
PKCS5Padding | public PKCS5Padding(int blockSize)(Code) | | Constructor.
Parameters: blockSize - block size |
pad | public int pad(byte[] queue, int count)(Code) | | Pads the input according to the PKCS5 padding scheme.
Parameters: queue - containing the last bytes of data that must be padded Parameters: count - number of data bytes the number of padding bytes added |
unPad | public int unPad(byte[] outBuff, int size) throws BadPaddingException(Code) | | Removes padding bytes that were added to the input.
Parameters: outBuff - the output buffer Parameters: size - size of data the number of padding bytes, allowing them to be removedprior toputting results in the users output buffer and -1 if input is not properlypadded exception: BadPaddingException - if not properly padded |
|
|