package aalg.crypto;

import java.io.IOException;
import java.io.OutputStream;

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