os/security/crypto/weakcrypto/test/tpbe/tactionset.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 #ifndef __TACTIONSET_H__
    20 #define __TACTIONSET_H__
    21 
    22 #include "t_testaction.h"
    23 #include <e32std.h>
    24 #include <pbe.h>
    25 
    26 class CActionSet : public CTestAction
    27 {
    28 public:
    29 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
    30 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    31 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
    32 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    33 	virtual ~CActionSet();
    34 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
    35 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
    36 	virtual void PerformAction(TRequestStatus& aStatus);
    37 	virtual void DoReportAction(void);
    38 	virtual void DoCheckResult(TInt);
    39 
    40 private:
    41 	CActionSet(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    42 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    43 	void Hex(HBufC8& string);
    44 
    45 	RFs& iFs;
    46 	HBufC8* iBody;
    47 	HBufC* iPasswd;
    48 	HBufC8* iInput;
    49 	TPBECipher iCipher;
    50 	HBufC8* iKdf;
    51 	HBufC8* iSaltLenBytes;
    52 	HBufC8* iIterCount;
    53 };
    54 
    55 #endif