1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #ifndef INCLUDED_OOX_CRYPTO_CRYPTOENGINE_HXX
12 #define INCLUDED_OOX_CRYPTO_CRYPTOENGINE_HXX
16 #include <rtl/ustring.hxx>
17 #include <sal/types.h>
20 class BinaryXInputStream
;
21 class BinaryXOutputStream
;
30 std::vector
<sal_uInt8
> mKey
;
36 virtual ~CryptoEngine()
39 virtual void writeEncryptionInfo(
40 const OUString
& rPassword
,
41 BinaryXOutputStream
& rStream
) = 0;
43 virtual bool generateEncryptionKey(const OUString
& rPassword
) = 0;
46 BinaryXInputStream
& aInputStream
,
47 BinaryXOutputStream
& aOutputStream
) = 0;
50 BinaryXInputStream
& aInputStream
,
51 BinaryXOutputStream
& aOutputStream
) = 0;
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */