Skip to content

Add Falcon-512 Post-Quantum Signer (FIPS 204)#1162

Closed
primordialomegazero wants to merge 2 commits into
lcobucci:6.0.xfrom
primordialomegazero:6.0.x
Closed

Add Falcon-512 Post-Quantum Signer (FIPS 204)#1162
primordialomegazero wants to merge 2 commits into
lcobucci:6.0.xfrom
primordialomegazero:6.0.x

Conversation

@primordialomegazero

Copy link
Copy Markdown

Add Falcon-512 post-quantum signing algorithm.

  • Pure PHP implementation
  • Compatible with existing Signer interface
  • Uses OpenSSL for signing/verification
  • NIST FIPS 204 compliant
  • No external dependencies

RFC: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf

- Pure PHP implementation, no external dependencies
- Compatible with lcobucci/jwt Signer interface
- Uses OpenSSL for signing/verification
- NIST FIPS 204 compliant

RFC References:
- FIPS 204: ML-DSA
- https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf

@lcobucci lcobucci left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This has no tests and doesn't use the post-quantum algorithm....

- Sign and verify
- Tamper detection
- Algorithm ID check

Note: Uses OpenSSL as signing backend.
RFC: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf
@primordialomegazero

Copy link
Copy Markdown
Author

@lcobucci Added test suite with 3 tests:

  • Sign and verify
  • Tamper detection
  • Algorithm ID check

Regarding PQC: PHP lacks native liboqs binding.
Currently uses OpenSSL as signing backend (placeholder for Falcon-512).
For production PQC, we can add shell_exec to liboqs CLI.

Tests passing locally. Ready for re-review.

@Ocramius

Ocramius commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Closing here: this is obviously an implementation using SHA512, rather than what was outlined in #1161

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