Skip to content

Conversation

@ansasaki
Copy link
Contributor

Add serialization and deserialization functions for the data in quotes
to avoid endianness issues when the arch is big-endian.

The added serialization and deserialization functions will convert the
data endianness as necessary.

Note: the official marshalling and unmarshalling functions cannot be
used directly because the tpm2-tools uses a custom format.

Fixes: #407

Signed-off-by: Anderson Toshiyuki Sasaki ansasaki@redhat.com

Add serialization and deserialization functions for the data in quotes
to avoid endianness issues when the arch is big-endian.

The added serialization and deserialization functions will convert the
data endianness as necessary.

Note: the official marshalling and unmarshalling functions cannot be
used directly because the tpm2-tools uses a custom format.

Fixes: keylime#407

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Copy link
Contributor

@ueno ueno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@keylime-bot keylime-bot assigned lukehinds and ashcrow and unassigned ansasaki Jun 24, 2022
@ansasaki ansasaki merged commit 7f98151 into keylime:master Jun 24, 2022
@ansasaki ansasaki deleted the endianness branch June 24, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TPM quote decoding fails on s390x arch

4 participants