|
1 /* |
|
2 * Copyright (c) 2004 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 "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 |
|
20 |
|
21 #ifndef __UT_CSRTPKEYDERIVATION_AESCM128_H__ |
|
22 #define __UT_CSRTPKEYDERIVATION_AESCM128_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CSRTPKeyDerivation_AESCM128; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * |
|
36 * EUnitWizard generated test class. |
|
37 * |
|
38 */ |
|
39 class UT_CSRTPKeyDerivation_AESCM128 |
|
40 : public CEUnitTestSuiteClass |
|
41 { |
|
42 public: // Constructors and destructors |
|
43 |
|
44 /** |
|
45 * Two phase construction |
|
46 */ |
|
47 static UT_CSRTPKeyDerivation_AESCM128* NewL(); |
|
48 static UT_CSRTPKeyDerivation_AESCM128* NewLC(); |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_CSRTPKeyDerivation_AESCM128(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 UT_CSRTPKeyDerivation_AESCM128(); |
|
57 void ConstructL(); |
|
58 |
|
59 |
|
60 public: // From observer interface |
|
61 |
|
62 |
|
63 |
|
64 private: // New methods |
|
65 |
|
66 void SetupL(); |
|
67 |
|
68 void Teardown(); |
|
69 |
|
70 void UT_RFC3711_AESCM_TestL(); |
|
71 |
|
72 void UT_RFC3711_Session_Encr_Key_TestL(); |
|
73 |
|
74 void UT_RFC3711_Session_Salt_Key_TestL(); |
|
75 |
|
76 void UT_RFC3711_Session_Auth_Key_TestL(); |
|
77 |
|
78 void UT_ErronousInput_1L(); |
|
79 |
|
80 void UT_ErronousInput_2L(); |
|
81 |
|
82 void Hex(HBufC8& aString); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 CSRTPKeyDerivation_AESCM128* iEncryptor; |
|
87 |
|
88 HBufC8* iRFC3711_Test1Key128bits; |
|
89 HBufC8* iRFC3711_Test2Key128bits; |
|
90 HBufC8* iRFC3711_TestIV128bits; |
|
91 HBufC8* iRFC3711_TestKeystream128bits; |
|
92 |
|
93 HBufC8* iRFC3711_SessionEncrIV128bits; |
|
94 HBufC8* iRFC3711_SessionSaltIV128bits; |
|
95 HBufC8* iRFC3711_SessionAuthIV128bits; |
|
96 |
|
97 HBufC8* iRFC3711_SessionEncrKey128bits; |
|
98 HBufC8* iRFC3711_SessionSaltKey128bits; |
|
99 HBufC8* iRFC3711_SessionAuthKey128bits; |
|
100 |
|
101 EUNIT_DECLARE_TEST_TABLE; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // __UT_CSRTPKEYDERIVATION_AESCM128_H__ |
|
106 |
|
107 // End of file |