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

IdCred: Support lengths up to 23 long KIDs #326

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

chrysn
Copy link
Collaborator

@chrysn chrysn commented Nov 25, 2024

Currently, IdCred supports precisely one length for KIDs: 1.

This generalizes the code to support lengths 0..=23.

I don't know whether other places in the code need to support that too, or whether it suffices. At any rate it doesn't create storage issues: IdCred can also hold credentials by value, and they are way longer than KIDs.

This uses early returns, but they were already used in that function, and I'm not sure if the issue with early returns hasn't been solved in hax anyway.

Requires: #325

@chrysn chrysn mentioned this pull request Nov 25, 2024
@geonnave geonnave merged commit e1561d6 into openwsn-berkeley:main Nov 25, 2024
37 checks passed
@chrysn chrysn deleted the id-cred-23 branch November 25, 2024 19:14
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.

2 participants