Validate encrypted DKEK 44/192144/6
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Oct 2018 13:26:12 +0000 (14:26 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 13 Feb 2019 12:37:06 +0000 (13:37 +0100)
commitb15ba6d7ccaeef1b17e2234afba13b7864cfcd2a
tree1f7db361bb07059c7cbab90ea57d7507d7f99929
parent4437a93b733df83365798950ada5f7d598877407
Validate encrypted DKEK

- Make sure that the length of the encrypted DKEK received in
  WrapperKeyAndInfoContainer() does not exceed the size of the key
  buffer.
- Check client id NULL termination.
- Get rid of unnecessary dynamic allocations.
- Update tests.

Change-Id: I9f5b494a8ea3d0d8f438a50bb49b55d57d1a3e67
src/manager/service/key-provider.cpp
src/manager/service/key-provider.h
tests/test_key-provider.cpp