sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef _TPADDINGSSLV3_H_ sl@0: #define _TPADDINGSSLV3_H_ sl@0: sl@0: #include sl@0: #include "tpaddingTestSteps.h" sl@0: sl@0: _LIT(KPadSSLv3, "PadSSLv3"); sl@0: _LIT(KUnpadSSLv3, "UnpadSSLv3"); sl@0: sl@0: class CTestPadSSLv3 : public CPaddingStep sl@0: { sl@0: public: sl@0: CTestPadSSLv3(); sl@0: ~CTestPadSSLv3(); sl@0: virtual TVerdict doTestStepL(); sl@0: private: sl@0: void TestSSLv3Padding(TInt aBlockSize); sl@0: void TestSSLv3CorruptPadding(TInt aBlockSize, TInt aTextSize); sl@0: private: sl@0: TPtrC iExpectedResult; sl@0: TPtrC iTestCaseName; sl@0: sl@0: }; sl@0: sl@0: class CTestUnpadSSLv3 : public CPaddingStep sl@0: { sl@0: public: sl@0: CTestUnpadSSLv3(); sl@0: ~CTestUnpadSSLv3(); sl@0: virtual TVerdict doTestStepL(); sl@0: private: sl@0: void TestSSLv3Unpadding(TInt aBlockSize); sl@0: void TestSSLv3CorruptUnpadding(TInt aBlockSize, TInt aTextSize); sl@0: private: sl@0: TPtrC iExpectedResult; sl@0: TPtrC iTestCaseName; sl@0: }; sl@0: sl@0: sl@0: #endif