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 _TPADDINGPKCS1_H_ sl@0: #define _TPADDINGPKCS1_H_ sl@0: sl@0: #include sl@0: #include "tpaddingTestSteps.h" sl@0: sl@0: _LIT(KPadPKCS1, "PadPKCS1"); sl@0: _LIT(KUnpadPKCS1, "UnpadPKCS1"); sl@0: sl@0: class CTestPadPKCS1 : public CPaddingStep sl@0: { sl@0: public: sl@0: CTestPadPKCS1(); sl@0: ~CTestPadPKCS1(); sl@0: virtual TVerdict doTestStepL(); sl@0: private: sl@0: void TestPKCS1SignaturePadding(TInt aBlockSize); sl@0: void TestPKCS1EncryptionPadding(TInt aBlockSize); sl@0: }; sl@0: sl@0: class CTestUnpadPKCS1 : public CPaddingStep sl@0: { sl@0: public: sl@0: CTestUnpadPKCS1(); sl@0: ~CTestUnpadPKCS1(); sl@0: virtual TVerdict doTestStepL(); sl@0: private: sl@0: void TestPKCS1SignatureUnpadding(TInt aBlockSize); sl@0: void TestPKCS1EncryptionUnpadding(TInt aBlockSize); sl@0: }; sl@0: sl@0: sl@0: #endif