Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function
This commit is contained in:
committed by
Andreas Steffen
parent
5242a729ca
commit
824ace105a
@@ -1026,7 +1026,7 @@ METHOD(pts_t, does_pcr_value_match, bool,
|
||||
}
|
||||
}
|
||||
DESTROY_IF(e);
|
||||
|
||||
|
||||
this->pcrs->insert_last(this->pcrs, new);
|
||||
|
||||
qsort(this->pcrs, this->pcrs->get_count(this->pcrs),
|
||||
@@ -1168,16 +1168,16 @@ METHOD(pts_t, get_quote_info, bool,
|
||||
*out_pcr_composite = chunk_clone(pcr_composite);
|
||||
DBG4(DBG_PTS, "calculated PCR Composite: %B", out_pcr_composite);
|
||||
}
|
||||
|
||||
|
||||
/* SHA1 hash of PCR Composite to construct TPM_QUOTE_INFO */
|
||||
hasher = lib->crypto->create_hasher(lib->crypto, HASH_SHA1);
|
||||
hasher->allocate_hash(hasher, pcr_composite, &hash_pcr_composite);
|
||||
hasher->destroy(hasher);
|
||||
|
||||
|
||||
writer->write_data(writer, hash_pcr_composite);
|
||||
chunk_clear(&pcr_composite);
|
||||
chunk_clear(&hash_pcr_composite);
|
||||
|
||||
|
||||
if (!this->secret.ptr)
|
||||
{
|
||||
DBG1(DBG_PTS, "Secret assessment value unavailable",
|
||||
@@ -1200,7 +1200,6 @@ METHOD(pts_t, verify_quote_signature, bool,
|
||||
private_pts_t *this, chunk_t data, chunk_t signature)
|
||||
{
|
||||
public_key_t *aik_pub_key;
|
||||
chunk_t key_encoding;
|
||||
|
||||
aik_pub_key = this->aik->get_public_key(this->aik);
|
||||
if (!aik_pub_key)
|
||||
|
||||
Reference in New Issue
Block a user