Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #9 for 32-bit architectures #31

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

alishuja
Copy link
Contributor

The target host is a 32-bit Debian 9 on Armv7 Cortex-A7 dual-core 1 GHz using the official golang v.14 ARMv6l build. Anything over the value 26 was resulting in issue #9. Was able to compile and work normally. However, since I don't have access to a TPM1.2 device but a TPM2.0, the file /sys/kernel/security/tpm0/binary_bios_measurements does not exist for me and therefore not able to verify behavior.

The target host is a 32-bit Debian 9 on Armv7 Cortex-A7 dual-core 1 GHz using the official golang v.14 ARMv6l build. Anything over 26 was giving issue google#9. Was able to compile fine, however since I don't have access to a TPM1.2 device but a TPM2.0, the file /sys/kernel/security/tpm0/binary_bios_measurements does not exist for me.
@Kuenni
Copy link

Kuenni commented Apr 29, 2021

Will this be accepted? I could use that change as well.

@kuhlmannmarkus
Copy link

+1

Copy link
Member

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

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

Sorry this fell off our radar.

Fixes google/go-attestation#230

For posterity, this pattern is the recommended way to reference C arrays as Go slices

https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices

@ericchiang ericchiang merged commit 05baef6 into google:master Jul 2, 2021
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.

4 participants