os/security/crypto/weakcrypto/test/tasymmetric/tdsaprimegen.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 __TDSAPRIMEGEN_H__
    20 #define __TDSAPRIMEGEN_H__
    21 
    22 #include "t_testaction.h"
    23 #include <e32std.h>
    24 #include <asymmetric.h>
    25 #include <asymmetrickeys.h>
    26 #include <random.h>
    27 
    28 
    29 class CDSAPrimeGen : public CTestAction
    30 {
    31 public:
    32 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
    33 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    34 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
    35 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    36 	virtual ~CDSAPrimeGen();
    37 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
    38 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
    39 	virtual void PerformAction(TRequestStatus& aStatus);
    40 	virtual void DoReportAction(void);
    41 	virtual void DoCheckResult(TInt);
    42 
    43 private:
    44 	CDSAPrimeGen(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    45 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    46 
    47 	RFs& iFs;
    48 	HBufC8* iBody;
    49 	RInteger iP;
    50 	RInteger iQ;
    51 	TUint iCounter;
    52 	TUint iKeyBits;
    53 	const CDSAPrimeCertificate* iPrimeCert;
    54 };
    55 
    56 #endif