Add algorithm param validation 16/42116/8
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 19 Jun 2015 08:08:31 +0000 (10:08 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 1 Jul 2015 11:40:12 +0000 (13:40 +0200)
commitb5d73601f8a1a7a70797934e139617d5356c7f48
tree69588e4b4068644383e339ad3ece77f842b2a47e
parent2ddf3ea967433cebd888077c268779aa08f58c86
Add algorithm param validation

[Problem] Algorithm param validation is quite complicated. We need a generic
mechanism for parameter constraints definition. Aes key generation algorithm is
missing. There's no validation of encryption params.
[Solution] Created generic parameter validation framework. Defined constraints
for all algorithms. Aes key algorithm added. Algorithm parameter validation
refactored.

[Verification] run ckm-tests --output=text

Change-Id: Ia1df8a3f4bcda835a736d5fe1e4fbc7157d1a26c
src/include/ckm/ckm-type.h
src/include/ckmc/ckmc-type.h
src/manager/common/data-type.cpp
src/manager/crypto/generic-backend/algo-validation.h [new file with mode: 0644]
src/manager/crypto/sw-backend/internals.cpp
src/manager/crypto/sw-backend/internals.h
src/manager/crypto/sw-backend/key.cpp
src/manager/crypto/sw-backend/store.cpp
src/manager/service/ckm-logic.cpp