LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/package/inc - EncryptionData.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 10 100.0 %
Date: 2013-07-09 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 _ENCRYPTION_DATA_HXX_
      20             : #define _ENCRYPTION_DATA_HXX_
      21             : 
      22             : #include <com/sun/star/uno/Sequence.hxx>
      23             : #include <cppuhelper/weak.hxx>
      24             : 
      25        4670 : 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        2317 :     BaseEncryptionData()
      34        2317 :     : m_nIterationCount ( 0 ){}
      35             : 
      36          48 :     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          48 :     , m_nIterationCount( aData.m_nIterationCount )
      42          48 :     {}
      43             : };
      44             : 
      45          96 : 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          48 :     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          48 :     , m_nStartKeyGenID( nStartKeyGenID )
      61          48 :     {}
      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.10