spdm: Implement end to end session test

Implement the crypto/identity traits using OpenSSL. The key handle types
are just holding the raw keys for test. The vendor command processing
will append the reversed request after the original request. The current
test verifies that requester-responder session can be established
successfully, and vendor command can be processed successfully.

BUG=b:338528575
TEST=spdm unittests

Change-Id: I6ced7e2bd6f2b0b12d98db3ab80eaaeecb7784c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/spdm/+/5537349
Tested-by: Howard Yang <hcyang@google.com>
Commit-Queue: Howard Yang <hcyang@google.com>
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@google.com>
3 files changed