//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0001
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0001
//! @SYMTestCaseDesc Copyright (C) 2005 - 2006 Symbian Ltd. All Rights Reserved
//! @SYMTestActions 1) Element test case 1 with explicit kdf, salt len and iterations, ECipherRC2_CBC_128_16
//! 2) Element test case 1, ECipherRC2_CBC_128_16
//! 3) Element test case 2, ECipherRC2_CBC_128_16
//! 4) Element test case 3, ECipherRC2_CBC_128_16
//! 5) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
//! 6) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
//! 7) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
//! 8) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
//! 10) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
//! 11) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-003
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-009
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-010
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0001-011
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0001
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0002
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0002
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_16
//! 2) Element test case 2, ECipherRC2_CBC_40_16
//! 3) Element test case 3, ECipherRC2_CBC_40_16
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0002-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0002
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0003
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0003
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128
//! 2) Element test case 2, ECipherRC2_CBC_128
//! 3) Element test case 3, ECipherRC2_CBC_128
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0003-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0003
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0004
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0004
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40
//! 2) Element test case 2, ECipherRC2_CBC_40
//! 3) Element test case 3, ECipherRC2_CBC_40
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0004-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0004
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0005
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0005
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipher3DES_CBC
//! 2) Element test case 2, ECipher3DES_CBC
//! 3) Element test case 3, ECipher3DES_CBC
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0005-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0005
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0006
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0006
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_256
//! 2) Element test case 2, ECipherAES_CBC_256
//! 3) Element test case 3, ECipherAES_CBC_256
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0006-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0006
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0007
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0007
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_192
//! 2) Element test case 2, ECipherAES_CBC_192
//! 3) Element test case 3, ECipherAES_CBC_192
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0007-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0007
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0008
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0008
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_128
//! 2) Element test case 2, ECipherAES_CBC_128
//! 3) Element test case 3, ECipherAES_CBC_128
//! 4) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
//! 5) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
//! 6) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
//! 7) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
//! 8) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
//! 9) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-003
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-006
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-007
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-008
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0008-009
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0008
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0009
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0009
//! @SYMTestCaseDesc /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//! /////////////////////////////////////////////////////////////////////////////////
//!
//! Start of Permanent File Store PBE testing between weak and strong crypto
//! @SYMTestActions 1) Write encrypted data to a PFS named according to crypto strength
//! 2) Decrypting weak crypto file
//! 3) Decrypting strong crypto file
RUN_TEST_STEP -1 CTestHandler WritePFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-001
RUN_TEST_STEP -1 CTestHandler ReadPFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-002
RUN_TEST_STEP -1 CTestHandler ReadPFS tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0009-003
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0009
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0010
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0010
//! @SYMTestCaseDesc Start of OOM testing
//! @SYMTestActions 1) OOM start
//! 2) Element test case 2
//! 3) Test of Set encryption, password changing, exporting importing Test 1
//! 4) OOM end
RUN_TEST_STEP -1 CTestHandler startmemfailure
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0010-002
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0010-003
RUN_TEST_STEP -1 CTestHandler stopmemfailure
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0010
// =======================================================================
// PKCS#12 tests
START_TESTCASE SEC-CIT_PREQ1054_02-0001
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0001
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0001
END_TESTCASE SEC-CIT_PREQ1054_02-0001
START_TESTCASE SEC-CIT_PREQ1054_02-0002
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0002
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0002
END_TESTCASE SEC-CIT_PREQ1054_02-0002
START_TESTCASE SEC-CIT_PREQ1054_02-0003
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0003
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0003
END_TESTCASE SEC-CIT_PREQ1054_02-0003
START_TESTCASE SEC-CIT_PREQ1054_02-0004
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0004
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0004
END_TESTCASE SEC-CIT_PREQ1054_02-0004
START_TESTCASE SEC-CIT_PREQ1054_02-0005
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0005
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#5 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, explicit kdf, salt len, iter count, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0005
END_TESTCASE SEC-CIT_PREQ1054_02-0005
START_TESTCASE SEC-CIT_PREQ1054_02-0006
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0006
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0006
END_TESTCASE SEC-CIT_PREQ1054_02-0006
START_TESTCASE SEC-CIT_PREQ1054_02-0007
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0007
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0007
END_TESTCASE SEC-CIT_PREQ1054_02-0007
START_TESTCASE SEC-CIT_PREQ1054_02-0008
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0008
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0008
END_TESTCASE SEC-CIT_PREQ1054_02-0008
START_TESTCASE SEC-CIT_PREQ1054_02-0009
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0009
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0009
END_TESTCASE SEC-CIT_PREQ1054_02-0009
START_TESTCASE SEC-CIT_PREQ1054_02-0010
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0010
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0010
END_TESTCASE SEC-CIT_PREQ1054_02-0010
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0011
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0011
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0011
END_TESTCASE SEC-CIT_PREQ1054_02-0011
START_TESTCASE SEC-CIT_PREQ1054_02-0012
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0012
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0012
END_TESTCASE SEC-CIT_PREQ1054_02-0012
START_TESTCASE SEC-CIT_PREQ1054_02-0013
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0013
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0013
END_TESTCASE SEC-CIT_PREQ1054_02-0013
START_TESTCASE SEC-CIT_PREQ1054_02-0014
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0014
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0014
END_TESTCASE SEC-CIT_PREQ1054_02-0014
START_TESTCASE SEC-CIT_PREQ1054_02-0015
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0015
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0015
END_TESTCASE SEC-CIT_PREQ1054_02-0015
START_TESTCASE SEC-CIT_PREQ1054_02-0016
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0016
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0016
END_TESTCASE SEC-CIT_PREQ1054_02-0016
START_TESTCASE SEC-CIT_PREQ1054_02-0017
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0017
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0017
END_TESTCASE SEC-CIT_PREQ1054_02-0017
START_TESTCASE SEC-CIT_PREQ1054_02-0018
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0018
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0018
END_TESTCASE SEC-CIT_PREQ1054_02-0018
START_TESTCASE SEC-CIT_PREQ1054_02-0019
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0019
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0019
END_TESTCASE SEC-CIT_PREQ1054_02-0019
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0020
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0020
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0020
END_TESTCASE SEC-CIT_PREQ1054_02-0020
START_TESTCASE SEC-CIT_PREQ1054_02-0021
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0021
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0021
END_TESTCASE SEC-CIT_PREQ1054_02-0021
START_TESTCASE SEC-CIT_PREQ1054_02-0022
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0022
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0022
END_TESTCASE SEC-CIT_PREQ1054_02-0022
START_TESTCASE SEC-CIT_PREQ1054_02-0023
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0023
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0023
END_TESTCASE SEC-CIT_PREQ1054_02-0023
START_TESTCASE SEC-CIT_PREQ1054_02-0024
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0024
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0024
END_TESTCASE SEC-CIT_PREQ1054_02-0024
START_TESTCASE SEC-CIT_PREQ1054_02-0025
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0025
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0025
END_TESTCASE SEC-CIT_PREQ1054_02-0025
START_TESTCASE SEC-CIT_PREQ1054_02-0026
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0026
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0026
END_TESTCASE SEC-CIT_PREQ1054_02-0026
START_TESTCASE SEC-CIT_PREQ1054_02-0027
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0027
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0027
END_TESTCASE SEC-CIT_PREQ1054_02-0027
START_TESTCASE SEC-CIT_PREQ1054_02-0028
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0028
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0028
END_TESTCASE SEC-CIT_PREQ1054_02-0028
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0029
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0029
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0029
END_TESTCASE SEC-CIT_PREQ1054_02-0029
START_TESTCASE SEC-CIT_PREQ1054_02-0030
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0030
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0030
END_TESTCASE SEC-CIT_PREQ1054_02-0030
START_TESTCASE SEC-CIT_PREQ1054_02-0031
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0031
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0031
END_TESTCASE SEC-CIT_PREQ1054_02-0031
START_TESTCASE SEC-CIT_PREQ1054_02-0032
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0032
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0032
END_TESTCASE SEC-CIT_PREQ1054_02-0032
START_TESTCASE SEC-CIT_PREQ1054_02-0033
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0033
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0033
END_TESTCASE SEC-CIT_PREQ1054_02-0033
START_TESTCASE SEC-CIT_PREQ1054_02-0034
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0034
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0034
END_TESTCASE SEC-CIT_PREQ1054_02-0034
START_TESTCASE SEC-CIT_PREQ1054_02-0035
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0035
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0035
END_TESTCASE SEC-CIT_PREQ1054_02-0035
START_TESTCASE SEC-CIT_PREQ1054_02-0036
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0036
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0036
END_TESTCASE SEC-CIT_PREQ1054_02-0036
START_TESTCASE SEC-CIT_PREQ1054_02-0037
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0037
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherRC2_CBC_40
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0037
END_TESTCASE SEC-CIT_PREQ1054_02-0037
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0038
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0038
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0038
END_TESTCASE SEC-CIT_PREQ1054_02-0038
START_TESTCASE SEC-CIT_PREQ1054_02-0039
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0039
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0039
END_TESTCASE SEC-CIT_PREQ1054_02-0039
START_TESTCASE SEC-CIT_PREQ1054_02-0040
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0040
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0040
END_TESTCASE SEC-CIT_PREQ1054_02-0040
START_TESTCASE SEC-CIT_PREQ1054_02-0041
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0041
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0041
END_TESTCASE SEC-CIT_PREQ1054_02-0041
START_TESTCASE SEC-CIT_PREQ1054_02-0042
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0042
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0042
END_TESTCASE SEC-CIT_PREQ1054_02-0042
START_TESTCASE SEC-CIT_PREQ1054_02-0043
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0043
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0043
END_TESTCASE SEC-CIT_PREQ1054_02-0043
START_TESTCASE SEC-CIT_PREQ1054_02-0044
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0044
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0044
END_TESTCASE SEC-CIT_PREQ1054_02-0044
START_TESTCASE SEC-CIT_PREQ1054_02-0045
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0045
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0045
END_TESTCASE SEC-CIT_PREQ1054_02-0045
START_TESTCASE SEC-CIT_PREQ1054_02-0046
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0046
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipher3DES_CBC
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0046
END_TESTCASE SEC-CIT_PREQ1054_02-0046
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0047
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0047
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0047
END_TESTCASE SEC-CIT_PREQ1054_02-0047
START_TESTCASE SEC-CIT_PREQ1054_02-0048
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0048
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0048
END_TESTCASE SEC-CIT_PREQ1054_02-0048
START_TESTCASE SEC-CIT_PREQ1054_02-0049
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0049
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0049
END_TESTCASE SEC-CIT_PREQ1054_02-0049
START_TESTCASE SEC-CIT_PREQ1054_02-0050
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0050
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0050
END_TESTCASE SEC-CIT_PREQ1054_02-0050
START_TESTCASE SEC-CIT_PREQ1054_02-0051
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0051
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0051
END_TESTCASE SEC-CIT_PREQ1054_02-0051
START_TESTCASE SEC-CIT_PREQ1054_02-0052
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0052
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0052
END_TESTCASE SEC-CIT_PREQ1054_02-0052
START_TESTCASE SEC-CIT_PREQ1054_02-0053
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0053
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0053
END_TESTCASE SEC-CIT_PREQ1054_02-0053
START_TESTCASE SEC-CIT_PREQ1054_02-0054
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0054
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0054
END_TESTCASE SEC-CIT_PREQ1054_02-0054
START_TESTCASE SEC-CIT_PREQ1054_02-0055
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0055
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_256
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0055
END_TESTCASE SEC-CIT_PREQ1054_02-0055
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0056
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0056
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0056
END_TESTCASE SEC-CIT_PREQ1054_02-0056
START_TESTCASE SEC-CIT_PREQ1054_02-0057
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0057
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0057
END_TESTCASE SEC-CIT_PREQ1054_02-0057
START_TESTCASE SEC-CIT_PREQ1054_02-0058
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0058
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0058
END_TESTCASE SEC-CIT_PREQ1054_02-0058
START_TESTCASE SEC-CIT_PREQ1054_02-0059
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0059
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0059
END_TESTCASE SEC-CIT_PREQ1054_02-0059
START_TESTCASE SEC-CIT_PREQ1054_02-0060
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0060
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0060
END_TESTCASE SEC-CIT_PREQ1054_02-0060
START_TESTCASE SEC-CIT_PREQ1054_02-0061
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0061
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0061
END_TESTCASE SEC-CIT_PREQ1054_02-0061
START_TESTCASE SEC-CIT_PREQ1054_02-0062
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0062
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0062
END_TESTCASE SEC-CIT_PREQ1054_02-0062
START_TESTCASE SEC-CIT_PREQ1054_02-0063
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0063
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0063
END_TESTCASE SEC-CIT_PREQ1054_02-0063
START_TESTCASE SEC-CIT_PREQ1054_02-0064
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0064
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_192
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0064
END_TESTCASE SEC-CIT_PREQ1054_02-0064
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////////////
START_TESTCASE SEC-CIT_PREQ1054_02-0065
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0065
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0065
END_TESTCASE SEC-CIT_PREQ1054_02-0065
START_TESTCASE SEC-CIT_PREQ1054_02-0066
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0066
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 2, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0066
END_TESTCASE SEC-CIT_PREQ1054_02-0066
START_TESTCASE SEC-CIT_PREQ1054_02-0067
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0067
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0067
END_TESTCASE SEC-CIT_PREQ1054_02-0067
START_TESTCASE SEC-CIT_PREQ1054_02-0068
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0068
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 1, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0068
END_TESTCASE SEC-CIT_PREQ1054_02-0068
START_TESTCASE SEC-CIT_PREQ1054_02-0069
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0069
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0069
END_TESTCASE SEC-CIT_PREQ1054_02-0069
START_TESTCASE SEC-CIT_PREQ1054_02-0070
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0070
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 3 -- 8 byte input, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0070
END_TESTCASE SEC-CIT_PREQ1054_02-0070
START_TESTCASE SEC-CIT_PREQ1054_02-0071
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0071
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 1 byte password, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0071
END_TESTCASE SEC-CIT_PREQ1054_02-0071
START_TESTCASE SEC-CIT_PREQ1054_02-0072
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0072
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0072
END_TESTCASE SEC-CIT_PREQ1054_02-0072
START_TESTCASE SEC-CIT_PREQ1054_02-0073
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0073
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 4 -- 0 byte password 0 byte input, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0073
END_TESTCASE SEC-CIT_PREQ1054_02-0073
START_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0084
//! @SYMTestCaseID SEC-CRYPTOSPI-TPBETESTS_V2-0084
//! @SYMTestCaseDesc //////////////////////////////////////////////////////////////////
//! PKCS12 tests using PKCS#12 PBE algorithm with PKCS#12 KDF function.
//! ECipherRC2_CBC_128_16, ECipher3DES_CBC tests defined above.
//! "Set" tests are not supported for stream cipher ECipherARC4_40,ECipherARC4_128
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_40_5
//! 2) Element test case 2, ECipherARC4_128
//! 3) Element test case 3, ECipherARC4_40
//! 4) Element test case 4, ECipher2Key3DES_CBC
//! 5) Test of Set encryption, password changing, exporting importing Test 5, ECipherRC2_CBC_40_5
//! 6) Test of Set encryption, password changing, exporting importing Test 9, ECipher2Key3DES_CBC
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-001
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-002
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-003
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-004
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-005
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CRYPTOSPI-TPBETESTS_V2-0084-006
END_TESTCASE SEC-CRYPTOSPI-TPBETESTS_V2-0084
// ///////////////////////////////////////
// Run selected PKCS#12 tests in OOM
START_TESTCASE SEC-CIT_PREQ1054_02-0074
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0074
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) OOM start
RUN_TEST_STEP -1 CTestHandler startmemfailure
END_TESTCASE SEC-CIT_PREQ1054_02-0074
START_TESTCASE SEC-CIT_PREQ1054_02-0075
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0075
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 1, ECipherRC2_CBC_128_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0075
END_TESTCASE SEC-CIT_PREQ1054_02-0075
START_TESTCASE SEC-CIT_PREQ1054_02-0076
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0076
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Element test case 3, ECipherRC2_CBC_40_16
RUN_TEST_STEP -1 CTestHandler Element tpbetests_v2.ini SEC-CIT_PREQ1054_02-0076
END_TESTCASE SEC-CIT_PREQ1054_02-0076
START_TESTCASE SEC-CIT_PREQ1054_02-0077
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0077
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) Test of Set encryption, password changing, exporting importing Test 2 -- 1 byte input, ECipherAES_CBC_128
RUN_TEST_STEP -1 CTestHandler Set tpbetests_v2.ini SEC-CIT_PREQ1054_02-0077
END_TESTCASE SEC-CIT_PREQ1054_02-0077
START_TESTCASE SEC-CIT_PREQ1054_02-0078
//! @SYMTestCaseID SEC-CIT_PREQ1054_02-0078
//! @SYMTestCaseDesc Correctly encrypt and decrypt data using key generated with PKCS#12 KDF.
//! @SYMREQ CIT_PREQ1054
//! @SYMTestPriority medium
//! @SYMTestActions Encrypts are decrypts the specified data using the PKCS#12-generated key.
//! @SYMTestExpectedResults The generated key matches the expected byte stream.
//! @SYMTestActions 1) OOM end
//! 2) Compatibility old PKCS#5
//! 3) Data compatibility orig PKCS#12
RUN_TEST_STEP -1 CTestHandler stopmemfailure
RUN_TEST_STEP -1 CTestHandler ExternPbeParams tpbetests_v2.ini SEC-CIT_PREQ1054_02-002
RUN_TEST_STEP -1 CTestHandler ExternPbeParams tpbetests_v2.ini SEC-CIT_PREQ1054_02-003
END_TESTCASE SEC-CIT_PREQ1054_02-0078