tpm_verify_ek: Support CrOS Core device with new standalone tools.

To support verifying TPM endorsement on ChromeOS Core (and those not running
cryptohome), we should allow specifying device type in test parameter, and use
the 'tpm-manager' standalone tool if available.

BUG=chrome-os-partner:31800,chromium:415229
TEST=Manually verified on Link, by setting is_cros_core to True and False.
CQ-DEPEND=CL:237242,CL:237243

Change-Id: I3e83517ba6430666f7076090d7356578edf20398
Reviewed-on: https://chromium-review.googlesource.com/237545
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
1 file changed