os/security/crypto/weakcrypto/test/tpadding/tpaddingPKCS1.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 _TPADDINGPKCS1_H_
    20 #define _TPADDINGPKCS1_H_
    21 
    22 #include <test/testexecutestepbase.h>
    23 #include "tpaddingTestSteps.h"
    24 
    25 _LIT(KPadPKCS1, "PadPKCS1");
    26 _LIT(KUnpadPKCS1, "UnpadPKCS1");
    27 
    28 class CTestPadPKCS1 : public CPaddingStep
    29 {
    30    public:
    31       CTestPadPKCS1();
    32       ~CTestPadPKCS1();
    33       virtual TVerdict doTestStepL();
    34    private:
    35       void TestPKCS1SignaturePadding(TInt aBlockSize);
    36       void TestPKCS1EncryptionPadding(TInt aBlockSize);
    37 };
    38 
    39 class CTestUnpadPKCS1 : public CPaddingStep
    40 {
    41    public:
    42       CTestUnpadPKCS1();
    43       ~CTestUnpadPKCS1();
    44       virtual TVerdict doTestStepL();
    45    private:
    46       void TestPKCS1SignatureUnpadding(TInt aBlockSize);
    47       void TestPKCS1EncryptionUnpadding(TInt aBlockSize);
    48 };
    49 
    50 
    51 #endif