Skip to content

Add versioning field to rk - #103

Open
dehanj wants to merge 2 commits into
mainfrom
versioning_rk
Open

Add versioning field to rk#103
dehanj wants to merge 2 commits into
mainfrom
versioning_rk

Conversation

@dehanj

@dehanj dehanj commented Jul 10, 2026

Copy link
Copy Markdown
Member

Description

Add versioning field to rk and credentialId.
Update so it is included in mac checks.

  • Prevent issue with an struct cast, which would have created issues now when the id in the struct moved one byte.

Type of change

Please tick any that are relevant to this PR and remove any that aren't.

  • Bugfix (non breaking change which resolve an issue)
  • Breaking Change (a change which would cause existing functionality to not work as expected)

Submission checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my changes
  • I have tested and verified my changes on target
  • My changes are well written and CI is passing
  • I have squashed my work to relevant commits and rebased on main for linear history
  • I have added a "Co-authored-by: x" if several people contributed, either pair programming or by squashing commits from different authors.
  • I have updated the documentation where relevant (readme, dev.tillitis.se etc.)
  • QEMU is updated to reflect changes

@dehanj
dehanj requested a review from jthornblad July 10, 2026 12:30
dehanj added 2 commits July 10, 2026 14:35
Change `ctap_cbor_encode_credential_descriptor` to accept a
`CredentialId *` instead of `struct Credential *`, since the
function only accesses the credential ID. This removes unnecessary
struct casts at the call sites in credential management and
get assertion handlers.
- Move tag fields to the end of their structs so the authentication MAC
  covers the entire structure, including the new version byte.
- Update RK_HMAC_SIZE to authenticate the full resident key.
- Include the version in ctap_make_auth_tag().
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