os/security/crypto/weakcryptospi/test/tpbe/scripts/tpbetests_v2.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 "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 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0001
    18 
    19 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0001
    20 
    21 //! @SYMTestCaseDesc          Copyright (C) 2005 - 2006 Symbian Ltd. All Rights Reserved
    22 
    23 //! @SYMTestActions           1) Element test case 1 with explicit kdf, salt len and iterations, ECipherRC2_CBC_128_16
    24 
    25 //!                           2) Element test case 1, ECipherRC2_CBC_128_16
    26 
    27 //!                           3) Element test case 2, ECipherRC2_CBC_128_16
    28 
    29 //!                           4) Element test case 3, ECipherRC2_CBC_128_16
    30 
    31 //!                           5) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
    32 
    33 //!                           6) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
    34 
    35 //!                           7) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
    36 
    37 //!                           8) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
    38 
    39 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
    40 
    41 //!                           10) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
    42 
    43 //!                           11) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
    44 
    45 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-001
    46 
    47 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-002
    48 
    49 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-003
    50 
    51 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-004
    52 
    53 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-005
    54 
    55 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-006
    56 
    57 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-007
    58 
    59 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-008
    60 
    61 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-009
    62 
    63 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-010
    64 
    65 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0001-011
    66 
    67 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0001
    68 
    69 
    70 
    71 
    72 
    73 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0002
    74 
    75 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0002
    76 
    77 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
    78 
    79 //!                           /////////////////////////////////////////////////////////////////////////////////
    80 
    81 //!                           /////////////////////////////////////////////////////////////////////////////////
    82 
    83 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_40_16
    84 
    85 //!                           2) Element test case 2, ECipherRC2_CBC_40_16
    86 
    87 //!                           3) Element test case 3, ECipherRC2_CBC_40_16
    88 
    89 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
    90 
    91 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
    92 
    93 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
    94 
    95 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
    96 
    97 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
    98 
    99 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
   100 
   101 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-001
   102 
   103 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-002
   104 
   105 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-003
   106 
   107 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-004
   108 
   109 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-005
   110 
   111 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-006
   112 
   113 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-007
   114 
   115 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-008
   116 
   117 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0002-009
   118 
   119 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0002
   120 
   121 
   122 
   123 
   124 
   125 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0003
   126 
   127 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0003
   128 
   129 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   130 
   131 //!                           /////////////////////////////////////////////////////////////////////////////////
   132 
   133 //!                           /////////////////////////////////////////////////////////////////////////////////
   134 
   135 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_128
   136 
   137 //!                           2) Element test case 2, ECipherRC2_CBC_128
   138 
   139 //!                           3) Element test case 3, ECipherRC2_CBC_128
   140 
   141 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
   142 
   143 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
   144 
   145 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
   146 
   147 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
   148 
   149 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
   150 
   151 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
   152 
   153 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-001
   154 
   155 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-002
   156 
   157 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-003
   158 
   159 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-004
   160 
   161 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-005
   162 
   163 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-006
   164 
   165 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-007
   166 
   167 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-008
   168 
   169 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0003-009
   170 
   171 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0003
   172 
   173 
   174 
   175 
   176 
   177 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0004
   178 
   179 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0004
   180 
   181 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   182 
   183 //!                           /////////////////////////////////////////////////////////////////////////////////
   184 
   185 //!                           /////////////////////////////////////////////////////////////////////////////////
   186 
   187 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_40
   188 
   189 //!                           2) Element test case 2, ECipherRC2_CBC_40
   190 
   191 //!                           3) Element test case 3, ECipherRC2_CBC_40
   192 
   193 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
   194 
   195 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
   196 
   197 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
   198 
   199 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
   200 
   201 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
   202 
   203 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
   204 
   205 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-001
   206 
   207 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-002
   208 
   209 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-003
   210 
   211 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-004
   212 
   213 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-005
   214 
   215 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-006
   216 
   217 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-007
   218 
   219 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-008
   220 
   221 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0004-009
   222 
   223 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0004
   224 
   225 
   226 
   227 
   228 
   229 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0005
   230 
   231 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0005
   232 
   233 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   234 
   235 //!                           /////////////////////////////////////////////////////////////////////////////////
   236 
   237 //!                           /////////////////////////////////////////////////////////////////////////////////
   238 
   239 //! @SYMTestActions           1) Element test case 1, ECipher3DES_CBC
   240 
   241 //!                           2) Element test case 2, ECipher3DES_CBC
   242 
   243 //!                           3) Element test case 3, ECipher3DES_CBC
   244 
   245 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
   246 
   247 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
   248 
   249 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
   250 
   251 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
   252 
   253 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
   254 
   255 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
   256 
   257 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-001
   258 
   259 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-002
   260 
   261 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-003
   262 
   263 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-004
   264 
   265 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-005
   266 
   267 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-006
   268 
   269 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-007
   270 
   271 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-008
   272 
   273 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0005-009
   274 
   275 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0005
   276 
   277 
   278 
   279 
   280 
   281 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0006
   282 
   283 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0006
   284 
   285 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   286 
   287 //!                           /////////////////////////////////////////////////////////////////////////////////
   288 
   289 //!                           /////////////////////////////////////////////////////////////////////////////////
   290 
   291 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_256
   292 
   293 //!                           2) Element test case 2, ECipherAES_CBC_256
   294 
   295 //!                           3) Element test case 3, ECipherAES_CBC_256
   296 
   297 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
   298 
   299 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
   300 
   301 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
   302 
   303 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
   304 
   305 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
   306 
   307 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
   308 
   309 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-001
   310 
   311 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-002
   312 
   313 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-003
   314 
   315 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-004
   316 
   317 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-005
   318 
   319 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-006
   320 
   321 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-007
   322 
   323 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-008
   324 
   325 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0006-009
   326 
   327 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0006
   328 
   329 
   330 
   331 
   332 
   333 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0007
   334 
   335 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0007
   336 
   337 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   338 
   339 //!                           /////////////////////////////////////////////////////////////////////////////////
   340 
   341 //!                           /////////////////////////////////////////////////////////////////////////////////
   342 
   343 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_192
   344 
   345 //!                           2) Element test case 2, ECipherAES_CBC_192
   346 
   347 //!                           3) Element test case 3, ECipherAES_CBC_192
   348 
   349 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
   350 
   351 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
   352 
   353 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
   354 
   355 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
   356 
   357 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
   358 
   359 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
   360 
   361 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-001
   362 
   363 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-002
   364 
   365 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-003
   366 
   367 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-004
   368 
   369 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-005
   370 
   371 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-006
   372 
   373 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-007
   374 
   375 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-008
   376 
   377 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0007-009
   378 
   379 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0007
   380 
   381 
   382 
   383 
   384 
   385 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0008
   386 
   387 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0008
   388 
   389 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   390 
   391 //!                           /////////////////////////////////////////////////////////////////////////////////
   392 
   393 //!                           /////////////////////////////////////////////////////////////////////////////////
   394 
   395 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_128
   396 
   397 //!                           2) Element test case 2, ECipherAES_CBC_128
   398 
   399 //!                           3) Element test case 3, ECipherAES_CBC_128
   400 
   401 //!                           4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
   402 
   403 //!                           5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
   404 
   405 //!                           6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
   406 
   407 //!                           7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
   408 
   409 //!                           8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
   410 
   411 //!                           9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
   412 
   413 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-001
   414 
   415 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-002
   416 
   417 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-003
   418 
   419 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-004
   420 
   421 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-005
   422 
   423 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-006
   424 
   425 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-007
   426 
   427 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-008
   428 
   429 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0008-009
   430 
   431 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0008
   432 
   433 
   434 
   435 
   436 
   437 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0009
   438 
   439 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0009
   440 
   441 //! @SYMTestCaseDesc          /////////////////////////////////////////////////////////////////////////////////
   442 
   443 //!                           /////////////////////////////////////////////////////////////////////////////////
   444 
   445 //!                           /////////////////////////////////////////////////////////////////////////////////
   446 
   447 //!                           
   448 
   449 //!                           Start of Permanent File Store PBE testing between weak and strong crypto
   450 
   451 //! @SYMTestActions           1) Write encrypted data to a PFS named according to crypto strength
   452 
   453 //!                           2) Decrypting weak crypto file
   454 
   455 //!                           3) Decrypting strong crypto file
   456 
   457 RUN_TEST_STEP                 -1    CTestHandler        WritePFS               tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0009-001
   458 
   459 RUN_TEST_STEP                 -1    CTestHandler        ReadPFS                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0009-002
   460 
   461 RUN_TEST_STEP                 -1    CTestHandler        ReadPFS                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0009-003
   462 
   463 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0009
   464 
   465 
   466 
   467 
   468 
   469 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0010
   470 
   471 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0010
   472 
   473 //! @SYMTestCaseDesc          Start of OOM testing
   474 
   475 //! @SYMTestActions           1) OOM start
   476 
   477 //!                           2) Element test case 2
   478 
   479 //!                           3) Test of Set encryption, password changing, exporting importing Test 1
   480 
   481 //!                           4) OOM end
   482 
   483 RUN_TEST_STEP                 -1    CTestHandler        startmemfailure     
   484 
   485 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0010-002
   486 
   487 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0010-003
   488 
   489 RUN_TEST_STEP                 -1    CTestHandler        stopmemfailure      
   490 
   491 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0010
   492 
   493 
   494 
   495 
   496 
   497 // =======================================================================
   498 
   499 // PKCS#12 tests
   500 
   501 
   502 
   503 START_TESTCASE                SEC-CIT_PREQ1054_02-0001
   504 
   505 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0001
   506 
   507 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   508 
   509 //! @SYMREQ                   CIT_PREQ1054
   510 
   511 //! @SYMTestPriority          medium
   512 
   513 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   514 
   515 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   516 
   517 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_128_16
   518 
   519 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0001
   520 
   521 END_TESTCASE                  SEC-CIT_PREQ1054_02-0001
   522 
   523 
   524 
   525 
   526 
   527 START_TESTCASE                SEC-CIT_PREQ1054_02-0002
   528 
   529 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0002
   530 
   531 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   532 
   533 //! @SYMREQ                   CIT_PREQ1054
   534 
   535 //! @SYMTestPriority          medium
   536 
   537 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   538 
   539 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   540 
   541 //! @SYMTestActions           1) Element test case 2, ECipherRC2_CBC_128_16
   542 
   543 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0002
   544 
   545 END_TESTCASE                  SEC-CIT_PREQ1054_02-0002
   546 
   547 
   548 
   549 
   550 
   551 START_TESTCASE                SEC-CIT_PREQ1054_02-0003
   552 
   553 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0003
   554 
   555 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   556 
   557 //! @SYMREQ                   CIT_PREQ1054
   558 
   559 //! @SYMTestPriority          medium
   560 
   561 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   562 
   563 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   564 
   565 //! @SYMTestActions           1) Element test case 3, ECipherRC2_CBC_128_16
   566 
   567 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0003
   568 
   569 END_TESTCASE                  SEC-CIT_PREQ1054_02-0003
   570 
   571 
   572 
   573 
   574 
   575 START_TESTCASE                SEC-CIT_PREQ1054_02-0004
   576 
   577 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0004
   578 
   579 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   580 
   581 //! @SYMREQ                   CIT_PREQ1054
   582 
   583 //! @SYMTestPriority          medium
   584 
   585 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   586 
   587 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   588 
   589 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
   590 
   591 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0004
   592 
   593 END_TESTCASE                  SEC-CIT_PREQ1054_02-0004
   594 
   595 
   596 
   597 
   598 
   599 START_TESTCASE                SEC-CIT_PREQ1054_02-0005
   600 
   601 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0005
   602 
   603 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#5 KDF.
   604 
   605 //! @SYMREQ                   CIT_PREQ1054
   606 
   607 //! @SYMTestPriority          medium
   608 
   609 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   610 
   611 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   612 
   613 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
   614 
   615 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0005
   616 
   617 END_TESTCASE                  SEC-CIT_PREQ1054_02-0005
   618 
   619 
   620 
   621 
   622 
   623 START_TESTCASE                SEC-CIT_PREQ1054_02-0006
   624 
   625 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0006
   626 
   627 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   628 
   629 //! @SYMREQ                   CIT_PREQ1054
   630 
   631 //! @SYMTestPriority          medium
   632 
   633 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   634 
   635 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   636 
   637 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
   638 
   639 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0006
   640 
   641 END_TESTCASE                  SEC-CIT_PREQ1054_02-0006
   642 
   643 
   644 
   645 
   646 
   647 START_TESTCASE                SEC-CIT_PREQ1054_02-0007
   648 
   649 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0007
   650 
   651 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   652 
   653 //! @SYMREQ                   CIT_PREQ1054
   654 
   655 //! @SYMTestPriority          medium
   656 
   657 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   658 
   659 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   660 
   661 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
   662 
   663 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0007
   664 
   665 END_TESTCASE                  SEC-CIT_PREQ1054_02-0007
   666 
   667 
   668 
   669 
   670 
   671 START_TESTCASE                SEC-CIT_PREQ1054_02-0008
   672 
   673 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0008
   674 
   675 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   676 
   677 //! @SYMREQ                   CIT_PREQ1054
   678 
   679 //! @SYMTestPriority          medium
   680 
   681 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   682 
   683 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   684 
   685 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
   686 
   687 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0008
   688 
   689 END_TESTCASE                  SEC-CIT_PREQ1054_02-0008
   690 
   691 
   692 
   693 
   694 
   695 START_TESTCASE                SEC-CIT_PREQ1054_02-0009
   696 
   697 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0009
   698 
   699 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   700 
   701 //! @SYMREQ                   CIT_PREQ1054
   702 
   703 //! @SYMTestPriority          medium
   704 
   705 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   706 
   707 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   708 
   709 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
   710 
   711 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0009
   712 
   713 END_TESTCASE                  SEC-CIT_PREQ1054_02-0009
   714 
   715 
   716 
   717 
   718 
   719 START_TESTCASE                SEC-CIT_PREQ1054_02-0010
   720 
   721 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0010
   722 
   723 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   724 
   725 //! @SYMREQ                   CIT_PREQ1054
   726 
   727 //! @SYMTestPriority          medium
   728 
   729 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   730 
   731 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   732 
   733 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
   734 
   735 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0010
   736 
   737 END_TESTCASE                  SEC-CIT_PREQ1054_02-0010
   738 
   739 
   740 
   741 
   742 
   743 // /////////////////////////////////////////////////////////////////////////////////
   744 
   745 // /////////////////////////////////////////////////////////////////////////////////
   746 
   747 // /////////////////////////////////////////////////////////////////////////////////
   748 
   749 
   750 
   751 START_TESTCASE                SEC-CIT_PREQ1054_02-0011
   752 
   753 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0011
   754 
   755 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   756 
   757 //! @SYMREQ                   CIT_PREQ1054
   758 
   759 //! @SYMTestPriority          medium
   760 
   761 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   762 
   763 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   764 
   765 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_40_16
   766 
   767 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0011
   768 
   769 END_TESTCASE                  SEC-CIT_PREQ1054_02-0011
   770 
   771 
   772 
   773 
   774 
   775 START_TESTCASE                SEC-CIT_PREQ1054_02-0012
   776 
   777 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0012
   778 
   779 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   780 
   781 //! @SYMREQ                   CIT_PREQ1054
   782 
   783 //! @SYMTestPriority          medium
   784 
   785 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   786 
   787 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   788 
   789 //! @SYMTestActions           1) Element test case 2, ECipherRC2_CBC_40_16
   790 
   791 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0012
   792 
   793 END_TESTCASE                  SEC-CIT_PREQ1054_02-0012
   794 
   795 
   796 
   797 
   798 
   799 START_TESTCASE                SEC-CIT_PREQ1054_02-0013
   800 
   801 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0013
   802 
   803 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   804 
   805 //! @SYMREQ                   CIT_PREQ1054
   806 
   807 //! @SYMTestPriority          medium
   808 
   809 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   810 
   811 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   812 
   813 //! @SYMTestActions           1) Element test case 3, ECipherRC2_CBC_40_16
   814 
   815 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0013
   816 
   817 END_TESTCASE                  SEC-CIT_PREQ1054_02-0013
   818 
   819 
   820 
   821 
   822 
   823 START_TESTCASE                SEC-CIT_PREQ1054_02-0014
   824 
   825 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0014
   826 
   827 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   828 
   829 //! @SYMREQ                   CIT_PREQ1054
   830 
   831 //! @SYMTestPriority          medium
   832 
   833 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   834 
   835 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   836 
   837 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
   838 
   839 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0014
   840 
   841 END_TESTCASE                  SEC-CIT_PREQ1054_02-0014
   842 
   843 
   844 
   845 
   846 
   847 START_TESTCASE                SEC-CIT_PREQ1054_02-0015
   848 
   849 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0015
   850 
   851 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   852 
   853 //! @SYMREQ                   CIT_PREQ1054
   854 
   855 //! @SYMTestPriority          medium
   856 
   857 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   858 
   859 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   860 
   861 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
   862 
   863 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0015
   864 
   865 END_TESTCASE                  SEC-CIT_PREQ1054_02-0015
   866 
   867 
   868 
   869 
   870 
   871 START_TESTCASE                SEC-CIT_PREQ1054_02-0016
   872 
   873 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0016
   874 
   875 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   876 
   877 //! @SYMREQ                   CIT_PREQ1054
   878 
   879 //! @SYMTestPriority          medium
   880 
   881 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   882 
   883 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   884 
   885 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
   886 
   887 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0016
   888 
   889 END_TESTCASE                  SEC-CIT_PREQ1054_02-0016
   890 
   891 
   892 
   893 
   894 
   895 START_TESTCASE                SEC-CIT_PREQ1054_02-0017
   896 
   897 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0017
   898 
   899 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   900 
   901 //! @SYMREQ                   CIT_PREQ1054
   902 
   903 //! @SYMTestPriority          medium
   904 
   905 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   906 
   907 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   908 
   909 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
   910 
   911 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0017
   912 
   913 END_TESTCASE                  SEC-CIT_PREQ1054_02-0017
   914 
   915 
   916 
   917 
   918 
   919 START_TESTCASE                SEC-CIT_PREQ1054_02-0018
   920 
   921 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0018
   922 
   923 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   924 
   925 //! @SYMREQ                   CIT_PREQ1054
   926 
   927 //! @SYMTestPriority          medium
   928 
   929 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   930 
   931 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   932 
   933 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
   934 
   935 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0018
   936 
   937 END_TESTCASE                  SEC-CIT_PREQ1054_02-0018
   938 
   939 
   940 
   941 
   942 
   943 START_TESTCASE                SEC-CIT_PREQ1054_02-0019
   944 
   945 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0019
   946 
   947 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   948 
   949 //! @SYMREQ                   CIT_PREQ1054
   950 
   951 //! @SYMTestPriority          medium
   952 
   953 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   954 
   955 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   956 
   957 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
   958 
   959 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0019
   960 
   961 END_TESTCASE                  SEC-CIT_PREQ1054_02-0019
   962 
   963 
   964 
   965 
   966 
   967 // /////////////////////////////////////////////////////////////////////////////////
   968 
   969 // /////////////////////////////////////////////////////////////////////////////////
   970 
   971 // /////////////////////////////////////////////////////////////////////////////////
   972 
   973 
   974 
   975 START_TESTCASE                SEC-CIT_PREQ1054_02-0020
   976 
   977 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0020
   978 
   979 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
   980 
   981 //! @SYMREQ                   CIT_PREQ1054
   982 
   983 //! @SYMTestPriority          medium
   984 
   985 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
   986 
   987 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
   988 
   989 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_128
   990 
   991 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0020
   992 
   993 END_TESTCASE                  SEC-CIT_PREQ1054_02-0020
   994 
   995 
   996 
   997 
   998 
   999 START_TESTCASE                SEC-CIT_PREQ1054_02-0021
  1000 
  1001 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0021
  1002 
  1003 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1004 
  1005 //! @SYMREQ                   CIT_PREQ1054
  1006 
  1007 //! @SYMTestPriority          medium
  1008 
  1009 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1010 
  1011 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1012 
  1013 //! @SYMTestActions           1) Element test case 2, ECipherRC2_CBC_128
  1014 
  1015 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0021
  1016 
  1017 END_TESTCASE                  SEC-CIT_PREQ1054_02-0021
  1018 
  1019 
  1020 
  1021 
  1022 
  1023 START_TESTCASE                SEC-CIT_PREQ1054_02-0022
  1024 
  1025 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0022
  1026 
  1027 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1028 
  1029 //! @SYMREQ                   CIT_PREQ1054
  1030 
  1031 //! @SYMTestPriority          medium
  1032 
  1033 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1034 
  1035 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1036 
  1037 //! @SYMTestActions           1) Element test case 3, ECipherRC2_CBC_128
  1038 
  1039 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0022
  1040 
  1041 END_TESTCASE                  SEC-CIT_PREQ1054_02-0022
  1042 
  1043 
  1044 
  1045 
  1046 
  1047 START_TESTCASE                SEC-CIT_PREQ1054_02-0023
  1048 
  1049 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0023
  1050 
  1051 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1052 
  1053 //! @SYMREQ                   CIT_PREQ1054
  1054 
  1055 //! @SYMTestPriority          medium
  1056 
  1057 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1058 
  1059 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1060 
  1061 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
  1062 
  1063 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0023
  1064 
  1065 END_TESTCASE                  SEC-CIT_PREQ1054_02-0023
  1066 
  1067 
  1068 
  1069 
  1070 
  1071 START_TESTCASE                SEC-CIT_PREQ1054_02-0024
  1072 
  1073 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0024
  1074 
  1075 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1076 
  1077 //! @SYMREQ                   CIT_PREQ1054
  1078 
  1079 //! @SYMTestPriority          medium
  1080 
  1081 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1082 
  1083 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1084 
  1085 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
  1086 
  1087 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0024
  1088 
  1089 END_TESTCASE                  SEC-CIT_PREQ1054_02-0024
  1090 
  1091 
  1092 
  1093 
  1094 
  1095 START_TESTCASE                SEC-CIT_PREQ1054_02-0025
  1096 
  1097 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0025
  1098 
  1099 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1100 
  1101 //! @SYMREQ                   CIT_PREQ1054
  1102 
  1103 //! @SYMTestPriority          medium
  1104 
  1105 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1106 
  1107 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1108 
  1109 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
  1110 
  1111 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0025
  1112 
  1113 END_TESTCASE                  SEC-CIT_PREQ1054_02-0025
  1114 
  1115 
  1116 
  1117 
  1118 
  1119 START_TESTCASE                SEC-CIT_PREQ1054_02-0026
  1120 
  1121 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0026
  1122 
  1123 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1124 
  1125 //! @SYMREQ                   CIT_PREQ1054
  1126 
  1127 //! @SYMTestPriority          medium
  1128 
  1129 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1130 
  1131 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1132 
  1133 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
  1134 
  1135 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0026
  1136 
  1137 END_TESTCASE                  SEC-CIT_PREQ1054_02-0026
  1138 
  1139 
  1140 
  1141 
  1142 
  1143 START_TESTCASE                SEC-CIT_PREQ1054_02-0027
  1144 
  1145 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0027
  1146 
  1147 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1148 
  1149 //! @SYMREQ                   CIT_PREQ1054
  1150 
  1151 //! @SYMTestPriority          medium
  1152 
  1153 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1154 
  1155 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1156 
  1157 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
  1158 
  1159 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0027
  1160 
  1161 END_TESTCASE                  SEC-CIT_PREQ1054_02-0027
  1162 
  1163 
  1164 
  1165 
  1166 
  1167 START_TESTCASE                SEC-CIT_PREQ1054_02-0028
  1168 
  1169 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0028
  1170 
  1171 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1172 
  1173 //! @SYMREQ                   CIT_PREQ1054
  1174 
  1175 //! @SYMTestPriority          medium
  1176 
  1177 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1178 
  1179 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1180 
  1181 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
  1182 
  1183 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0028
  1184 
  1185 END_TESTCASE                  SEC-CIT_PREQ1054_02-0028
  1186 
  1187 
  1188 
  1189 
  1190 
  1191 // /////////////////////////////////////////////////////////////////////////////////
  1192 
  1193 // /////////////////////////////////////////////////////////////////////////////////
  1194 
  1195 // /////////////////////////////////////////////////////////////////////////////////
  1196 
  1197 
  1198 
  1199 START_TESTCASE                SEC-CIT_PREQ1054_02-0029
  1200 
  1201 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0029
  1202 
  1203 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1204 
  1205 //! @SYMREQ                   CIT_PREQ1054
  1206 
  1207 //! @SYMTestPriority          medium
  1208 
  1209 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1210 
  1211 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1212 
  1213 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_40
  1214 
  1215 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0029
  1216 
  1217 END_TESTCASE                  SEC-CIT_PREQ1054_02-0029
  1218 
  1219 
  1220 
  1221 
  1222 
  1223 START_TESTCASE                SEC-CIT_PREQ1054_02-0030
  1224 
  1225 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0030
  1226 
  1227 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1228 
  1229 //! @SYMREQ                   CIT_PREQ1054
  1230 
  1231 //! @SYMTestPriority          medium
  1232 
  1233 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1234 
  1235 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1236 
  1237 //! @SYMTestActions           1) Element test case 2, ECipherRC2_CBC_40
  1238 
  1239 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0030
  1240 
  1241 END_TESTCASE                  SEC-CIT_PREQ1054_02-0030
  1242 
  1243 
  1244 
  1245 
  1246 
  1247 START_TESTCASE                SEC-CIT_PREQ1054_02-0031
  1248 
  1249 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0031
  1250 
  1251 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1252 
  1253 //! @SYMREQ                   CIT_PREQ1054
  1254 
  1255 //! @SYMTestPriority          medium
  1256 
  1257 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1258 
  1259 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1260 
  1261 //! @SYMTestActions           1) Element test case 3, ECipherRC2_CBC_40
  1262 
  1263 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0031
  1264 
  1265 END_TESTCASE                  SEC-CIT_PREQ1054_02-0031
  1266 
  1267 
  1268 
  1269 
  1270 
  1271 START_TESTCASE                SEC-CIT_PREQ1054_02-0032
  1272 
  1273 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0032
  1274 
  1275 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1276 
  1277 //! @SYMREQ                   CIT_PREQ1054
  1278 
  1279 //! @SYMTestPriority          medium
  1280 
  1281 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1282 
  1283 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1284 
  1285 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
  1286 
  1287 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0032
  1288 
  1289 END_TESTCASE                  SEC-CIT_PREQ1054_02-0032
  1290 
  1291 
  1292 
  1293 
  1294 
  1295 START_TESTCASE                SEC-CIT_PREQ1054_02-0033
  1296 
  1297 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0033
  1298 
  1299 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1300 
  1301 //! @SYMREQ                   CIT_PREQ1054
  1302 
  1303 //! @SYMTestPriority          medium
  1304 
  1305 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1306 
  1307 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1308 
  1309 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
  1310 
  1311 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0033
  1312 
  1313 END_TESTCASE                  SEC-CIT_PREQ1054_02-0033
  1314 
  1315 
  1316 
  1317 
  1318 
  1319 START_TESTCASE                SEC-CIT_PREQ1054_02-0034
  1320 
  1321 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0034
  1322 
  1323 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1324 
  1325 //! @SYMREQ                   CIT_PREQ1054
  1326 
  1327 //! @SYMTestPriority          medium
  1328 
  1329 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1330 
  1331 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1332 
  1333 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
  1334 
  1335 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0034
  1336 
  1337 END_TESTCASE                  SEC-CIT_PREQ1054_02-0034
  1338 
  1339 
  1340 
  1341 
  1342 
  1343 START_TESTCASE                SEC-CIT_PREQ1054_02-0035
  1344 
  1345 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0035
  1346 
  1347 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1348 
  1349 //! @SYMREQ                   CIT_PREQ1054
  1350 
  1351 //! @SYMTestPriority          medium
  1352 
  1353 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1354 
  1355 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1356 
  1357 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
  1358 
  1359 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0035
  1360 
  1361 END_TESTCASE                  SEC-CIT_PREQ1054_02-0035
  1362 
  1363 
  1364 
  1365 
  1366 
  1367 START_TESTCASE                SEC-CIT_PREQ1054_02-0036
  1368 
  1369 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0036
  1370 
  1371 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1372 
  1373 //! @SYMREQ                   CIT_PREQ1054
  1374 
  1375 //! @SYMTestPriority          medium
  1376 
  1377 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1378 
  1379 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1380 
  1381 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
  1382 
  1383 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0036
  1384 
  1385 END_TESTCASE                  SEC-CIT_PREQ1054_02-0036
  1386 
  1387 
  1388 
  1389 
  1390 
  1391 START_TESTCASE                SEC-CIT_PREQ1054_02-0037
  1392 
  1393 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0037
  1394 
  1395 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1396 
  1397 //! @SYMREQ                   CIT_PREQ1054
  1398 
  1399 //! @SYMTestPriority          medium
  1400 
  1401 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1402 
  1403 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1404 
  1405 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
  1406 
  1407 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0037
  1408 
  1409 END_TESTCASE                  SEC-CIT_PREQ1054_02-0037
  1410 
  1411 
  1412 
  1413 
  1414 
  1415 // /////////////////////////////////////////////////////////////////////////////////
  1416 
  1417 // /////////////////////////////////////////////////////////////////////////////////
  1418 
  1419 // /////////////////////////////////////////////////////////////////////////////////
  1420 
  1421 
  1422 
  1423 START_TESTCASE                SEC-CIT_PREQ1054_02-0038
  1424 
  1425 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0038
  1426 
  1427 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1428 
  1429 //! @SYMREQ                   CIT_PREQ1054
  1430 
  1431 //! @SYMTestPriority          medium
  1432 
  1433 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1434 
  1435 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1436 
  1437 //! @SYMTestActions           1) Element test case 1, ECipher3DES_CBC
  1438 
  1439 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0038
  1440 
  1441 END_TESTCASE                  SEC-CIT_PREQ1054_02-0038
  1442 
  1443 
  1444 
  1445 
  1446 
  1447 START_TESTCASE                SEC-CIT_PREQ1054_02-0039
  1448 
  1449 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0039
  1450 
  1451 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1452 
  1453 //! @SYMREQ                   CIT_PREQ1054
  1454 
  1455 //! @SYMTestPriority          medium
  1456 
  1457 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1458 
  1459 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1460 
  1461 //! @SYMTestActions           1) Element test case 2, ECipher3DES_CBC
  1462 
  1463 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0039
  1464 
  1465 END_TESTCASE                  SEC-CIT_PREQ1054_02-0039
  1466 
  1467 
  1468 
  1469 
  1470 
  1471 START_TESTCASE                SEC-CIT_PREQ1054_02-0040
  1472 
  1473 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0040
  1474 
  1475 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1476 
  1477 //! @SYMREQ                   CIT_PREQ1054
  1478 
  1479 //! @SYMTestPriority          medium
  1480 
  1481 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1482 
  1483 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1484 
  1485 //! @SYMTestActions           1) Element test case 3, ECipher3DES_CBC
  1486 
  1487 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0040
  1488 
  1489 END_TESTCASE                  SEC-CIT_PREQ1054_02-0040
  1490 
  1491 
  1492 
  1493 
  1494 
  1495 START_TESTCASE                SEC-CIT_PREQ1054_02-0041
  1496 
  1497 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0041
  1498 
  1499 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1500 
  1501 //! @SYMREQ                   CIT_PREQ1054
  1502 
  1503 //! @SYMTestPriority          medium
  1504 
  1505 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1506 
  1507 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1508 
  1509 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
  1510 
  1511 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0041
  1512 
  1513 END_TESTCASE                  SEC-CIT_PREQ1054_02-0041
  1514 
  1515 
  1516 
  1517 
  1518 
  1519 START_TESTCASE                SEC-CIT_PREQ1054_02-0042
  1520 
  1521 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0042
  1522 
  1523 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1524 
  1525 //! @SYMREQ                   CIT_PREQ1054
  1526 
  1527 //! @SYMTestPriority          medium
  1528 
  1529 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1530 
  1531 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1532 
  1533 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
  1534 
  1535 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0042
  1536 
  1537 END_TESTCASE                  SEC-CIT_PREQ1054_02-0042
  1538 
  1539 
  1540 
  1541 
  1542 
  1543 START_TESTCASE                SEC-CIT_PREQ1054_02-0043
  1544 
  1545 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0043
  1546 
  1547 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1548 
  1549 //! @SYMREQ                   CIT_PREQ1054
  1550 
  1551 //! @SYMTestPriority          medium
  1552 
  1553 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1554 
  1555 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1556 
  1557 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
  1558 
  1559 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0043
  1560 
  1561 END_TESTCASE                  SEC-CIT_PREQ1054_02-0043
  1562 
  1563 
  1564 
  1565 
  1566 
  1567 START_TESTCASE                SEC-CIT_PREQ1054_02-0044
  1568 
  1569 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0044
  1570 
  1571 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1572 
  1573 //! @SYMREQ                   CIT_PREQ1054
  1574 
  1575 //! @SYMTestPriority          medium
  1576 
  1577 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1578 
  1579 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1580 
  1581 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
  1582 
  1583 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0044
  1584 
  1585 END_TESTCASE                  SEC-CIT_PREQ1054_02-0044
  1586 
  1587 
  1588 
  1589 
  1590 
  1591 START_TESTCASE                SEC-CIT_PREQ1054_02-0045
  1592 
  1593 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0045
  1594 
  1595 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1596 
  1597 //! @SYMREQ                   CIT_PREQ1054
  1598 
  1599 //! @SYMTestPriority          medium
  1600 
  1601 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1602 
  1603 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1604 
  1605 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
  1606 
  1607 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0045
  1608 
  1609 END_TESTCASE                  SEC-CIT_PREQ1054_02-0045
  1610 
  1611 
  1612 
  1613 
  1614 
  1615 START_TESTCASE                SEC-CIT_PREQ1054_02-0046
  1616 
  1617 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0046
  1618 
  1619 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1620 
  1621 //! @SYMREQ                   CIT_PREQ1054
  1622 
  1623 //! @SYMTestPriority          medium
  1624 
  1625 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1626 
  1627 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1628 
  1629 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
  1630 
  1631 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0046
  1632 
  1633 END_TESTCASE                  SEC-CIT_PREQ1054_02-0046
  1634 
  1635 
  1636 
  1637 
  1638 
  1639 // /////////////////////////////////////////////////////////////////////////////////
  1640 
  1641 // /////////////////////////////////////////////////////////////////////////////////
  1642 
  1643 // /////////////////////////////////////////////////////////////////////////////////
  1644 
  1645 
  1646 
  1647 START_TESTCASE                SEC-CIT_PREQ1054_02-0047
  1648 
  1649 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0047
  1650 
  1651 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1652 
  1653 //! @SYMREQ                   CIT_PREQ1054
  1654 
  1655 //! @SYMTestPriority          medium
  1656 
  1657 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1658 
  1659 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1660 
  1661 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_256
  1662 
  1663 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0047
  1664 
  1665 END_TESTCASE                  SEC-CIT_PREQ1054_02-0047
  1666 
  1667 
  1668 
  1669 
  1670 
  1671 START_TESTCASE                SEC-CIT_PREQ1054_02-0048
  1672 
  1673 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0048
  1674 
  1675 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1676 
  1677 //! @SYMREQ                   CIT_PREQ1054
  1678 
  1679 //! @SYMTestPriority          medium
  1680 
  1681 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1682 
  1683 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1684 
  1685 //! @SYMTestActions           1) Element test case 2, ECipherAES_CBC_256
  1686 
  1687 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0048
  1688 
  1689 END_TESTCASE                  SEC-CIT_PREQ1054_02-0048
  1690 
  1691 
  1692 
  1693 
  1694 
  1695 START_TESTCASE                SEC-CIT_PREQ1054_02-0049
  1696 
  1697 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0049
  1698 
  1699 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1700 
  1701 //! @SYMREQ                   CIT_PREQ1054
  1702 
  1703 //! @SYMTestPriority          medium
  1704 
  1705 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1706 
  1707 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1708 
  1709 //! @SYMTestActions           1) Element test case 3, ECipherAES_CBC_256
  1710 
  1711 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0049
  1712 
  1713 END_TESTCASE                  SEC-CIT_PREQ1054_02-0049
  1714 
  1715 
  1716 
  1717 
  1718 
  1719 START_TESTCASE                SEC-CIT_PREQ1054_02-0050
  1720 
  1721 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0050
  1722 
  1723 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1724 
  1725 //! @SYMREQ                   CIT_PREQ1054
  1726 
  1727 //! @SYMTestPriority          medium
  1728 
  1729 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1730 
  1731 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1732 
  1733 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
  1734 
  1735 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0050
  1736 
  1737 END_TESTCASE                  SEC-CIT_PREQ1054_02-0050
  1738 
  1739 
  1740 
  1741 
  1742 
  1743 START_TESTCASE                SEC-CIT_PREQ1054_02-0051
  1744 
  1745 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0051
  1746 
  1747 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1748 
  1749 //! @SYMREQ                   CIT_PREQ1054
  1750 
  1751 //! @SYMTestPriority          medium
  1752 
  1753 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1754 
  1755 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1756 
  1757 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
  1758 
  1759 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0051
  1760 
  1761 END_TESTCASE                  SEC-CIT_PREQ1054_02-0051
  1762 
  1763 
  1764 
  1765 
  1766 
  1767 START_TESTCASE                SEC-CIT_PREQ1054_02-0052
  1768 
  1769 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0052
  1770 
  1771 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1772 
  1773 //! @SYMREQ                   CIT_PREQ1054
  1774 
  1775 //! @SYMTestPriority          medium
  1776 
  1777 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1778 
  1779 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1780 
  1781 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
  1782 
  1783 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0052
  1784 
  1785 END_TESTCASE                  SEC-CIT_PREQ1054_02-0052
  1786 
  1787 
  1788 
  1789 
  1790 
  1791 START_TESTCASE                SEC-CIT_PREQ1054_02-0053
  1792 
  1793 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0053
  1794 
  1795 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1796 
  1797 //! @SYMREQ                   CIT_PREQ1054
  1798 
  1799 //! @SYMTestPriority          medium
  1800 
  1801 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1802 
  1803 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1804 
  1805 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
  1806 
  1807 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0053
  1808 
  1809 END_TESTCASE                  SEC-CIT_PREQ1054_02-0053
  1810 
  1811 
  1812 
  1813 
  1814 
  1815 START_TESTCASE                SEC-CIT_PREQ1054_02-0054
  1816 
  1817 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0054
  1818 
  1819 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1820 
  1821 //! @SYMREQ                   CIT_PREQ1054
  1822 
  1823 //! @SYMTestPriority          medium
  1824 
  1825 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1826 
  1827 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1828 
  1829 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
  1830 
  1831 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0054
  1832 
  1833 END_TESTCASE                  SEC-CIT_PREQ1054_02-0054
  1834 
  1835 
  1836 
  1837 
  1838 
  1839 START_TESTCASE                SEC-CIT_PREQ1054_02-0055
  1840 
  1841 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0055
  1842 
  1843 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1844 
  1845 //! @SYMREQ                   CIT_PREQ1054
  1846 
  1847 //! @SYMTestPriority          medium
  1848 
  1849 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1850 
  1851 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1852 
  1853 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
  1854 
  1855 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0055
  1856 
  1857 END_TESTCASE                  SEC-CIT_PREQ1054_02-0055
  1858 
  1859 
  1860 
  1861 
  1862 
  1863 // /////////////////////////////////////////////////////////////////////////////////
  1864 
  1865 // /////////////////////////////////////////////////////////////////////////////////
  1866 
  1867 // /////////////////////////////////////////////////////////////////////////////////
  1868 
  1869 
  1870 
  1871 START_TESTCASE                SEC-CIT_PREQ1054_02-0056
  1872 
  1873 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0056
  1874 
  1875 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1876 
  1877 //! @SYMREQ                   CIT_PREQ1054
  1878 
  1879 //! @SYMTestPriority          medium
  1880 
  1881 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1882 
  1883 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1884 
  1885 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_192
  1886 
  1887 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0056
  1888 
  1889 END_TESTCASE                  SEC-CIT_PREQ1054_02-0056
  1890 
  1891 
  1892 
  1893 
  1894 
  1895 START_TESTCASE                SEC-CIT_PREQ1054_02-0057
  1896 
  1897 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0057
  1898 
  1899 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1900 
  1901 //! @SYMREQ                   CIT_PREQ1054
  1902 
  1903 //! @SYMTestPriority          medium
  1904 
  1905 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1906 
  1907 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1908 
  1909 //! @SYMTestActions           1) Element test case 2, ECipherAES_CBC_192
  1910 
  1911 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0057
  1912 
  1913 END_TESTCASE                  SEC-CIT_PREQ1054_02-0057
  1914 
  1915 
  1916 
  1917 
  1918 
  1919 START_TESTCASE                SEC-CIT_PREQ1054_02-0058
  1920 
  1921 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0058
  1922 
  1923 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1924 
  1925 //! @SYMREQ                   CIT_PREQ1054
  1926 
  1927 //! @SYMTestPriority          medium
  1928 
  1929 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1930 
  1931 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1932 
  1933 //! @SYMTestActions           1) Element test case 3, ECipherAES_CBC_192
  1934 
  1935 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0058
  1936 
  1937 END_TESTCASE                  SEC-CIT_PREQ1054_02-0058
  1938 
  1939 
  1940 
  1941 
  1942 
  1943 START_TESTCASE                SEC-CIT_PREQ1054_02-0059
  1944 
  1945 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0059
  1946 
  1947 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1948 
  1949 //! @SYMREQ                   CIT_PREQ1054
  1950 
  1951 //! @SYMTestPriority          medium
  1952 
  1953 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1954 
  1955 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1956 
  1957 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
  1958 
  1959 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0059
  1960 
  1961 END_TESTCASE                  SEC-CIT_PREQ1054_02-0059
  1962 
  1963 
  1964 
  1965 
  1966 
  1967 START_TESTCASE                SEC-CIT_PREQ1054_02-0060
  1968 
  1969 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0060
  1970 
  1971 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1972 
  1973 //! @SYMREQ                   CIT_PREQ1054
  1974 
  1975 //! @SYMTestPriority          medium
  1976 
  1977 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  1978 
  1979 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  1980 
  1981 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
  1982 
  1983 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0060
  1984 
  1985 END_TESTCASE                  SEC-CIT_PREQ1054_02-0060
  1986 
  1987 
  1988 
  1989 
  1990 
  1991 START_TESTCASE                SEC-CIT_PREQ1054_02-0061
  1992 
  1993 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0061
  1994 
  1995 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  1996 
  1997 //! @SYMREQ                   CIT_PREQ1054
  1998 
  1999 //! @SYMTestPriority          medium
  2000 
  2001 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2002 
  2003 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2004 
  2005 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
  2006 
  2007 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0061
  2008 
  2009 END_TESTCASE                  SEC-CIT_PREQ1054_02-0061
  2010 
  2011 
  2012 
  2013 
  2014 
  2015 START_TESTCASE                SEC-CIT_PREQ1054_02-0062
  2016 
  2017 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0062
  2018 
  2019 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2020 
  2021 //! @SYMREQ                   CIT_PREQ1054
  2022 
  2023 //! @SYMTestPriority          medium
  2024 
  2025 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2026 
  2027 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2028 
  2029 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
  2030 
  2031 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0062
  2032 
  2033 END_TESTCASE                  SEC-CIT_PREQ1054_02-0062
  2034 
  2035 
  2036 
  2037 
  2038 
  2039 START_TESTCASE                SEC-CIT_PREQ1054_02-0063
  2040 
  2041 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0063
  2042 
  2043 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2044 
  2045 //! @SYMREQ                   CIT_PREQ1054
  2046 
  2047 //! @SYMTestPriority          medium
  2048 
  2049 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2050 
  2051 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2052 
  2053 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
  2054 
  2055 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0063
  2056 
  2057 END_TESTCASE                  SEC-CIT_PREQ1054_02-0063
  2058 
  2059 
  2060 
  2061 
  2062 
  2063 START_TESTCASE                SEC-CIT_PREQ1054_02-0064
  2064 
  2065 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0064
  2066 
  2067 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2068 
  2069 //! @SYMREQ                   CIT_PREQ1054
  2070 
  2071 //! @SYMTestPriority          medium
  2072 
  2073 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2074 
  2075 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2076 
  2077 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
  2078 
  2079 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0064
  2080 
  2081 END_TESTCASE                  SEC-CIT_PREQ1054_02-0064
  2082 
  2083 
  2084 
  2085 
  2086 
  2087 // /////////////////////////////////////////////////////////////////////////////////
  2088 
  2089 // /////////////////////////////////////////////////////////////////////////////////
  2090 
  2091 // /////////////////////////////////////////////////////////////////////////////////
  2092 
  2093 
  2094 
  2095 START_TESTCASE                SEC-CIT_PREQ1054_02-0065
  2096 
  2097 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0065
  2098 
  2099 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2100 
  2101 //! @SYMREQ                   CIT_PREQ1054
  2102 
  2103 //! @SYMTestPriority          medium
  2104 
  2105 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2106 
  2107 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2108 
  2109 //! @SYMTestActions           1) Element test case 1, ECipherAES_CBC_128
  2110 
  2111 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0065
  2112 
  2113 END_TESTCASE                  SEC-CIT_PREQ1054_02-0065
  2114 
  2115 
  2116 
  2117 
  2118 
  2119 START_TESTCASE                SEC-CIT_PREQ1054_02-0066
  2120 
  2121 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0066
  2122 
  2123 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2124 
  2125 //! @SYMREQ                   CIT_PREQ1054
  2126 
  2127 //! @SYMTestPriority          medium
  2128 
  2129 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2130 
  2131 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2132 
  2133 //! @SYMTestActions           1) Element test case 2, ECipherAES_CBC_128
  2134 
  2135 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0066
  2136 
  2137 END_TESTCASE                  SEC-CIT_PREQ1054_02-0066
  2138 
  2139 
  2140 
  2141 
  2142 
  2143 START_TESTCASE                SEC-CIT_PREQ1054_02-0067
  2144 
  2145 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0067
  2146 
  2147 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2148 
  2149 //! @SYMREQ                   CIT_PREQ1054
  2150 
  2151 //! @SYMTestPriority          medium
  2152 
  2153 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2154 
  2155 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2156 
  2157 //! @SYMTestActions           1) Element test case 3, ECipherAES_CBC_128
  2158 
  2159 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0067
  2160 
  2161 END_TESTCASE                  SEC-CIT_PREQ1054_02-0067
  2162 
  2163 
  2164 
  2165 
  2166 
  2167 START_TESTCASE                SEC-CIT_PREQ1054_02-0068
  2168 
  2169 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0068
  2170 
  2171 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2172 
  2173 //! @SYMREQ                   CIT_PREQ1054
  2174 
  2175 //! @SYMTestPriority          medium
  2176 
  2177 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2178 
  2179 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2180 
  2181 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
  2182 
  2183 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0068
  2184 
  2185 END_TESTCASE                  SEC-CIT_PREQ1054_02-0068
  2186 
  2187 
  2188 
  2189 
  2190 
  2191 START_TESTCASE                SEC-CIT_PREQ1054_02-0069
  2192 
  2193 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0069
  2194 
  2195 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2196 
  2197 //! @SYMREQ                   CIT_PREQ1054
  2198 
  2199 //! @SYMTestPriority          medium
  2200 
  2201 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2202 
  2203 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2204 
  2205 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
  2206 
  2207 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0069
  2208 
  2209 END_TESTCASE                  SEC-CIT_PREQ1054_02-0069
  2210 
  2211 
  2212 
  2213 
  2214 
  2215 START_TESTCASE                SEC-CIT_PREQ1054_02-0070
  2216 
  2217 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0070
  2218 
  2219 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2220 
  2221 //! @SYMREQ                   CIT_PREQ1054
  2222 
  2223 //! @SYMTestPriority          medium
  2224 
  2225 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2226 
  2227 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2228 
  2229 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
  2230 
  2231 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0070
  2232 
  2233 END_TESTCASE                  SEC-CIT_PREQ1054_02-0070
  2234 
  2235 
  2236 
  2237 
  2238 
  2239 START_TESTCASE                SEC-CIT_PREQ1054_02-0071
  2240 
  2241 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0071
  2242 
  2243 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2244 
  2245 //! @SYMREQ                   CIT_PREQ1054
  2246 
  2247 //! @SYMTestPriority          medium
  2248 
  2249 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2250 
  2251 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2252 
  2253 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
  2254 
  2255 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0071
  2256 
  2257 END_TESTCASE                  SEC-CIT_PREQ1054_02-0071
  2258 
  2259 
  2260 
  2261 
  2262 
  2263 START_TESTCASE                SEC-CIT_PREQ1054_02-0072
  2264 
  2265 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0072
  2266 
  2267 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2268 
  2269 //! @SYMREQ                   CIT_PREQ1054
  2270 
  2271 //! @SYMTestPriority          medium
  2272 
  2273 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2274 
  2275 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2276 
  2277 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
  2278 
  2279 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0072
  2280 
  2281 END_TESTCASE                  SEC-CIT_PREQ1054_02-0072
  2282 
  2283 
  2284 
  2285 
  2286 
  2287 START_TESTCASE                SEC-CIT_PREQ1054_02-0073
  2288 
  2289 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0073
  2290 
  2291 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2292 
  2293 //! @SYMREQ                   CIT_PREQ1054
  2294 
  2295 //! @SYMTestPriority          medium
  2296 
  2297 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2298 
  2299 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2300 
  2301 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
  2302 
  2303 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0073
  2304 
  2305 END_TESTCASE                  SEC-CIT_PREQ1054_02-0073
  2306 
  2307 
  2308 
  2309 
  2310 
  2311 START_TESTCASE                SEC-CRYPTOSPI-TPBETESTS_V2-0084
  2312 
  2313 //! @SYMTestCaseID            SEC-CRYPTOSPI-TPBETESTS_V2-0084
  2314 
  2315 //! @SYMTestCaseDesc          //////////////////////////////////////////////////////////////////
  2316 
  2317 //!                           PKCS12 tests using PKCS#12 PBE algorithm with PKCS#12 KDF function.
  2318 
  2319 //!                           ECipherRC2_CBC_128_16, ECipher3DES_CBC tests defined above.
  2320 
  2321 //!                           "Set" tests are not supported for stream cipher ECipherARC4_40,ECipherARC4_128
  2322 
  2323 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_40_5
  2324 
  2325 //!                           2) Element test case 2, ECipherARC4_128
  2326 
  2327 //!                           3) Element test case 3, ECipherARC4_40
  2328 
  2329 //!                           4) Element test case 4, ECipher2Key3DES_CBC
  2330 
  2331 //!                           5) Test of Set encryption, password changing, exporting importing Test 5, ECipherRC2_CBC_40_5
  2332 
  2333 //!                           6) Test of Set encryption, password changing, exporting importing Test 9, ECipher2Key3DES_CBC
  2334 
  2335 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-001
  2336 
  2337 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-002
  2338 
  2339 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-003
  2340 
  2341 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-004
  2342 
  2343 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-005
  2344 
  2345 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CRYPTOSPI-TPBETESTS_V2-0084-006
  2346 
  2347 END_TESTCASE                  SEC-CRYPTOSPI-TPBETESTS_V2-0084
  2348 
  2349 
  2350 
  2351 
  2352 
  2353 // ///////////////////////////////////////
  2354 
  2355 
  2356 
  2357 // Run selected PKCS#12 tests in OOM
  2358 
  2359 
  2360 
  2361 START_TESTCASE                SEC-CIT_PREQ1054_02-0074
  2362 
  2363 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0074
  2364 
  2365 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2366 
  2367 //! @SYMREQ                   CIT_PREQ1054
  2368 
  2369 //! @SYMTestPriority          medium
  2370 
  2371 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2372 
  2373 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2374 
  2375 //! @SYMTestActions           1) OOM start
  2376 
  2377 RUN_TEST_STEP                 -1    CTestHandler        startmemfailure     
  2378 
  2379 END_TESTCASE                  SEC-CIT_PREQ1054_02-0074
  2380 
  2381 
  2382 
  2383 
  2384 
  2385 START_TESTCASE                SEC-CIT_PREQ1054_02-0075
  2386 
  2387 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0075
  2388 
  2389 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2390 
  2391 //! @SYMREQ                   CIT_PREQ1054
  2392 
  2393 //! @SYMTestPriority          medium
  2394 
  2395 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2396 
  2397 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2398 
  2399 //! @SYMTestActions           1) Element test case 1, ECipherRC2_CBC_128_16
  2400 
  2401 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0075
  2402 
  2403 END_TESTCASE                  SEC-CIT_PREQ1054_02-0075
  2404 
  2405 
  2406 
  2407 
  2408 
  2409 START_TESTCASE                SEC-CIT_PREQ1054_02-0076
  2410 
  2411 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0076
  2412 
  2413 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2414 
  2415 //! @SYMREQ                   CIT_PREQ1054
  2416 
  2417 //! @SYMTestPriority          medium
  2418 
  2419 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2420 
  2421 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2422 
  2423 //! @SYMTestActions           1) Element test case 3, ECipherRC2_CBC_40_16
  2424 
  2425 RUN_TEST_STEP                 -1    CTestHandler        Element                tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0076
  2426 
  2427 END_TESTCASE                  SEC-CIT_PREQ1054_02-0076
  2428 
  2429 
  2430 
  2431 
  2432 
  2433 START_TESTCASE                SEC-CIT_PREQ1054_02-0077
  2434 
  2435 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0077
  2436 
  2437 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2438 
  2439 //! @SYMREQ                   CIT_PREQ1054
  2440 
  2441 //! @SYMTestPriority          medium
  2442 
  2443 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2444 
  2445 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2446 
  2447 //! @SYMTestActions           1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
  2448 
  2449 RUN_TEST_STEP                 -1    CTestHandler        Set                    tpbetests_v2.ini   SEC-CIT_PREQ1054_02-0077
  2450 
  2451 END_TESTCASE                  SEC-CIT_PREQ1054_02-0077
  2452 
  2453 
  2454 
  2455 
  2456 
  2457 START_TESTCASE                SEC-CIT_PREQ1054_02-0078
  2458 
  2459 //! @SYMTestCaseID            SEC-CIT_PREQ1054_02-0078
  2460 
  2461 //! @SYMTestCaseDesc          Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
  2462 
  2463 //! @SYMREQ                   CIT_PREQ1054
  2464 
  2465 //! @SYMTestPriority          medium
  2466 
  2467 //! @SYMTestActions           Encrypts are decrypts the specified data using the PKCS#12-generated key.
  2468 
  2469 //! @SYMTestExpectedResults   The generated key matches the expected byte stream.
  2470 
  2471 //! @SYMTestActions           1) OOM end
  2472 
  2473 //!                           2) Compatibility old PKCS#5
  2474 
  2475 //!                           3) Data compatibility orig PKCS#12
  2476 
  2477 RUN_TEST_STEP                 -1    CTestHandler        stopmemfailure      
  2478 
  2479 RUN_TEST_STEP                 -1    CTestHandler        ExternPbeParams        tpbetests_v2.ini   SEC-CIT_PREQ1054_02-002
  2480 
  2481 RUN_TEST_STEP                 -1    CTestHandler        ExternPbeParams        tpbetests_v2.ini   SEC-CIT_PREQ1054_02-003
  2482 
  2483 END_TESTCASE                  SEC-CIT_PREQ1054_02-0078
  2484 
  2485 
  2486 
  2487 
  2488