Simplify DB::Row/Token extraction 46/290346/6
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 23 Mar 2023 08:19:41 +0000 (09:19 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 27 Mar 2023 12:40:40 +0000 (14:40 +0200)
commit3fdf767b56af3864d34e3296bee2ec251962ea40
tree0729e7b698f7e3949e561b63526186a1600fe087
parent342d84e966499ed8234bf5338732e01107ee4f14
Simplify DB::Row/Token extraction

For wrapped key export we need to pass 1 object to be wrapped by
another. GObjUPtr is insufficient as it loses information about the
specific type. We'll need that info in TZ backend.

The wrapping API can be then made look as follows:

RawBuffer GObj::wrap(const CryptoAlgorithm &params,
                     const Token &keyToWrap,
                     const Password &keyToWrapPass);

Change-Id: Ifeea08cbef43c6e86c067e37c68627d6b819bfcf
src/manager/service/ckm-logic.cpp
src/manager/service/ckm-logic.h
src/manager/service/crypto-logic.cpp
src/manager/service/crypto-logic.h
unit-tests/test_crypto-logic.cpp