DPE: Add fuzz test to client API
Make it possible to fuzz test DPE service through
the regular client API instead of pre-encoded
CBOR commands. This avoids the malformed CBOR
encoding in the input and let more focus the
fuzzer on the DPE library internals.
Capabilities:
- Each command can be separately tested.
- Internal state can be built before the command
execution based on hard-coded data in test_data[].
- Random commands (among the supported ones) can
also be generated to cover the entire code base
in a single fuzzing session.
Change-Id: Iec246ee117fc1b7b0dd59e44dd919d565cd2ed65
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
4 files changed