attestation: Fix mis-merge of 917324d9d0
917324d9d0 was merged out of order, leading to the restoration
of this check, which leads to failure in verify_endorsement. Fix
this up by removing the block.
BUG=b:110177906
TEST=Built and Deployed, run tpm-manager verify_endorsement
Change-Id: I966d0ef87908b19df28c51a0ff5dfd84e7e9a988
diff --git a/attestation/common/tpm_utility_v2.cc b/attestation/common/tpm_utility_v2.cc
index 74f8df4..7131ff6 100644
--- a/attestation/common/tpm_utility_v2.cc
+++ b/attestation/common/tpm_utility_v2.cc
@@ -484,11 +484,6 @@
bool TpmUtilityV2::GetEndorsementPublicKey(KeyType key_type,
std::string* public_key) {
- if (key_type == KEY_TYPE_RSA) {
- return trunks_utility_->GetPublicRSAEndorsementKeyModulus(public_key) ==
- TPM_RC_SUCCESS;
- }
-
TPM_HANDLE key_handle;
if (!GetEndorsementKey(key_type, &key_handle)) {
LOG(ERROR) << __func__ << ": EK not available.";