Skip to content

Fix ES256K ID in class constant and test#141

Merged
Spomky merged 1 commit into
4.5.xfrom
fix/es256k-class-id
May 3, 2026
Merged

Fix ES256K ID in class constant and test#141
Spomky merged 1 commit into
4.5.xfrom
fix/es256k-class-id

Conversation

@Spomky
Copy link
Copy Markdown
Contributor

@Spomky Spomky commented May 3, 2026

-47 is ES256K, and -46 is HSS-LMS
https://www.iana.org/assignments/cose/cose.xhtml

The library uses -47 in src/Algorithms.php (already fixed in #135), but the ES256K class constant and the corresponding test still used -46. This PR aligns them.

Reapplies the change originally proposed in #140 (closed).

Target branch: 4.5.x

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

-47 is ES256K, and -46 is HSS-LMS
https://www.iana.org/assignments/cose/cose.xhtml

The library uses -47 in other places (src/Algorithms.php already
updated in #135).

Co-Authored-By: Florent Morselli <florent.morselli@spomky-labs.com>
@Spomky Spomky merged commit 5b38660 into 4.5.x May 3, 2026
2 checks passed
@Spomky Spomky deleted the fix/es256k-class-id branch May 3, 2026 09:49
Spomky added a commit that referenced this pull request May 3, 2026
* 4.5.x:
  fix: align ES256K ID with IANA registry (-47) (#141)
@Spomky Spomky added this to the 4.5.2 milestone May 3, 2026
@Spomky Spomky self-assigned this May 3, 2026
@Spomky Spomky added the bug Something isn't working label May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants