trunks: Reland "cache supported SRK/salting key type"

This is a reland of If1f767265a6cda581b25997619d52ecc7e6036bc
Check diff between patchset1 and the latest patchset to see the
changes.

Original change's description:
> trunks: cache supported SRK/salting key type
>
> Adds SRK/salting key type caching and avoids repeating requests to
> TPM.
>
> BUG=chromium:910495
> TEST=unit tests for trunks and all other pkgs that depend on
>      libtrunks_test;
>      manually test on a soraka
>
> Change-Id: If1f767265a6cda581b25997619d52ecc7e6036bc
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2077499
> Tested-by: Wei-Cheng Xiao <[email protected]>
> Reviewed-by: Maksim Ivanov <[email protected]>
> Reviewed-by: Louis Collard <[email protected]>
> Commit-Queue: Wei-Cheng Xiao <[email protected]>

BUG=chromium:910495
TEST=unittests;
     manually tested on a nami

Change-Id: I7a852e2437db14ee1b7fdc665f321648a504c449
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2123702
Tested-by: Wei-Cheng Xiao <[email protected]>
Commit-Queue: Wei-Cheng Xiao <[email protected]>
Reviewed-by: Maksim Ivanov <[email protected]>
Reviewed-by: Andrey Pronin <[email protected]>
diff --git a/trunks/mock_tpm_cache.h b/trunks/mock_tpm_cache.h
index adc987f..50ff8df 100644
--- a/trunks/mock_tpm_cache.h
+++ b/trunks/mock_tpm_cache.h
@@ -20,6 +20,7 @@
 
   MOCK_METHOD(
       TPM_RC, GetSaltingKeyPublicArea, (TPMT_PUBLIC* public_area), (override));
+  MOCK_METHOD(TPM_ALG_ID, GetBestSupportedKeyType, (), (override));
 
  private:
   DISALLOW_COPY_AND_ASSIGN(MockTpmCache);