Update contrib.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __TACTIONMONTECARLO_H__
20 #define __TACTIONMONTECARLO_H__
22 #include "cryptotestaction.h"
24 class CBufferedEncryptor; // Forward declare
25 class CBufferedDecryptor; // Forward declare
27 const TInt KMonteCarloIterations = 10000;
29 class CActionMonteCarlo : public CCryptoTestAction
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 ~CActionMonteCarlo();
38 CActionMonteCarlo(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
40 virtual void DoPerformPrerequisiteL();
41 virtual void DoPerformActionL();
43 void DoAESEncryptECB();
44 void DoAESDecryptECB();
45 void DoAESEncryptCBC();
46 void DoAESDecryptCBC();
48 CBufferedEncryptor* iEncrypt;
49 CBufferedDecryptor* iDecrypt;
52 #endif // __TACTIONMONTECARLO_H__