From: Krzysztof Jackiewicz Date: Wed, 20 Mar 2019 14:23:46 +0000 (+0100) Subject: CKM: Remove CBC from integrity tests X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfd8db6ff9db5b13699c76f23c1188de8a0a6990;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git CKM: Remove CBC from integrity tests In case of CBC the tests that uses different key to decrypt the data may pass of fail depending on the padding scheme and input data length. In other words, we should not expect the CBC to fail if wrong key is used, yet in many cases it does fail. Change-Id: Ib213544b6349433c15346eb422cdbeea4f074544 --- diff --git a/src/ckm/unprivileged/encryption-decryption.cpp b/src/ckm/unprivileged/encryption-decryption.cpp index d115ae8c..9b19a0f2 100644 --- a/src/ckm/unprivileged/encryption-decryption.cpp +++ b/src/ckm/unprivileged/encryption-decryption.cpp @@ -1117,9 +1117,6 @@ RUNNER_TEST_MULTIPLE(TED_0140_decrypt_no_output_buffer, SyncEnv, AsyncEnv) RUNNER_TEST_MULTIPLE(TED_0200_encrypt_decrypt_different_keys, SyncEnv, AsyncEnv) { testBackend b(PolicyBackend::FORCE_SOFTWARE); - testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_CBC, 128}, false); - testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_CBC, 192}, false); - testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_CBC, 256}, false); testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_GCM, 128}, false); testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_GCM, 192}, false); testEncryptDecryptDifferentKeys({CKMC_ALGO_AES_GCM, 256}, false);