|
1 // |
|
2 // Copyright (c) 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 "Symbian Foundation License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 START_TESTCASE SEC-CRYPTOSPI-TBASICMATHSTESTS-0001 |
|
18 |
|
19 //! @SYMTestCaseID SEC-CRYPTOSPI-TBASICMATHSTESTS-0001 |
|
20 |
|
21 //! @SYMTestCaseDesc |
|
22 |
|
23 //! @SYMTestActions 1) BasicMaths Forward Backward Test |
|
24 |
|
25 //! 2) BasicMaths Vector Test -- ADD 4 bytes |
|
26 |
|
27 //! 3) BasicMaths Vector Test -- ADD 4 bytes overflow |
|
28 |
|
29 //! 4) BasicMaths Vector Test -- ADD 8 bytes |
|
30 |
|
31 //! 5) BasicMaths Vector Test -- ADD 8 bytes overflow |
|
32 |
|
33 //! 6) BasicMaths Vector Test -- ADD 4 bytes b > a |
|
34 |
|
35 //! 7) BasicMaths Vector Test -- ADD 4 bytes overflow, b > a |
|
36 |
|
37 //! 8) BasicMaths Vector Test -- ADD 8 bytes, b > a |
|
38 |
|
39 //! 9) BasicMaths Vector Test -- ADD 8 bytes overflow, b > a |
|
40 |
|
41 //! 10) BasicMaths Vector Test -- ADD two large numbers |
|
42 |
|
43 //! 11) BasicMaths Vector Test -- ADD two large numbers |
|
44 |
|
45 //! 12) BasicMaths Vector Test -- ADD two large numbers with overflow |
|
46 |
|
47 //! 13) BasicMaths Vector Test -- SUB 4 bytes |
|
48 |
|
49 //! 14) BasicMaths Vector Test -- SUB 4 bytes |
|
50 |
|
51 //! 15) BasicMaths Vector Test -- SUB 8 bytes |
|
52 |
|
53 //! 16) BasicMaths Vector Test -- SUB 2 large numbers |
|
54 |
|
55 //! 17) BasicMaths Vector Test -- multiply small |
|
56 |
|
57 //! 18) BasicMaths Vector Test -- multiply large |
|
58 |
|
59 //! 19) BasicMaths Vector Test -- multiply large different size operands |
|
60 |
|
61 //! 20) BasicMaths Vector Test -- divide basic |
|
62 |
|
63 //! 21) BasicMaths Vector Test -- modulo basic |
|
64 |
|
65 //! 22) BasicMaths Vector Test -- divide basic no remainder |
|
66 |
|
67 //! 23) BasicMaths Vector Test -- modulus basic no remainder |
|
68 |
|
69 //! 24) BasicMaths Vector Test -- divide large |
|
70 |
|
71 //! 25) BasicMaths Vector Test -- modulus large |
|
72 |
|
73 //! 26) BasicMaths Vector Test -- InverseMod 1 |
|
74 |
|
75 //! 27) BasicMaths Vector Test -- InverseMod 2 |
|
76 |
|
77 //! 28) BasicMaths Vector Test -- InverseMod 3 |
|
78 |
|
79 //! 29) BasicMaths Vector Test -- InverseMod 4 |
|
80 |
|
81 //! 30) BasicMaths Vector Test -- InverseMod 5 |
|
82 |
|
83 //! 31) BasicMaths Vector Test -- GCD 1 |
|
84 |
|
85 //! 32) BasicMaths Vector Test -- GCD 2 |
|
86 |
|
87 //! 33) BasicMaths Vector Test -- GCD 3 |
|
88 |
|
89 //! 34) BasicMaths Vector Test -- GCD 4 (two really big prime numbers) |
|
90 |
|
91 //! 35) OOM start |
|
92 |
|
93 //! 36) BasicMaths Vector Test -- ADD 4 bytes |
|
94 |
|
95 //! 37) BasicMaths Vector Test -- ADD 4 bytes overflow |
|
96 |
|
97 //! 38) BasicMaths Vector Test -- ADD 8 bytes |
|
98 |
|
99 //! 39) BasicMaths Vector Test -- ADD 8 bytes overflow |
|
100 |
|
101 //! 40) BasicMaths Vector Test -- ADD 4 bytes b > a |
|
102 |
|
103 //! 41) BasicMaths Vector Test -- ADD 4 bytes overflow, b > a |
|
104 |
|
105 //! 42) BasicMaths Vector Test -- ADD 8 bytes, b > a |
|
106 |
|
107 //! 43) BasicMaths Vector Test -- ADD 8 bytes overflow, b > a |
|
108 |
|
109 //! 44) BasicMaths Vector Test -- SUB 4 bytes |
|
110 |
|
111 //! 45) BasicMaths Vector Test -- SUB 4 bytes |
|
112 |
|
113 //! 46) BasicMaths Vector Test -- SUB 8 bytes |
|
114 |
|
115 //! 47) BasicMaths Vector Test -- InverseMod 1 |
|
116 |
|
117 //! 48) BasicMaths Vector Test -- InverseMod 2 |
|
118 |
|
119 //! 49) BasicMaths Vector Test -- InverseMod 3 |
|
120 |
|
121 //! 50) BasicMaths Vector Test -- InverseMod 4 |
|
122 |
|
123 //! 51) BasicMaths Vector Test -- InverseMod 5 |
|
124 |
|
125 //! 52) BasicMaths Vector Test -- GCD 1 |
|
126 |
|
127 //! 53) BasicMaths Vector Test -- GCD 2 |
|
128 |
|
129 //! 54) BasicMaths Vector Test -- GCD 3 |
|
130 |
|
131 //! 55) BasicMaths Forward Backward Test |
|
132 |
|
133 //! 56) OOM end |
|
134 |
|
135 RUN_TEST_STEP -1 CTestHandler BasicMathsFB tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-001 |
|
136 |
|
137 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-002 |
|
138 |
|
139 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-003 |
|
140 |
|
141 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-004 |
|
142 |
|
143 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-005 |
|
144 |
|
145 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-006 |
|
146 |
|
147 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-007 |
|
148 |
|
149 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-008 |
|
150 |
|
151 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-009 |
|
152 |
|
153 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-010 |
|
154 |
|
155 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-011 |
|
156 |
|
157 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-012 |
|
158 |
|
159 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-013 |
|
160 |
|
161 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-014 |
|
162 |
|
163 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-015 |
|
164 |
|
165 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-016 |
|
166 |
|
167 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-017 |
|
168 |
|
169 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-018 |
|
170 |
|
171 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-019 |
|
172 |
|
173 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-020 |
|
174 |
|
175 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-021 |
|
176 |
|
177 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-022 |
|
178 |
|
179 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-023 |
|
180 |
|
181 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-024 |
|
182 |
|
183 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-025 |
|
184 |
|
185 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-026 |
|
186 |
|
187 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-027 |
|
188 |
|
189 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-028 |
|
190 |
|
191 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-029 |
|
192 |
|
193 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-030 |
|
194 |
|
195 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-031 |
|
196 |
|
197 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-032 |
|
198 |
|
199 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-033 |
|
200 |
|
201 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-034 |
|
202 |
|
203 RUN_TEST_STEP -1 CTestHandler startmemfailure |
|
204 |
|
205 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-036 |
|
206 |
|
207 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-037 |
|
208 |
|
209 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-038 |
|
210 |
|
211 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-039 |
|
212 |
|
213 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-040 |
|
214 |
|
215 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-041 |
|
216 |
|
217 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-042 |
|
218 |
|
219 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-043 |
|
220 |
|
221 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-044 |
|
222 |
|
223 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-045 |
|
224 |
|
225 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-046 |
|
226 |
|
227 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-047 |
|
228 |
|
229 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-048 |
|
230 |
|
231 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-049 |
|
232 |
|
233 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-050 |
|
234 |
|
235 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-051 |
|
236 |
|
237 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-052 |
|
238 |
|
239 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-053 |
|
240 |
|
241 RUN_TEST_STEP -1 CTestHandler BasicMathsVector tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-054 |
|
242 |
|
243 RUN_TEST_STEP -1 CTestHandler BasicMathsFB tbasicmathstests.ini SEC-CRYPTOSPI-TBASICMATHSTESTS-0001-055 |
|
244 |
|
245 RUN_TEST_STEP -1 CTestHandler stopmemfailure |
|
246 |
|
247 END_TESTCASE SEC-CRYPTOSPI-TBASICMATHSTESTS-0001 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |