os/security/crypto/weakcrypto/test/tasymmetric/tdsasignfb.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 * tdsasign.h
    16 *
    17 */
    18 
    19 
    20 #ifndef __TDSASIGN_H__
    21 #define __TDSASIGN_H__
    22 
    23 #include "t_testaction.h"
    24 #include <e32std.h>
    25 #include <asymmetric.h>
    26 #include <asymmetrickeys.h>
    27 #include <random.h>
    28 
    29 class CDSASignFB : 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 ~CDSASignFB();
    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 	CDSASignFB(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    45 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    46 	void Hex(HBufC8& string);
    47 
    48 	RFs& iFs;
    49 	HBufC8* iBody;
    50 	HBufC8* iSeed;
    51 	TUint iKeyBits;
    52 };
    53 
    54 #endif