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

Inconsistent user_data length #52

Open
rillian opened this issue Aug 30, 2023 · 1 comment
Open

Inconsistent user_data length #52

rillian opened this issue Aug 30, 2023 · 1 comment

Comments

@rillian
Copy link

rillian commented Aug 30, 2023

docs/attestation_process.md is inconsistent about the size of the optional private_key, user_data, and nonce fields. The Attribution Document Specification gives a range of 0..1024 bytes for each field, in agreement with this doc page. But later on, the "Check Content" section of Syntactic Validation gives 1..1024 for public_key and 0..512 for user_data and nonce.

Can we clarify with values are correct?

@rillian
Copy link
Author

rillian commented Aug 31, 2023

As far as enforcement goes, there doesn't seem to be a check on the individual field lengths, but this module, the python version, and the /dev/nsm kernel driver all impose an overall 4k limit on requests and 12k on responses. This seems consistent with the larger sizes for the optional fields in an attestation request.

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

No branches or pull requests

1 participant