Fraunhofer-SIT / charra

Proof-of-concept implementation of the "Challenge/Response Remote Attestation" interaction model of the IETF RATS Reference Interaction Models for Remote Attestation Procedures using TPM 2.0.
BSD 3-Clause "New" or "Revised" License
27 stars 20 forks source link

Size of "attestation_data" field is incorrect. #46

Closed eckelmeckel closed 3 years ago

eckelmeckel commented 3 years ago

In the struct msg_attestation_request_dto (file src/core/charra_dto.h) the size of the field attestation_data should be sizeof(TPM2B_ATTEST) rather than sizeof(TPMS_ATTEST) as assigned by attester.c on line 320 (attest_buf is of type TPM2B_ATTEST).