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/tpm-pub-area-parsing #239

Merged
merged 6 commits into from
Aug 5, 2022
Merged

fix/tpm-pub-area-parsing #239

merged 6 commits into from
Aug 5, 2022

Conversation

MasterKale
Copy link
Owner

This PR updates how a TPM attestation statement's public area gets parsed. I hadn't actually seen ECC responses till now, but with one in hand I was able to enhance this library's support for them.

This should fix the following errors reported in #238:

Error: PubArea unique is not same as public key x and y (TPM|ECC)

@simplewebauthn/server was also incorrectly comparing the TPM public area's ECC curve ID to the COSE public key crv parameter; that issue is fixed here as well.

Copy link

@aseigler aseigler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MasterKale MasterKale merged commit 0ec1d61 into master Aug 5, 2022
@MasterKale MasterKale deleted the fix/tpm-pub-area-parsing branch August 5, 2022 21:35
@MasterKale MasterKale added this to the 5.4.1 milestone Aug 5, 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.

2 participants