11#ifndef INCLUDED_OOX_CRYPTO_CRYPTOENGINE_HXX
12#define INCLUDED_OOX_CRYPTO_CRYPTOENGINE_HXX
16#include <rtl/ustring.hxx>
19#include <com/sun/star/io/XInputStream.hpp>
20#include <com/sun/star/io/XOutputStream.hpp>
23 class BinaryXInputStream;
24 class BinaryXOutputStream;
32 std::vector<sal_uInt8>
mKey;
55 virtual void encrypt(
const css::uno::Reference<css::io::XInputStream> & rxInputStream,
56 css::uno::Reference<css::io::XOutputStream> & rxOutputStream,
57 sal_uInt32 nSize) = 0;
Wraps a UNO output stream and provides convenient access functions.
virtual bool generateEncryptionKey(const OUString &rPassword)=0
std::vector< sal_uInt8 > mKey
virtual bool readEncryptionInfo(css::uno::Reference< css::io::XInputStream > &rxInputStream)=0
virtual bool checkDataIntegrity()=0
virtual void encrypt(const css::uno::Reference< css::io::XInputStream > &rxInputStream, css::uno::Reference< css::io::XOutputStream > &rxOutputStream, sal_uInt32 nSize)=0
virtual bool decrypt(BinaryXInputStream &aInputStream, BinaryXOutputStream &aOutputStream)=0
virtual bool setupEncryption(const OUString &rPassword)=0
virtual void writeEncryptionInfo(BinaryXOutputStream &rStream)=0