Skip to content

Clarify that DER lengths vary with INTEGER magnitude and curve size #2315

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

Merged
merged 3 commits into from
Aug 6, 2025

Conversation

emlun
Copy link
Member

@emlun emlun commented Jul 15, 2025

Closes #2314.

The new example is copied from the "ES256 Credential with very long credential ID" test vector whose signature happens to have components of different lengths.


Preview | Diff

emlun added 2 commits July 15, 2025 17:55
Example copied from test vectors "ES256 Credential with very long credential ID"
whose signature happens to have components of different lengths.
@rlin1
Copy link
Contributor

rlin1 commented Jul 15, 2025

Could you also make one value shorter than 32 bytes? Because this is the other edge-case.

@emlun
Copy link
Member Author

emlun commented Jul 15, 2025

I considered it, but figured it's good to represent the common case too. But fair enough, done in 81514c7.

@emlun emlun force-pushed the issue-2314-der-example branch from 488684b to 81514c7 Compare July 15, 2025 16:53
@nadalin
Copy link
Contributor

nadalin commented Aug 6, 2025

@rlin1 Can you please review

@MasterKale MasterKale merged commit cc8c1e1 into main Aug 6, 2025
4 checks passed
@MasterKale MasterKale deleted the issue-2314-der-example branch August 6, 2025 19:52
github-actions bot added a commit that referenced this pull request Aug 6, 2025
SHA: cc8c1e1
Reason: push, by MasterKale

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to johnperez416/webauthn that referenced this pull request Aug 6, 2025
SHA: cc8c1e1
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify DER encoding rules apply to signature format encoding in section 6.5.5
7 participants