spdm: Improve Crypto trait dependency

Make 2 changes to the Crypto trait:
1. The not-yet-implemented FFI Crypto trait and the test Crypto trait
   use unit type as the crypto types for convenience. As the result,
   some methods are actually using wrong parameter types compared from
   the Crypto trait definition, but isn't found out because those types
   are all unit types. Change those unit types to different unit structs
   that have the same convenience, but avoids messing up with different
   param types.
2. Make `random_key_pair` specify different lifetime params for the
   private key and public key, as they might have different lifetimes at
   the call site.

BUG=b:338528575
TEST=spdm unittests

Change-Id: I3beb6b4e8aa14cf22bcba126a3f85ea69ed347d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/spdm/+/5526571
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@google.com>
Tested-by: Howard Yang <hcyang@google.com>
Commit-Queue: ChromeOS Auto Retry <chromeos-auto-retry@chromeos-bot.iam.gserviceaccount.com>
6 files changed