crypto/weakcrypto/test/tbigint/tprimegenvector.h
changeset 71 dd83586b62d6
equal deleted inserted replaced
66:8873e6835f7b 71:dd83586b62d6
       
     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 * tprimeproblem.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __TPRIMEPROBLEM_H__
       
    21 #define __TPRIMEPROBLEM_H__
       
    22 
       
    23 #include "t_testaction.h"
       
    24 #include <e32std.h>
       
    25 #include "../../inc/bigint.h"
       
    26 
       
    27 class CPrimeGenVector : public CTestAction
       
    28 {
       
    29 public:
       
    30 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
       
    31 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    32 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
       
    33 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    34 	virtual ~CPrimeGenVector();
       
    35 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
       
    36 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
       
    37 	virtual void PerformAction(TRequestStatus& aStatus);
       
    38 	void PerformActionL(void);
       
    39 	virtual void DoReportAction(void);
       
    40 	virtual void DoCheckResult(TInt);
       
    41 
       
    42 private:
       
    43 	CPrimeGenVector(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
       
    44 	void ConstructL(const TTestActionSpec& aTestActionSpec);
       
    45 
       
    46 	RFs& iFs;
       
    47 	TUint iBits;
       
    48 	HBufC8* iBody;
       
    49 	HBufC8* iRandomDes;
       
    50 	HBufC8* iPrimeDes;
       
    51 	RInteger iRandom;
       
    52 	RInteger iPrime;
       
    53 };
       
    54 
       
    55 #endif