CKM: Extend encrypted initial values test 26/192126/7
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 29 Oct 2018 15:54:27 +0000 (16:54 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 4 Dec 2018 10:40:59 +0000 (10:40 +0000)
commitcbea41b8e2a2b8cd421ce43c3189b5d2fa281dfd
tree7f656121af0be086d1df58f97c962b529d44505b
parent01f26f7ed9c1b8696151a740e2e15e824419f8a1
CKM: Extend encrypted initial values test

- Make it independent from other tests by adding initial values xml preparation,
  key-manager restart and db cleanup.
- Generate initial values at build time using ckm_initial_values tool.
- Install the tested xml file in test directory and copy it to initial values
  dir during the test instead of installing it there directly.
- Encrypt the test data using openssl and the same key that is passed as initial
  value during compilation instead of hardcoding the encryption results.
- Add build time dependency to util-linux to be able to use hexdump.
- Add build time dependency to key-manager-initial-values to be able to run the
  tool.

Change-Id: I7fe4be6a3493860244ac1cc1c0bb0dace5109a04
packaging/security-tests.spec
src/ckm/CMakeLists.txt
src/ckm/privileged/CMakeLists.txt
src/ckm/privileged/aes_128_cbc_encrypt.sh [new file with mode: 0755]
src/ckm/privileged/initial-values.cpp
src/ckm/resource/test.xml [deleted file]