Initial values tool 94/190494/16
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 2 Oct 2018 12:27:27 +0000 (14:27 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 5 Oct 2018 19:24:36 +0000 (21:24 +0200)
commit3195a9624186ca5b6b681148b192e9ef48cfe872
tree1143161576039ff8877adcea5760ed1d0bdcf579
parentf0a0b4b6f6f5047df98a75ec999a964ce772b012
Initial values tool

Add a tool able to create and/or update an initial values xml. It is also
possible to add encrypted ininial values.

Add rpm package for potential use in gbs buildroot during image creation.

Limitations:
- Hardcoded IV & tag length
- Hardcoded Data format

Testing:
dd if=/dev/random of=/tmp/key bs=32 count=1
dd if=/dev/random of=/tmp/data bs=32 count=1
ckm_initial_values -k /tmp/key -d /tmp/data -n name -t Key -s AES -p pass -e
-b hardware -a acc1,acc2,acc3

Change-Id: Id29d0eb58d9dba3e78b3437534cb566046a39877
LICENSE.BSD-2-Clause [new file with mode: 0644]
packaging/key-manager.spec
tools/CMakeLists.txt
tools/ckm_initial_values/CMakeLists.txt [new file with mode: 0644]
tools/ckm_initial_values/base64.cpp [new file with mode: 0644]
tools/ckm_initial_values/base64.h [new file with mode: 0644]
tools/ckm_initial_values/main.cpp [new file with mode: 0644]