crypto/weakcrypto/test/tasymmetric/trsaparams.h
author hgs
Thu, 12 Aug 2010 21:07:10 +0530
changeset 90 8c545fea2798
parent 72 de46a57f75fb
permissions -rw-r--r--
201031_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
72
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     1
/*
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     3
* All rights reserved.
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     8
*
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     9
* Initial Contributors:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    11
*
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    12
* Contributors:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    13
*
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    14
* Description: 
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    15
*
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    16
*/
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    17
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    18
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    19
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    20
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    21
/**
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    22
 @file
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    23
*/
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    24
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    25
#ifndef __RSAPARAMSTEST_H__
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    26
#define __RSAPARAMSTEST_H__
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    27
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    28
#include "t_testaction.h"
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    29
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    30
class CRSATestPublicKey : public CTestAction
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    31
    {
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    32
public:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    33
	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    34
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    35
	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    36
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    37
	virtual ~CRSATestPublicKey();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    38
protected:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    39
	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    40
	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    41
//	virtual void DoPerformActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    42
//	virtual void DoPerformanceTestActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    43
	virtual void DoReportAction(void);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    44
	virtual void DoCheckResult(TInt);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    45
	virtual void PerformAction(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    46
private:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    47
	CRSATestPublicKey(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    48
	void ConstructL(const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    49
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    50
	RFs& iFs;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    51
	HBufC8 *iBody;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    52
	TInt iExpectedReturnValue;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    53
    };
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    54
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    55
class CRSATestPrivateKey : public CTestAction
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    56
    {
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    57
public:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    58
	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    59
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    60
	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    61
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    62
	virtual ~CRSATestPrivateKey();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    63
protected:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    64
	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    65
	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    66
//	virtual void DoPerformActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    67
//	virtual void DoPerformanceTestActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    68
	virtual void DoReportAction(void);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    69
	virtual void DoCheckResult(TInt);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    70
	virtual void PerformAction(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    71
private:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    72
	CRSATestPrivateKey(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    73
	void ConstructL(const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    74
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    75
	RFs& iFs;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    76
	HBufC8 *iBody;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    77
	TInt iExpectedReturnValue;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    78
    };
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    79
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    80
class CRSATestPrivateKeyCRT : public CTestAction
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    81
    {
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    82
public:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    83
	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    84
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    85
	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    86
		Output& aOut, const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    87
	virtual ~CRSATestPrivateKeyCRT();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    88
protected:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    89
	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    90
	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    91
//	virtual void DoPerformActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    92
//	virtual void DoPerformanceTestActionL();
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    93
	virtual void DoReportAction(void);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    94
	virtual void DoCheckResult(TInt);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    95
	virtual void PerformAction(TRequestStatus& aStatus);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    96
private:
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    97
	CRSATestPrivateKeyCRT(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    98
	void ConstructL(const TTestActionSpec& aTestActionSpec);
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    99
de46a57f75fb 201023_02
hgs
parents:
diff changeset
   100
	RFs& iFs;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
   101
	HBufC8 *iBody;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
   102
	TInt iExpectedReturnValue;
de46a57f75fb 201023_02
hgs
parents:
diff changeset
   103
    };
de46a57f75fb 201023_02
hgs
parents:
diff changeset
   104
#endif