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

Enable different key sizes and curves for EK and AK #846

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

THS-on
Copy link
Member

@THS-on THS-on commented Oct 1, 2024

This implements a selection of the different key sizes for RSA and curves for ECC for EK and AK using the backported changes in rust-tss-esapi.

Further this then also enables us to use EK certs for non default key types.

Note this is currently blocked until parallaxsecond/rust-tss-esapi#546 gets merged and we have a new release.

@THS-on
Copy link
Member Author

THS-on commented Oct 1, 2024

Note that this now outputs in the quote rsa2048 instead of rsa, so we would probably need to update also something on the server side.

Edit: decided to make the string encoding for RSA 2024 just rsa

@THS-on THS-on force-pushed the ecc-ek-cert branch 4 times, most recently from cde261e to fdbdb4a Compare October 3, 2024 09:25
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 60.71429% with 44 lines in your changes missing coverage. Please review.

Project coverage is 59.37%. Comparing base (2f7b3ad) to head (936cce0).
Report is 58 commits behind head on master.

Files with missing lines Patch % Lines
keylime/src/algorithms.rs 48.07% 27 Missing ⚠️
keylime/src/tpm.rs 72.41% 16 Missing ⚠️
keylime-agent/src/main.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
Flag Coverage Δ
e2e-testsuite 59.37% <60.71%> (+1.78%) ⬆️
upstream-unit-tests 59.37% <60.71%> (+8.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
keylime-agent/src/agent_handler.rs 55.55% <ø> (ø)
keylime-agent/src/common.rs 67.94% <ø> (ø)
keylime-agent/src/main.rs 27.31% <50.00%> (+1.29%) ⬆️
keylime/src/tpm.rs 71.11% <72.41%> (+4.92%) ⬆️
keylime/src/algorithms.rs 63.50% <48.07%> (-9.03%) ⬇️

... and 7 files with indirect coverage changes

@THS-on
Copy link
Member Author

THS-on commented Oct 17, 2024

This is now mostly blocked on a new stable release of the tss-esapi create.

There is also the issue that the parsing of the EK TPM structure goes somewhere wrong, as the verifier says that the EK public key in the TSS structure and the one in the EK certificate don't match. I'll investigate where this goes wrong.

@THS-on
Copy link
Member Author

THS-on commented Oct 21, 2024

This PR is also blocked on parallaxsecond/rust-tss-esapi#552 being backported, otherwise the EK verification will always fail.

@THS-on
Copy link
Member Author

THS-on commented Nov 12, 2024

@ansasaki this is now fully working. We still need to wait for a new release of tss-esapi bindings to actually use it.

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