os/security/crypto/weakcryptospi/test/tpadding/tpaddingSSLv3.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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