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

fix/mds-metadata-more-alg-support #241

Merged
merged 6 commits into from
Aug 8, 2022

Conversation

MasterKale
Copy link
Owner

@MasterKale MasterKale commented Aug 7, 2022

This PR adds additional mappings between FIDO Alliance authentication algorithms mappings to COSE values. The following algorithms are now supported when they appear in FIDO MDS statements:

  • rsa_emsa_pkcs1_sha256_raw
  • rsa_emsa_pkcs1_sha256_der

COSE info for the following algorithms have also been updated:

  • secp256k1_ecdsa_sha256_raw
  • secp256k1_ecdsa_sha256_der

And better debugging output is returned from errors like this to help with troubleshooting:

Error: Public key algorithm {"kty":3,"alg":-257} did not match any metadata algorithms [{"kty":3,"alg":-999}] (TPM)

This PR should fix the second issue in #238.

@MasterKale MasterKale marked this pull request as ready for review August 8, 2022 23:13
@MasterKale MasterKale merged commit 2867f08 into master Aug 8, 2022
@MasterKale MasterKale deleted the fix/mds-metadata-more-alg-support branch August 8, 2022 23:15
MasterKale added a commit that referenced this pull request Aug 8, 2022
@MasterKale MasterKale added the package:server @simplewebauthn/server label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:server @simplewebauthn/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant