crypto/weakcrypto/test/tpkcs5kdf/tactionderivekey.h
changeset 72 de46a57f75fb
equal deleted inserted replaced
65:970c0057d9bc 72:de46a57f75fb
       
     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 __TACTIONDERIVEKEY_H__
       
    20 #define __TACTIONDERIVEKEY_H__
       
    21 
       
    22 #include "t_testaction.h"
       
    23 #include <e32std.h>
       
    24 
       
    25 class CActionDeriveKey : public CTestAction
       
    26 {
       
    27 public:
       
    28 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
       
    29 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    30 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
       
    31 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    32 	virtual ~CActionDeriveKey();
       
    33 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
       
    34 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
       
    35 	virtual void PerformAction(TRequestStatus& aStatus);
       
    36 	virtual void DoReportAction(void);
       
    37 	virtual void DoCheckResult(TInt);
       
    38 
       
    39 private:
       
    40 	CActionDeriveKey(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
       
    41 	void ConstructL(const TTestActionSpec& aTestActionSpec);
       
    42 	void Hex(HBufC8& string);
       
    43 
       
    44 	RFs& iFs;
       
    45 	HBufC8* iBody;
       
    46 	HBufC8* iPasswd;
       
    47 	HBufC8* iSalt;
       
    48 	HBufC8* iKey;
       
    49 	HBufC8* iOutput;
       
    50 	HBufC8* iIterations;
       
    51 	HBufC8* iKdf;
       
    52 	TInt iLeaveInPerformAction;
       
    53 };
       
    54 
       
    55 #endif