package aalg.crypto;

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

public interface IStreamDecryptor extends IInputStreamFilter {
	/**
	 * Initializes decryption.
	 * @param cipherTextStream stream for encrypted data
	 * @throws IOException 
	 */
	public void initialize(final InputStream cipherTextStream) throws IOException;
	
	/**
	 * Finishes decryption, same as closing plaintext stream.
	 * Closes also cipherTextStream.
	 */
	public void finish();

}
