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 ctap-types and fido-authenticator #508

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Update ctap-types and fido-authenticator #508

merged 1 commit into from
Jun 24, 2024

Conversation

robin-nitrokey
Copy link
Member

@robin-nitrokey robin-nitrokey commented Jun 7, 2024

This patch updates ctap-types so that it uses the COSE implementation in the cosey crate instead of shipping its own identical cose module. This reduces code duplication and has a small effect on the binary size. We also need to update fido-authenticator to use cosey instead of ctap_types::cosey, and we need to update cose so that it includes a fix that we previously applied to the cose module in ctap-types.

We use this occasion to also pull in other optimizations of ctap-types and fido-authenticator.

See also:

@nitrokey-ci
Copy link
Collaborator

nitrokey-ci commented Jun 7, 2024

metric value change
binary-size-nkpk 727,106 -10,440 (-1.42%)
Insignifcant changes
metric value change
binary-size-nk3am 1,399,105 -11,205 (-0.79%)
binary-size-nk3am-test 2,004,059 -11,340 (-0.56%)
binary-size-nk3xn 502,400 -3,824 (-0.76%)
binary-size-nk3xn-test 542,192 -3,576 (-0.66%)

@robin-nitrokey robin-nitrokey changed the title De-duplicate COSE implementation Update ctap-types and fido-authenticator Jun 18, 2024
@robin-nitrokey robin-nitrokey force-pushed the cosey branch 4 times, most recently from 542f8ac to 28e4b28 Compare June 21, 2024 08:52
This patch updates ctap-types so that it uses the COSE implementation in
the cosey crate instead of shipping its own identical cose module.  This
reduces code duplication and has a small effect on the binary size.  We
also need to update fido-authenticator to use cosey instead of
ctap_types::cosey, and we need to update cose so that it includes a fix
that we previously applied to the cose module in ctap-types.

Additionally, many other optimizations of ctap-types and
fido-authenticator are pulled in with this patch.
@robin-nitrokey robin-nitrokey marked this pull request as ready for review June 21, 2024 13:17
@robin-nitrokey robin-nitrokey merged commit 3ea6845 into main Jun 24, 2024
9 checks passed
@robin-nitrokey robin-nitrokey deleted the cosey branch June 24, 2024 13:49
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