72
|
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 _TPADDINGPKCS7_H_
|
|
20 |
#define _TPADDINGPKCS7_H_
|
|
21 |
|
|
22 |
#include <e32std.h>
|
|
23 |
#include <e32cmn.h>
|
|
24 |
|
|
25 |
|
|
26 |
#include <test/testexecutestepbase.h>
|
|
27 |
#include "tpaddingTestSteps.h"
|
|
28 |
|
|
29 |
_LIT(KPadPKCS7, "PadPKCS7");
|
|
30 |
_LIT(KUnpadPKCS7, "UnpadPKCS7");
|
|
31 |
_LIT(KUnpadCorruptPKCS7, "UnpadCorruptPKCS7");
|
|
32 |
_LIT(KPaddingCorruptPKCS7, "PaddingCorruptPKCS7");
|
|
33 |
|
|
34 |
|
|
35 |
class CTestPadPKCS7 : public CPaddingStep
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
CTestPadPKCS7();
|
|
39 |
~CTestPadPKCS7();
|
|
40 |
virtual TVerdict doTestStepL();
|
|
41 |
private:
|
|
42 |
void TestPKCS7Padding(TInt aBlockSize);
|
|
43 |
};
|
|
44 |
|
|
45 |
class CTestUnpadPKCS7 : public CPaddingStep
|
|
46 |
{
|
|
47 |
public:
|
|
48 |
CTestUnpadPKCS7();
|
|
49 |
~CTestUnpadPKCS7();
|
|
50 |
virtual TVerdict doTestStepL();
|
|
51 |
private:
|
|
52 |
void TestPKCS7Unpadding(TInt aBlockSize);
|
|
53 |
|
|
54 |
};
|
|
55 |
|
|
56 |
class CTestUnpadCorruptPKCS7 : public CPaddingStep
|
|
57 |
{
|
|
58 |
public:
|
|
59 |
CTestUnpadCorruptPKCS7();
|
|
60 |
~CTestUnpadCorruptPKCS7();
|
|
61 |
virtual TVerdict doTestStepL();
|
|
62 |
private:
|
|
63 |
void TestCorruptPKCS7Unpadding(TInt aBlockSize, TInt aTextSize, TUint8 aCorruptPaddingByte);
|
|
64 |
};
|
|
65 |
|
|
66 |
class CTestPaddingCorruptPKCS7 : public CPaddingStep
|
|
67 |
{
|
|
68 |
public:
|
|
69 |
CTestPaddingCorruptPKCS7();
|
|
70 |
~CTestPaddingCorruptPKCS7();
|
|
71 |
virtual TVerdict doTestStepL();
|
|
72 |
private:
|
|
73 |
void TestCorruptPKCS7padding(TInt aBlockSize, TInt aTextSize);
|
|
74 |
};
|
|
75 |
|
|
76 |
#endif
|