First public contribution.
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 "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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0001
19 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0001
21 //! @SYMTestCaseDesc Copyright (C) 2005 - 2006 Symbian Ltd. All Rights Reserved
23 //! @SYMTestActions 1) Element test case 1 with explicit kdf, salt len and iterations, ECipherRC2_CBC_128_16
25 //! 2) Element test case 1, ECipherRC2_CBC_128_16
27 //! 3) Element test case 2, ECipherRC2_CBC_128_16
29 //! 4) Element test case 3, ECipherRC2_CBC_128_16
31 //! 5) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
33 //! 6) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
35 //! 7) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
37 //! 8) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
39 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
41 //! 10) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
43 //! 11) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
45 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-001
47 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-002
49 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-003
51 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-004
53 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-005
55 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-006
57 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-007
59 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-008
61 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-009
63 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-010
65 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-011
67 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0001
73 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0002
75 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0002
77 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
79 //! /////////////////////////////////////////////////////////////////////////////////
81 //! /////////////////////////////////////////////////////////////////////////////////
83 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_16
85 //! 2) Element test case 2, ECipherRC2_CBC_40_16
87 //! 3) Element test case 3, ECipherRC2_CBC_40_16
89 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
91 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
93 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
95 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
97 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
99 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
101 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-001
103 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-002
105 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-003
107 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-004
109 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-005
111 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-006
113 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-007
115 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-008
117 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-009
119 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0002
125 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0003
127 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0003
129 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
131 //! /////////////////////////////////////////////////////////////////////////////////
133 //! /////////////////////////////////////////////////////////////////////////////////
135 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128
137 //! 2) Element test case 2, ECipherRC2_CBC_128
139 //! 3) Element test case 3, ECipherRC2_CBC_128
141 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
143 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
145 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
147 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
149 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
151 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
153 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-001
155 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-002
157 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-003
159 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-004
161 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-005
163 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-006
165 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-007
167 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-008
169 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-009
171 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0003
177 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0004
179 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0004
181 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
183 //! /////////////////////////////////////////////////////////////////////////////////
185 //! /////////////////////////////////////////////////////////////////////////////////
187 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40
189 //! 2) Element test case 2, ECipherRC2_CBC_40
191 //! 3) Element test case 3, ECipherRC2_CBC_40
193 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
195 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
197 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
199 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
201 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
203 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
205 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-001
207 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-002
209 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-003
211 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-004
213 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-005
215 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-006
217 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-007
219 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-008
221 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-009
223 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0004
229 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0005
231 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0005
233 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
235 //! /////////////////////////////////////////////////////////////////////////////////
237 //! /////////////////////////////////////////////////////////////////////////////////
239 //! @SYMTestActions 1) Element test case 1, ECipher3DES_CBC
241 //! 2) Element test case 2, ECipher3DES_CBC
243 //! 3) Element test case 3, ECipher3DES_CBC
245 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
247 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
249 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
251 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
253 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
255 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
257 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-001
259 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-002
261 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-003
263 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-004
265 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-005
267 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-006
269 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-007
271 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-008
273 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-009
275 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0005
281 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0006
283 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0006
285 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
287 //! /////////////////////////////////////////////////////////////////////////////////
289 //! /////////////////////////////////////////////////////////////////////////////////
291 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_256
293 //! 2) Element test case 2, ECipherAES_CBC_256
295 //! 3) Element test case 3, ECipherAES_CBC_256
297 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
299 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
301 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
303 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
305 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
307 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
309 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-001
311 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-002
313 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-003
315 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-004
317 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-005
319 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-006
321 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-007
323 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-008
325 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-009
327 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0006
333 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0007
335 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0007
337 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
339 //! /////////////////////////////////////////////////////////////////////////////////
341 //! /////////////////////////////////////////////////////////////////////////////////
343 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_192
345 //! 2) Element test case 2, ECipherAES_CBC_192
347 //! 3) Element test case 3, ECipherAES_CBC_192
349 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
351 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
353 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
355 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
357 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
359 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
361 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-001
363 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-002
365 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-003
367 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-004
369 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-005
371 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-006
373 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-007
375 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-008
377 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-009
379 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0007
385 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0008
387 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0008
389 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
391 //! /////////////////////////////////////////////////////////////////////////////////
393 //! /////////////////////////////////////////////////////////////////////////////////
395 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_128
397 //! 2) Element test case 2, ECipherAES_CBC_128
399 //! 3) Element test case 3, ECipherAES_CBC_128
401 //! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
403 //! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
405 //! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
407 //! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
409 //! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
411 //! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
413 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-001
415 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-002
417 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-003
419 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-004
421 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-005
423 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-006
425 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-007
427 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-008
429 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-009
431 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0008
437 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0009
439 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0009
441 //! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
443 //! /////////////////////////////////////////////////////////////////////////////////
445 //! /////////////////////////////////////////////////////////////////////////////////
449 //! Start of Permanent File Store PBE testing between weak and strong crypto
451 //! @SYMTestActions 1) Write encrypted data to a PFS named according to crypto strength
453 //! 2) Decrypting weak crypto file
455 //! 3) Decrypting strong crypto file
457 RUN_TEST_STEP -1 CTestHandler WritePFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-001
459 RUN_TEST_STEP -1 CTestHandler ReadPFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-002
461 RUN_TEST_STEP -1 CTestHandler ReadPFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-003
463 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0009
469 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0010
471 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0010
473 //! @SYMTestCaseDesc Start of OOM testing
475 //! @SYMTestActions 1) OOM start
477 //! 2) Element test case 2
479 //! 3) Test of Set encryption, password changing, exporting importing Test 1
483 RUN_TEST_STEP -1 CTestHandler startmemfailure
485 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0010-002
487 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0010-003
489 RUN_TEST_STEP -1 CTestHandler stopmemfailure
491 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0010
497 // =======================================================================
503 START_TESTCASE SEC-CIT_PREQ1054_02-0001
505 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0001
507 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
509 //! @SYMREQ CIT_PREQ1054
511 //! @SYMTestPriority medium
513 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
515 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
517 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128_16
519 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0001
521 END_TESTCASE SEC-CIT_PREQ1054_02-0001
527 START_TESTCASE SEC-CIT_PREQ1054_02-0002
529 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0002
531 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
533 //! @SYMREQ CIT_PREQ1054
535 //! @SYMTestPriority medium
537 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
539 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
541 //! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_128_16
543 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0002
545 END_TESTCASE SEC-CIT_PREQ1054_02-0002
551 START_TESTCASE SEC-CIT_PREQ1054_02-0003
553 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0003
555 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
557 //! @SYMREQ CIT_PREQ1054
559 //! @SYMTestPriority medium
561 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
563 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
565 //! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_128_16
567 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0003
569 END_TESTCASE SEC-CIT_PREQ1054_02-0003
575 START_TESTCASE SEC-CIT_PREQ1054_02-0004
577 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0004
579 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
581 //! @SYMREQ CIT_PREQ1054
583 //! @SYMTestPriority medium
585 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
587 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
589 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
591 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0004
593 END_TESTCASE SEC-CIT_PREQ1054_02-0004
599 START_TESTCASE SEC-CIT_PREQ1054_02-0005
601 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0005
603 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#5 KDF.
605 //! @SYMREQ CIT_PREQ1054
607 //! @SYMTestPriority medium
609 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
611 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
613 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
615 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0005
617 END_TESTCASE SEC-CIT_PREQ1054_02-0005
623 START_TESTCASE SEC-CIT_PREQ1054_02-0006
625 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0006
627 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
629 //! @SYMREQ CIT_PREQ1054
631 //! @SYMTestPriority medium
633 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
635 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
637 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
639 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0006
641 END_TESTCASE SEC-CIT_PREQ1054_02-0006
647 START_TESTCASE SEC-CIT_PREQ1054_02-0007
649 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0007
651 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
653 //! @SYMREQ CIT_PREQ1054
655 //! @SYMTestPriority medium
657 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
659 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
661 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
663 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0007
665 END_TESTCASE SEC-CIT_PREQ1054_02-0007
671 START_TESTCASE SEC-CIT_PREQ1054_02-0008
673 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0008
675 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
677 //! @SYMREQ CIT_PREQ1054
679 //! @SYMTestPriority medium
681 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
683 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
685 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
687 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0008
689 END_TESTCASE SEC-CIT_PREQ1054_02-0008
695 START_TESTCASE SEC-CIT_PREQ1054_02-0009
697 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0009
699 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
701 //! @SYMREQ CIT_PREQ1054
703 //! @SYMTestPriority medium
705 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
707 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
709 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
711 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0009
713 END_TESTCASE SEC-CIT_PREQ1054_02-0009
719 START_TESTCASE SEC-CIT_PREQ1054_02-0010
721 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0010
723 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
725 //! @SYMREQ CIT_PREQ1054
727 //! @SYMTestPriority medium
729 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
731 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
733 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
735 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0010
737 END_TESTCASE SEC-CIT_PREQ1054_02-0010
743 // /////////////////////////////////////////////////////////////////////////////////
745 // /////////////////////////////////////////////////////////////////////////////////
747 // /////////////////////////////////////////////////////////////////////////////////
751 START_TESTCASE SEC-CIT_PREQ1054_02-0011
753 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0011
755 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
757 //! @SYMREQ CIT_PREQ1054
759 //! @SYMTestPriority medium
761 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
763 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
765 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_16
767 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0011
769 END_TESTCASE SEC-CIT_PREQ1054_02-0011
775 START_TESTCASE SEC-CIT_PREQ1054_02-0012
777 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0012
779 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
781 //! @SYMREQ CIT_PREQ1054
783 //! @SYMTestPriority medium
785 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
787 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
789 //! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_40_16
791 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0012
793 END_TESTCASE SEC-CIT_PREQ1054_02-0012
799 START_TESTCASE SEC-CIT_PREQ1054_02-0013
801 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0013
803 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
805 //! @SYMREQ CIT_PREQ1054
807 //! @SYMTestPriority medium
809 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
811 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
813 //! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40_16
815 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0013
817 END_TESTCASE SEC-CIT_PREQ1054_02-0013
823 START_TESTCASE SEC-CIT_PREQ1054_02-0014
825 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0014
827 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
829 //! @SYMREQ CIT_PREQ1054
831 //! @SYMTestPriority medium
833 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
835 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
837 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
839 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0014
841 END_TESTCASE SEC-CIT_PREQ1054_02-0014
847 START_TESTCASE SEC-CIT_PREQ1054_02-0015
849 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0015
851 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
853 //! @SYMREQ CIT_PREQ1054
855 //! @SYMTestPriority medium
857 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
859 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
861 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
863 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0015
865 END_TESTCASE SEC-CIT_PREQ1054_02-0015
871 START_TESTCASE SEC-CIT_PREQ1054_02-0016
873 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0016
875 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
877 //! @SYMREQ CIT_PREQ1054
879 //! @SYMTestPriority medium
881 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
883 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
885 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
887 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0016
889 END_TESTCASE SEC-CIT_PREQ1054_02-0016
895 START_TESTCASE SEC-CIT_PREQ1054_02-0017
897 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0017
899 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
901 //! @SYMREQ CIT_PREQ1054
903 //! @SYMTestPriority medium
905 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
907 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
909 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
911 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0017
913 END_TESTCASE SEC-CIT_PREQ1054_02-0017
919 START_TESTCASE SEC-CIT_PREQ1054_02-0018
921 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0018
923 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
925 //! @SYMREQ CIT_PREQ1054
927 //! @SYMTestPriority medium
929 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
931 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
933 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
935 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0018
937 END_TESTCASE SEC-CIT_PREQ1054_02-0018
943 START_TESTCASE SEC-CIT_PREQ1054_02-0019
945 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0019
947 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
949 //! @SYMREQ CIT_PREQ1054
951 //! @SYMTestPriority medium
953 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
955 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
957 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
959 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0019
961 END_TESTCASE SEC-CIT_PREQ1054_02-0019
967 // /////////////////////////////////////////////////////////////////////////////////
969 // /////////////////////////////////////////////////////////////////////////////////
971 // /////////////////////////////////////////////////////////////////////////////////
975 START_TESTCASE SEC-CIT_PREQ1054_02-0020
977 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0020
979 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
981 //! @SYMREQ CIT_PREQ1054
983 //! @SYMTestPriority medium
985 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
987 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
989 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128
991 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0020
993 END_TESTCASE SEC-CIT_PREQ1054_02-0020
999 START_TESTCASE SEC-CIT_PREQ1054_02-0021
1001 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0021
1003 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1005 //! @SYMREQ CIT_PREQ1054
1007 //! @SYMTestPriority medium
1009 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1011 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1013 //! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_128
1015 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0021
1017 END_TESTCASE SEC-CIT_PREQ1054_02-0021
1023 START_TESTCASE SEC-CIT_PREQ1054_02-0022
1025 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0022
1027 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1029 //! @SYMREQ CIT_PREQ1054
1031 //! @SYMTestPriority medium
1033 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1035 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1037 //! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_128
1039 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0022
1041 END_TESTCASE SEC-CIT_PREQ1054_02-0022
1047 START_TESTCASE SEC-CIT_PREQ1054_02-0023
1049 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0023
1051 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1053 //! @SYMREQ CIT_PREQ1054
1055 //! @SYMTestPriority medium
1057 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1059 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1061 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
1063 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0023
1065 END_TESTCASE SEC-CIT_PREQ1054_02-0023
1071 START_TESTCASE SEC-CIT_PREQ1054_02-0024
1073 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0024
1075 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1077 //! @SYMREQ CIT_PREQ1054
1079 //! @SYMTestPriority medium
1081 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1083 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1085 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
1087 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0024
1089 END_TESTCASE SEC-CIT_PREQ1054_02-0024
1095 START_TESTCASE SEC-CIT_PREQ1054_02-0025
1097 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0025
1099 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1101 //! @SYMREQ CIT_PREQ1054
1103 //! @SYMTestPriority medium
1105 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1107 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1109 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
1111 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0025
1113 END_TESTCASE SEC-CIT_PREQ1054_02-0025
1119 START_TESTCASE SEC-CIT_PREQ1054_02-0026
1121 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0026
1123 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1125 //! @SYMREQ CIT_PREQ1054
1127 //! @SYMTestPriority medium
1129 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1131 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1133 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
1135 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0026
1137 END_TESTCASE SEC-CIT_PREQ1054_02-0026
1143 START_TESTCASE SEC-CIT_PREQ1054_02-0027
1145 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0027
1147 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1149 //! @SYMREQ CIT_PREQ1054
1151 //! @SYMTestPriority medium
1153 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1155 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1157 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
1159 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0027
1161 END_TESTCASE SEC-CIT_PREQ1054_02-0027
1167 START_TESTCASE SEC-CIT_PREQ1054_02-0028
1169 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0028
1171 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1173 //! @SYMREQ CIT_PREQ1054
1175 //! @SYMTestPriority medium
1177 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1179 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1181 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
1183 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0028
1185 END_TESTCASE SEC-CIT_PREQ1054_02-0028
1191 // /////////////////////////////////////////////////////////////////////////////////
1193 // /////////////////////////////////////////////////////////////////////////////////
1195 // /////////////////////////////////////////////////////////////////////////////////
1199 START_TESTCASE SEC-CIT_PREQ1054_02-0029
1201 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0029
1203 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1205 //! @SYMREQ CIT_PREQ1054
1207 //! @SYMTestPriority medium
1209 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1211 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1213 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40
1215 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0029
1217 END_TESTCASE SEC-CIT_PREQ1054_02-0029
1223 START_TESTCASE SEC-CIT_PREQ1054_02-0030
1225 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0030
1227 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1229 //! @SYMREQ CIT_PREQ1054
1231 //! @SYMTestPriority medium
1233 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1235 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1237 //! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_40
1239 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0030
1241 END_TESTCASE SEC-CIT_PREQ1054_02-0030
1247 START_TESTCASE SEC-CIT_PREQ1054_02-0031
1249 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0031
1251 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1253 //! @SYMREQ CIT_PREQ1054
1255 //! @SYMTestPriority medium
1257 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1259 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1261 //! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40
1263 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0031
1265 END_TESTCASE SEC-CIT_PREQ1054_02-0031
1271 START_TESTCASE SEC-CIT_PREQ1054_02-0032
1273 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0032
1275 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1277 //! @SYMREQ CIT_PREQ1054
1279 //! @SYMTestPriority medium
1281 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1283 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1285 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
1287 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0032
1289 END_TESTCASE SEC-CIT_PREQ1054_02-0032
1295 START_TESTCASE SEC-CIT_PREQ1054_02-0033
1297 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0033
1299 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1301 //! @SYMREQ CIT_PREQ1054
1303 //! @SYMTestPriority medium
1305 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1307 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1309 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
1311 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0033
1313 END_TESTCASE SEC-CIT_PREQ1054_02-0033
1319 START_TESTCASE SEC-CIT_PREQ1054_02-0034
1321 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0034
1323 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1325 //! @SYMREQ CIT_PREQ1054
1327 //! @SYMTestPriority medium
1329 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1331 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1333 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
1335 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0034
1337 END_TESTCASE SEC-CIT_PREQ1054_02-0034
1343 START_TESTCASE SEC-CIT_PREQ1054_02-0035
1345 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0035
1347 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1349 //! @SYMREQ CIT_PREQ1054
1351 //! @SYMTestPriority medium
1353 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1355 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1357 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
1359 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0035
1361 END_TESTCASE SEC-CIT_PREQ1054_02-0035
1367 START_TESTCASE SEC-CIT_PREQ1054_02-0036
1369 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0036
1371 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1373 //! @SYMREQ CIT_PREQ1054
1375 //! @SYMTestPriority medium
1377 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1379 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1381 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
1383 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0036
1385 END_TESTCASE SEC-CIT_PREQ1054_02-0036
1391 START_TESTCASE SEC-CIT_PREQ1054_02-0037
1393 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0037
1395 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1397 //! @SYMREQ CIT_PREQ1054
1399 //! @SYMTestPriority medium
1401 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1403 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1405 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
1407 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0037
1409 END_TESTCASE SEC-CIT_PREQ1054_02-0037
1415 // /////////////////////////////////////////////////////////////////////////////////
1417 // /////////////////////////////////////////////////////////////////////////////////
1419 // /////////////////////////////////////////////////////////////////////////////////
1423 START_TESTCASE SEC-CIT_PREQ1054_02-0038
1425 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0038
1427 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1429 //! @SYMREQ CIT_PREQ1054
1431 //! @SYMTestPriority medium
1433 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1435 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1437 //! @SYMTestActions 1) Element test case 1, ECipher3DES_CBC
1439 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0038
1441 END_TESTCASE SEC-CIT_PREQ1054_02-0038
1447 START_TESTCASE SEC-CIT_PREQ1054_02-0039
1449 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0039
1451 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1453 //! @SYMREQ CIT_PREQ1054
1455 //! @SYMTestPriority medium
1457 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1459 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1461 //! @SYMTestActions 1) Element test case 2, ECipher3DES_CBC
1463 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0039
1465 END_TESTCASE SEC-CIT_PREQ1054_02-0039
1471 START_TESTCASE SEC-CIT_PREQ1054_02-0040
1473 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0040
1475 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1477 //! @SYMREQ CIT_PREQ1054
1479 //! @SYMTestPriority medium
1481 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1483 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1485 //! @SYMTestActions 1) Element test case 3, ECipher3DES_CBC
1487 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0040
1489 END_TESTCASE SEC-CIT_PREQ1054_02-0040
1495 START_TESTCASE SEC-CIT_PREQ1054_02-0041
1497 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0041
1499 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1501 //! @SYMREQ CIT_PREQ1054
1503 //! @SYMTestPriority medium
1505 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1507 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1509 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
1511 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0041
1513 END_TESTCASE SEC-CIT_PREQ1054_02-0041
1519 START_TESTCASE SEC-CIT_PREQ1054_02-0042
1521 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0042
1523 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1525 //! @SYMREQ CIT_PREQ1054
1527 //! @SYMTestPriority medium
1529 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1531 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1533 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
1535 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0042
1537 END_TESTCASE SEC-CIT_PREQ1054_02-0042
1543 START_TESTCASE SEC-CIT_PREQ1054_02-0043
1545 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0043
1547 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1549 //! @SYMREQ CIT_PREQ1054
1551 //! @SYMTestPriority medium
1553 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1555 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1557 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
1559 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0043
1561 END_TESTCASE SEC-CIT_PREQ1054_02-0043
1567 START_TESTCASE SEC-CIT_PREQ1054_02-0044
1569 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0044
1571 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1573 //! @SYMREQ CIT_PREQ1054
1575 //! @SYMTestPriority medium
1577 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1579 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1581 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
1583 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0044
1585 END_TESTCASE SEC-CIT_PREQ1054_02-0044
1591 START_TESTCASE SEC-CIT_PREQ1054_02-0045
1593 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0045
1595 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1597 //! @SYMREQ CIT_PREQ1054
1599 //! @SYMTestPriority medium
1601 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1603 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1605 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
1607 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0045
1609 END_TESTCASE SEC-CIT_PREQ1054_02-0045
1615 START_TESTCASE SEC-CIT_PREQ1054_02-0046
1617 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0046
1619 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1621 //! @SYMREQ CIT_PREQ1054
1623 //! @SYMTestPriority medium
1625 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1627 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1629 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
1631 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0046
1633 END_TESTCASE SEC-CIT_PREQ1054_02-0046
1639 // /////////////////////////////////////////////////////////////////////////////////
1641 // /////////////////////////////////////////////////////////////////////////////////
1643 // /////////////////////////////////////////////////////////////////////////////////
1647 START_TESTCASE SEC-CIT_PREQ1054_02-0047
1649 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0047
1651 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1653 //! @SYMREQ CIT_PREQ1054
1655 //! @SYMTestPriority medium
1657 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1659 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1661 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_256
1663 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0047
1665 END_TESTCASE SEC-CIT_PREQ1054_02-0047
1671 START_TESTCASE SEC-CIT_PREQ1054_02-0048
1673 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0048
1675 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1677 //! @SYMREQ CIT_PREQ1054
1679 //! @SYMTestPriority medium
1681 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1683 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1685 //! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_256
1687 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0048
1689 END_TESTCASE SEC-CIT_PREQ1054_02-0048
1695 START_TESTCASE SEC-CIT_PREQ1054_02-0049
1697 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0049
1699 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1701 //! @SYMREQ CIT_PREQ1054
1703 //! @SYMTestPriority medium
1705 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1707 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1709 //! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_256
1711 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0049
1713 END_TESTCASE SEC-CIT_PREQ1054_02-0049
1719 START_TESTCASE SEC-CIT_PREQ1054_02-0050
1721 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0050
1723 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1725 //! @SYMREQ CIT_PREQ1054
1727 //! @SYMTestPriority medium
1729 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1731 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1733 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
1735 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0050
1737 END_TESTCASE SEC-CIT_PREQ1054_02-0050
1743 START_TESTCASE SEC-CIT_PREQ1054_02-0051
1745 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0051
1747 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1749 //! @SYMREQ CIT_PREQ1054
1751 //! @SYMTestPriority medium
1753 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1755 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1757 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
1759 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0051
1761 END_TESTCASE SEC-CIT_PREQ1054_02-0051
1767 START_TESTCASE SEC-CIT_PREQ1054_02-0052
1769 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0052
1771 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1773 //! @SYMREQ CIT_PREQ1054
1775 //! @SYMTestPriority medium
1777 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1779 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1781 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
1783 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0052
1785 END_TESTCASE SEC-CIT_PREQ1054_02-0052
1791 START_TESTCASE SEC-CIT_PREQ1054_02-0053
1793 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0053
1795 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1797 //! @SYMREQ CIT_PREQ1054
1799 //! @SYMTestPriority medium
1801 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1803 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1805 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
1807 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0053
1809 END_TESTCASE SEC-CIT_PREQ1054_02-0053
1815 START_TESTCASE SEC-CIT_PREQ1054_02-0054
1817 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0054
1819 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1821 //! @SYMREQ CIT_PREQ1054
1823 //! @SYMTestPriority medium
1825 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1827 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1829 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
1831 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0054
1833 END_TESTCASE SEC-CIT_PREQ1054_02-0054
1839 START_TESTCASE SEC-CIT_PREQ1054_02-0055
1841 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0055
1843 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1845 //! @SYMREQ CIT_PREQ1054
1847 //! @SYMTestPriority medium
1849 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1851 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1853 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
1855 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0055
1857 END_TESTCASE SEC-CIT_PREQ1054_02-0055
1863 // /////////////////////////////////////////////////////////////////////////////////
1865 // /////////////////////////////////////////////////////////////////////////////////
1867 // /////////////////////////////////////////////////////////////////////////////////
1871 START_TESTCASE SEC-CIT_PREQ1054_02-0056
1873 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0056
1875 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1877 //! @SYMREQ CIT_PREQ1054
1879 //! @SYMTestPriority medium
1881 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1883 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1885 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_192
1887 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0056
1889 END_TESTCASE SEC-CIT_PREQ1054_02-0056
1895 START_TESTCASE SEC-CIT_PREQ1054_02-0057
1897 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0057
1899 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1901 //! @SYMREQ CIT_PREQ1054
1903 //! @SYMTestPriority medium
1905 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1907 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1909 //! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_192
1911 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0057
1913 END_TESTCASE SEC-CIT_PREQ1054_02-0057
1919 START_TESTCASE SEC-CIT_PREQ1054_02-0058
1921 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0058
1923 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1925 //! @SYMREQ CIT_PREQ1054
1927 //! @SYMTestPriority medium
1929 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1931 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1933 //! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_192
1935 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0058
1937 END_TESTCASE SEC-CIT_PREQ1054_02-0058
1943 START_TESTCASE SEC-CIT_PREQ1054_02-0059
1945 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0059
1947 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1949 //! @SYMREQ CIT_PREQ1054
1951 //! @SYMTestPriority medium
1953 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1955 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1957 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
1959 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0059
1961 END_TESTCASE SEC-CIT_PREQ1054_02-0059
1967 START_TESTCASE SEC-CIT_PREQ1054_02-0060
1969 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0060
1971 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1973 //! @SYMREQ CIT_PREQ1054
1975 //! @SYMTestPriority medium
1977 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
1979 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
1981 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
1983 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0060
1985 END_TESTCASE SEC-CIT_PREQ1054_02-0060
1991 START_TESTCASE SEC-CIT_PREQ1054_02-0061
1993 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0061
1995 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
1997 //! @SYMREQ CIT_PREQ1054
1999 //! @SYMTestPriority medium
2001 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2003 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2005 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
2007 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0061
2009 END_TESTCASE SEC-CIT_PREQ1054_02-0061
2015 START_TESTCASE SEC-CIT_PREQ1054_02-0062
2017 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0062
2019 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2021 //! @SYMREQ CIT_PREQ1054
2023 //! @SYMTestPriority medium
2025 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2027 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2029 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
2031 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0062
2033 END_TESTCASE SEC-CIT_PREQ1054_02-0062
2039 START_TESTCASE SEC-CIT_PREQ1054_02-0063
2041 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0063
2043 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2045 //! @SYMREQ CIT_PREQ1054
2047 //! @SYMTestPriority medium
2049 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2051 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2053 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
2055 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0063
2057 END_TESTCASE SEC-CIT_PREQ1054_02-0063
2063 START_TESTCASE SEC-CIT_PREQ1054_02-0064
2065 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0064
2067 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2069 //! @SYMREQ CIT_PREQ1054
2071 //! @SYMTestPriority medium
2073 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2075 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2077 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
2079 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0064
2081 END_TESTCASE SEC-CIT_PREQ1054_02-0064
2087 // /////////////////////////////////////////////////////////////////////////////////
2089 // /////////////////////////////////////////////////////////////////////////////////
2091 // /////////////////////////////////////////////////////////////////////////////////
2095 START_TESTCASE SEC-CIT_PREQ1054_02-0065
2097 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0065
2099 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2101 //! @SYMREQ CIT_PREQ1054
2103 //! @SYMTestPriority medium
2105 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2107 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2109 //! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_128
2111 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0065
2113 END_TESTCASE SEC-CIT_PREQ1054_02-0065
2119 START_TESTCASE SEC-CIT_PREQ1054_02-0066
2121 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0066
2123 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2125 //! @SYMREQ CIT_PREQ1054
2127 //! @SYMTestPriority medium
2129 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2131 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2133 //! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_128
2135 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0066
2137 END_TESTCASE SEC-CIT_PREQ1054_02-0066
2143 START_TESTCASE SEC-CIT_PREQ1054_02-0067
2145 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0067
2147 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2149 //! @SYMREQ CIT_PREQ1054
2151 //! @SYMTestPriority medium
2153 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2155 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2157 //! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_128
2159 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0067
2161 END_TESTCASE SEC-CIT_PREQ1054_02-0067
2167 START_TESTCASE SEC-CIT_PREQ1054_02-0068
2169 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0068
2171 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2173 //! @SYMREQ CIT_PREQ1054
2175 //! @SYMTestPriority medium
2177 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2179 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2181 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
2183 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0068
2185 END_TESTCASE SEC-CIT_PREQ1054_02-0068
2191 START_TESTCASE SEC-CIT_PREQ1054_02-0069
2193 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0069
2195 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2197 //! @SYMREQ CIT_PREQ1054
2199 //! @SYMTestPriority medium
2201 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2203 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2205 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
2207 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0069
2209 END_TESTCASE SEC-CIT_PREQ1054_02-0069
2215 START_TESTCASE SEC-CIT_PREQ1054_02-0070
2217 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0070
2219 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2221 //! @SYMREQ CIT_PREQ1054
2223 //! @SYMTestPriority medium
2225 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2227 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2229 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
2231 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0070
2233 END_TESTCASE SEC-CIT_PREQ1054_02-0070
2239 START_TESTCASE SEC-CIT_PREQ1054_02-0071
2241 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0071
2243 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2245 //! @SYMREQ CIT_PREQ1054
2247 //! @SYMTestPriority medium
2249 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2251 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2253 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
2255 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0071
2257 END_TESTCASE SEC-CIT_PREQ1054_02-0071
2263 START_TESTCASE SEC-CIT_PREQ1054_02-0072
2265 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0072
2267 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2269 //! @SYMREQ CIT_PREQ1054
2271 //! @SYMTestPriority medium
2273 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2275 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2277 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
2279 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0072
2281 END_TESTCASE SEC-CIT_PREQ1054_02-0072
2287 START_TESTCASE SEC-CIT_PREQ1054_02-0073
2289 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0073
2291 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2293 //! @SYMREQ CIT_PREQ1054
2295 //! @SYMTestPriority medium
2297 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2299 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2301 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
2303 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0073
2305 END_TESTCASE SEC-CIT_PREQ1054_02-0073
2311 START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0084
2313 //! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0084
2315 //! @SYMTestCaseDesc //////////////////////////////////////////////////////////////////
2317 //! PKCS12 tests using PKCS#12 PBE algorithm with PKCS#12 KDF function.
2319 //! ECipherRC2_CBC_128_16, ECipher3DES_CBC tests defined above.
2321 //! "Set" tests are not supported for stream cipher ECipherARC4_40,ECipherARC4_128
2323 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_5
2325 //! 2) Element test case 2, ECipherARC4_128
2327 //! 3) Element test case 3, ECipherARC4_40
2329 //! 4) Element test case 4, ECipher2Key3DES_CBC
2331 //! 5) Test of Set encryption, password changing, exporting importing Test 5, ECipherRC2_CBC_40_5
2333 //! 6) Test of Set encryption, password changing, exporting importing Test 9, ECipher2Key3DES_CBC
2335 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-001
2337 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-002
2339 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-003
2341 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-004
2343 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-005
2345 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-006
2347 END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0084
2353 // ///////////////////////////////////////
2357 // Run selected PKCS#12 tests in OOM
2361 START_TESTCASE SEC-CIT_PREQ1054_02-0074
2363 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0074
2365 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2367 //! @SYMREQ CIT_PREQ1054
2369 //! @SYMTestPriority medium
2371 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2373 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2375 //! @SYMTestActions 1) OOM start
2377 RUN_TEST_STEP -1 CTestHandler startmemfailure
2379 END_TESTCASE SEC-CIT_PREQ1054_02-0074
2385 START_TESTCASE SEC-CIT_PREQ1054_02-0075
2387 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0075
2389 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2391 //! @SYMREQ CIT_PREQ1054
2393 //! @SYMTestPriority medium
2395 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2397 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2399 //! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128_16
2401 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0075
2403 END_TESTCASE SEC-CIT_PREQ1054_02-0075
2409 START_TESTCASE SEC-CIT_PREQ1054_02-0076
2411 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0076
2413 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2415 //! @SYMREQ CIT_PREQ1054
2417 //! @SYMTestPriority medium
2419 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2421 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2423 //! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40_16
2425 RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0076
2427 END_TESTCASE SEC-CIT_PREQ1054_02-0076
2433 START_TESTCASE SEC-CIT_PREQ1054_02-0077
2435 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0077
2437 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2439 //! @SYMREQ CIT_PREQ1054
2441 //! @SYMTestPriority medium
2443 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2445 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2447 //! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
2449 RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0077
2451 END_TESTCASE SEC-CIT_PREQ1054_02-0077
2457 START_TESTCASE SEC-CIT_PREQ1054_02-0078
2459 //! @SYMTestCaseID SEC-CIT_PREQ1054_02-0078
2461 //! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
2463 //! @SYMREQ CIT_PREQ1054
2465 //! @SYMTestPriority medium
2467 //! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
2469 //! @SYMTestExpectedResults The generated key matches the expected byte stream.
2471 //! @SYMTestActions 1) OOM end
2473 //! 2) Compatibility old PKCS#5
2475 //! 3) Data compatibility orig PKCS#12
2477 RUN_TEST_STEP -1 CTestHandler stopmemfailure
2479 RUN_TEST_STEP -1 CTestHandler ExternPbeParams tpbetests_v2.ini SEC-CIT_PREQ1054_02-002
2481 RUN_TEST_STEP -1 CTestHandler ExternPbeParams tpbetests_v2.ini SEC-CIT_PREQ1054_02-003
2483 END_TESTCASE SEC-CIT_PREQ1054_02-0078