equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file testpadding.h |
|
18 @internalTechnology |
|
19 */ |
|
20 #ifndef __TESTPADDING_H__ |
|
21 #define __TESTPADDING_H__ |
|
22 |
|
23 #include <padding.h> |
|
24 |
|
25 /* |
|
26 * This class implements SSLv3 padding, but offers more error checking |
|
27 * on UnPad than the Symbian class does, and can corrupt the padding |
|
28 * on DoPad. |
|
29 * |
|
30 */ |
|
31 |
|
32 class CTlsTestPadding : public CPadding |
|
33 { |
|
34 public: |
|
35 static CTlsTestPadding* NewLC(TInt aBlockBytes, TInt aPaddingMod); |
|
36 |
|
37 void DoPadL(const TDesC8& aInput,TDes8& aOutput); |
|
38 void UnPadL(const TDesC8& aInput,TDes8& aOutput); |
|
39 |
|
40 TInt MinPaddingLength(void) const; |
|
41 TInt MaxPaddedLength(TInt aInputBytes) const; |
|
42 |
|
43 private: |
|
44 CTlsTestPadding(TInt aBlockBytes, TInt aPaddingMod); |
|
45 |
|
46 private: |
|
47 TInt iPaddingMod; |
|
48 }; |
|
49 |
|
50 #endif /* __TESTPADDING_H__ */ |