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

Update to latest CoRIM implementation #251

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Update to latest CoRIM implementation #251

merged 3 commits into from
Aug 15, 2024

Conversation

setrofim
Copy link
Collaborator

Update to support the latest github.com/veraison/corim, which is (more)
aligned with he latest CoRIM spec draft. The latest implementation has
the following major changes:

  • UnsignedCorim's Profiles field (a slice of strings) has been replaced
    with Profile field (a single string).
  • Reference value can now only contain a single measurement, so multiple
    measurements require multiple reference values (each with its own
    environment).
  • CBOR keys for DevIdentityKeys and AttestVerifKeys have been swapped
    to align with the spec (this was a bug in the old implementation).

As the latest github.com/veraison/corim requires Go 1.22, the required
version for this code base has been bumped to that as well.

Additionally:

  • make sure CI_PIPELINE is defined for ci-go-cover
  • update copyrights

Update the year in copyrights inside files modified by prior commits
this year.

Signed-off-by: Sergei Trofimov <[email protected]>
Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Thanks for the MEGA "chore."

More to come in this area once we have settled on a new endorsement schema for PSA/CCA.

Makefile Show resolved Hide resolved
scheme/arm-cca/test_vectors.go Show resolved Hide resolved
scheme/tpm-enacttrust/test/corim/build-test-vectors.sh Outdated Show resolved Hide resolved
@setrofim setrofim force-pushed the corim-update branch 2 times, most recently from 7ffe18a to 4f2c85d Compare August 15, 2024 10:03
Update to support the latest github.com/veraison/corim, which is (more)
aligned with he latest CoRIM spec draft. The latest implementation has
the following major changes:

- UnsignedCorim's Profiles field (a slice of strings) has been replaced
  with Profile field (a single string).
- Reference value can now only contain a single measurement, so multiple
  measurements require multiple reference values (each with its own
  environment).
- CBOR keys for DevIdentityKeys and AttestVerifKeys have been swapped
  to align with the spec (this was a bug in the old implementation).

As the latest github.com/veraison/corim requires Go 1.22, the required
version for this code base has been bumped to that as well.

Signed-off-by: Sergei Trofimov <[email protected]>
Otherwise, copyright year check triggers, causing problems. This is
already set for the ci flow, but it seems was not need need for
ci-go-cover until now(?)

Signed-off-by: Sergei Trofimov <[email protected]>
@yogeshbdeshpande
Copy link
Collaborator

Thank you for your consistent efforts in aligning with the latest of CoRIM draft!

I have reviewed these changes and LGTM!

Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

LGTM!

@setrofim setrofim merged commit 17e0bbd into main Aug 15, 2024
9 checks passed
@setrofim setrofim deleted the corim-update branch August 15, 2024 15:37
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.

3 participants