package aalg.crypto;

import java.io.IOException;
import java.io.InputStream;

public interface IPaddingReader extends IInputStreamFilter {
	/**
	 * Initializes padding.
	 * @param targetStream stream that is padded
	 * @param blockLength length of block in bytes
	 */
	public void initialize (final InputStream paddedStream, final int blockLength) throws IOException;
	
	/**
	 * Finishes padding.
	 * Same as closing streamToPad.
	 * Closes also target stream.
	 */
	public void finish() throws IOException;

}
