Added decrypt_stream and encrypt_stream.