crypto/weakcrypto/test/tpadding/tpaddingSSLv3.h
changeset 71 dd83586b62d6
equal deleted inserted replaced
66:8873e6835f7b 71:dd83586b62d6
       
     1 /*
       
     2 * Copyright (c) 2004-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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _TPADDINGSSLV3_H_
       
    20 #define _TPADDINGSSLV3_H_
       
    21 
       
    22 #include <test/testexecutestepbase.h>
       
    23 #include "tpaddingTestSteps.h"
       
    24 
       
    25 _LIT(KPadSSLv3, "PadSSLv3");
       
    26 _LIT(KUnpadSSLv3, "UnpadSSLv3");
       
    27 
       
    28 class CTestPadSSLv3 : public CPaddingStep
       
    29 {
       
    30    public:
       
    31       CTestPadSSLv3();
       
    32       ~CTestPadSSLv3();
       
    33       virtual TVerdict doTestStepL();
       
    34    private:
       
    35       void TestSSLv3Padding(TInt aBlockSize);
       
    36 	  void TestSSLv3CorruptPadding(TInt aBlockSize, TInt aTextSize);
       
    37    private:
       
    38 	   TPtrC iExpectedResult;
       
    39 	   TPtrC iTestCaseName;
       
    40 
       
    41 };
       
    42 
       
    43 class CTestUnpadSSLv3 : public CPaddingStep
       
    44 {
       
    45    public:
       
    46       CTestUnpadSSLv3();
       
    47       ~CTestUnpadSSLv3();
       
    48       virtual TVerdict doTestStepL();
       
    49    private:
       
    50       void TestSSLv3Unpadding(TInt aBlockSize);
       
    51 	  void TestSSLv3CorruptUnpadding(TInt aBlockSize, TInt aTextSize);
       
    52    private:
       
    53 	   TPtrC iExpectedResult;
       
    54 	   TPtrC iTestCaseName;
       
    55 };
       
    56 
       
    57 
       
    58 #endif