bump product version to 4.1.6.2
[LibreOffice.git] / package / inc / EncryptionData.hxx
blob655a4d43fc18116ad39cedde5657e976dccd1a6b
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 _ENCRYPTION_DATA_HXX_
20 #define _ENCRYPTION_DATA_HXX_
22 #include <com/sun/star/uno/Sequence.hxx>
23 #include <cppuhelper/weak.hxx>
25 class BaseEncryptionData : public cppu::OWeakObject
27 public:
28 ::com::sun::star::uno::Sequence< sal_Int8 > m_aSalt;
29 ::com::sun::star::uno::Sequence< sal_Int8 > m_aInitVector;
30 ::com::sun::star::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 ::com::sun::star::uno::Sequence < sal_Int8 > m_aKey;
49 sal_Int32 m_nEncAlg;
50 sal_Int32 m_nCheckAlg;
51 sal_Int32 m_nDerivedKeySize;
52 sal_Int32 m_nStartKeyGenID;
54 EncryptionData( const BaseEncryptionData& aData, const ::com::sun::star::uno::Sequence< sal_Int8 >& aKey, sal_Int32 nEncAlg, sal_Int32 nCheckAlg, sal_Int32 nDerivedKeySize, sal_Int32 nStartKeyGenID )
55 : BaseEncryptionData( aData )
56 , m_aKey( aKey )
57 , m_nEncAlg( nEncAlg )
58 , m_nCheckAlg( nCheckAlg )
59 , m_nDerivedKeySize( nDerivedKeySize )
60 , m_nStartKeyGenID( nStartKeyGenID )
63 EncryptionData( const EncryptionData& aData )
64 : BaseEncryptionData( aData )
65 , m_aKey( aData.m_aKey )
66 , m_nEncAlg( aData.m_nEncAlg )
67 , m_nCheckAlg( aData.m_nCheckAlg )
68 , m_nDerivedKeySize( aData.m_nDerivedKeySize )
69 , m_nStartKeyGenID( aData.m_nStartKeyGenID )
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */