Skip to content

feat: add ES512 algorithm support using P-521 elliptic curve#478

Open
arsenin-kitsoft wants to merge 1 commit intoKeats:masterfrom
arsenin-kitsoft:master
Open

feat: add ES512 algorithm support using P-521 elliptic curve#478
arsenin-kitsoft wants to merge 1 commit intoKeats:masterfrom
arsenin-kitsoft:master

Conversation

@arsenin-kitsoft
Copy link

Suggested changes for !250

@arsenin-kitsoft arsenin-kitsoft changed the title feat: add ES512 algorithm support using P-521 elliptic curve WIP: feat: add ES512 algorithm support using P-521 elliptic curve Jan 12, 2026
@arsenin-kitsoft arsenin-kitsoft changed the title WIP: feat: add ES512 algorithm support using P-521 elliptic curve feat: add ES512 algorithm support using P-521 elliptic curve Jan 12, 2026
@Keats
Copy link
Owner

Keats commented Feb 16, 2026

I didn't see that PR. Can you rebase?

- Add p521 dependency to Cargo.toml (version 0.13.0 with ecdsa feature)
- Add ES512 to Algorithm enum and AlgorithmFamily mappings
- Implement ES512 signer and verifier using P521 elliptic curve
- Register Es512Signer and Es512Verifier in CryptoProvider factory
- Add ES512 to KeyAlgorithm enum for JWK support
- Custom macros for P521 due to API differences (no from_pkcs8_der, no sign_recoverable)
- Manual PKCS8 extraction for 66-byte P521 private key
- Add comprehensive ES512 tests (3 new test functions)
- Create ES512 test keys in both PEM and PKCS8 formats
- Gate ES512 tests behind use_pem feature flag
@arsenin-kitsoft
Copy link
Author

Couldn't rebase, but reapplied changes manually instead. Passes tests with green.

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

Comments