LCOV - code coverage report
Current view: top level - package/inc - EncryptionData.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 10 10 100.0 %
Date: 2015-06-13 12:38:46 Functions: 7 7 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      25       10518 : class BaseEncryptionData : public cppu::OWeakObject
      26             : {
      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;
      32             : 
      33        5220 :     BaseEncryptionData()
      34        5220 :     : m_nIterationCount ( 0 ){}
      35             : 
      36         110 :     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         110 :     , m_nIterationCount( aData.m_nIterationCount )
      42         110 :     {}
      43             : };
      44             : 
      45         220 : class EncryptionData : public BaseEncryptionData
      46             : {
      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;
      53             : 
      54         110 :     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         110 :     , m_nStartKeyGenID( nStartKeyGenID )
      61         110 :     {}
      62             : 
      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 )
      70             :     {}
      71             : };
      72             : 
      73             : #endif
      74             : 
      75             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11