| com.sun.midp.crypto.Padder
All known Subclasses: com.sun.midp.crypto.PKCS5Padding,
Padder | public interface Padder (Code) | | Implementors will provide padding schemes for the respective ciphers.
|
Method Summary | |
public int | pad(byte[] queue, int count) Pads the input according to the padding scheme dictated by the
concrete implementor. | public int | unPad(byte[] outBuff, int size) Removes padding bytes. |
pad | public int pad(byte[] queue, int count)(Code) | | Pads the input according to the padding scheme dictated by the
concrete implementor.
Parameters: queue - containing 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.
Parameters: outBuff - the output buffer Parameters: size - size of data the number of padding bytes exception: BadPaddingException - if not properly padded |
|
|