bump product version to 6.4.0.3
[LibreOffice.git] / package / inc / EncryptionData.hxx
blob66f8aeb5881a3e96bf09781f7ae423a870b5267d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_PACKAGE_INC_ENCRYPTIONDATA_HXX
20 #define INCLUDED_PACKAGE_INC_ENCRYPTIONDATA_HXX
22 #include <com/sun/star/uno/Sequence.hxx>
23 #include <cppuhelper/weak.hxx>
25 class BaseEncryptionData : public cppu::OWeakObject
27 public:
28 css::uno::Sequence< sal_Int8 > m_aSalt;
29 css::uno::Sequence< sal_Int8 > m_aInitVector;
30 css::uno::Sequence< sal_Int8 > m_aDigest;
31 sal_Int32 m_nIterationCount;
33 BaseEncryptionData()
34 : m_nIterationCount ( 0 ){}
36 BaseEncryptionData( const BaseEncryptionData& aData )
37 : cppu::OWeakObject()
38 , m_aSalt( aData.m_aSalt )
39 , m_aInitVector( aData.m_aInitVector )
40 , m_aDigest( aData.m_aDigest )
41 , m_nIterationCount( aData.m_nIterationCount )
45 class EncryptionData : public BaseEncryptionData
47 public:
48 css::uno::Sequence < sal_Int8 > m_aKey;
49 sal_Int32 const m_nEncAlg;
50 sal_Int32 const m_nCheckAlg;
51 sal_Int32 const m_nDerivedKeySize;
52 sal_Int32 const m_nStartKeyGenID;
53 bool const m_bTryWrongSHA1;
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)
56 : BaseEncryptionData( aData )
57 , m_aKey( aKey )
58 , m_nEncAlg( nEncAlg )
59 , m_nCheckAlg( nCheckAlg )
60 , m_nDerivedKeySize( nDerivedKeySize )
61 , m_nStartKeyGenID( nStartKeyGenID )
62 , m_bTryWrongSHA1(bTryWrongSHA1)
65 EncryptionData( const EncryptionData& aData )
66 : BaseEncryptionData( aData )
67 , m_aKey( aData.m_aKey )
68 , m_nEncAlg( aData.m_nEncAlg )
69 , m_nCheckAlg( aData.m_nCheckAlg )
70 , m_nDerivedKeySize( aData.m_nDerivedKeySize )
71 , m_nStartKeyGenID( aData.m_nStartKeyGenID )
72 , m_bTryWrongSHA1(aData.m_bTryWrongSHA1)
76 #endif
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */