FileDocCategorySizeDatePackage
Padder.javaAPI DocphoneME MR2 API (J2ME)1785Wed May 02 18:00:24 BST 2007com.sun.midp.crypto

Padder

public interface Padder
Implementors will provide padding schemes for the respective ciphers.

Fields Summary
Constructors Summary
Methods Summary
public intpad(byte[] queue, int count)
Pads the input according to the padding scheme dictated by the concrete implementor.

param
queue containing data that must be padded
param
count number of data bytes
return
the number of padding bytes added

public intunPad(byte[] outBuff, int size)
Removes padding bytes.

param
outBuff the output buffer
param
size size of data
return
the number of padding bytes
exception
BadPaddingException if not properly padded