LibreOffice Module package (master) 1
EncryptionData.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_PACKAGE_INC_ENCRYPTIONDATA_HXX
20#define INCLUDED_PACKAGE_INC_ENCRYPTIONDATA_HXX
21
22#include <com/sun/star/uno/Sequence.hxx>
23#include <cppuhelper/weak.hxx>
24
26{
27public:
28 css::uno::Sequence< sal_Int8 > m_aSalt;
29 css::uno::Sequence< sal_Int8 > m_aInitVector;
30 css::uno::Sequence< sal_Int8 > m_aDigest;
32
34 : m_nIterationCount ( 0 ){}
35
37 : cppu::OWeakObject()
42 {}
43};
44
46{
47public:
48 css::uno::Sequence < sal_Int8 > m_aKey;
49 sal_Int32 m_nEncAlg;
50 sal_Int32 m_nCheckAlg;
54
55 EncryptionData(const BaseEncryptionData& aData, const css::uno::Sequence< sal_Int8 >& aKey, sal_Int32 nEncAlg, sal_Int32 nCheckAlg, sal_Int32 nDerivedKeySize, sal_Int32 nStartKeyGenID, bool const bTryWrongSHA1)
57 , m_aKey( aKey )
58 , m_nEncAlg( nEncAlg )
59 , m_nCheckAlg( nCheckAlg )
60 , m_nDerivedKeySize( nDerivedKeySize )
61 , m_nStartKeyGenID( nStartKeyGenID )
62 , m_bTryWrongSHA1(bTryWrongSHA1)
63 {}
64
73 {}
74};
75
76#endif
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 m_nIterationCount
BaseEncryptionData(const BaseEncryptionData &aData)
css::uno::Sequence< sal_Int8 > m_aDigest
css::uno::Sequence< sal_Int8 > m_aSalt
css::uno::Sequence< sal_Int8 > m_aInitVector
EncryptionData(const EncryptionData &aData)
sal_Int32 m_nStartKeyGenID
sal_Int32 m_nDerivedKeySize
sal_Int32 m_nCheckAlg
sal_Int32 m_nEncAlg
EncryptionData(const BaseEncryptionData &aData, const css::uno::Sequence< sal_Int8 > &aKey, sal_Int32 nEncAlg, sal_Int32 nCheckAlg, sal_Int32 nDerivedKeySize, sal_Int32 nStartKeyGenID, bool const bTryWrongSHA1)
css::uno::Sequence< sal_Int8 > m_aKey
constexpr OUStringLiteral aData