Skip to content

Commit

Permalink
X-Wing support (#437)
Browse files Browse the repository at this point in the history
* xwing: Add X-Wing draft06 implementation

* xwing: Add tests and documentation

* xwing: Add test between decap key and seed

* xwing: Better explain when the underlying ML-KEM-768 key checks are performed

* xwing: nit

* Update CHANGELOG
  • Loading branch information
brycx authored Mar 1, 2025
1 parent a002691 commit d138f8b
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

**Changelog:**
- Add support for post-quantum ML-KEM from FIPS-203 ([#431](https://github.com/orion-rs/orion/pull/431)).
- Add support for hybrid KEM X-Wing (draft06 version) ([#434](https://github.com/orion-rs/orion/issues/434)).
- Implement `core::error::Error` instead of the `std`-version ([#440](https://github.com/orion-rs/orion/pull/440)).
- Bump MSRV to `1.81.0`.
- Update CI dependencies.


### 0.17.8

**Date:** January 27, 2025.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Currently supports:
* **Key exchange**: X25519.
* **MAC**: HMAC, Poly1305.
* **Stream ciphers**: (X)ChaCha20.
* **KEM**: ML-KEM, DHKEM(X25519, HKDF-SHA256).
* **KEM**: X-Wing, ML-KEM, DHKEM(X25519, HKDF-SHA256).

Experimental support (with `experimental` feature enabled):
* **Committing AEAD**: (X)ChaCha20-Poly1305-BLAKE2b.
Expand Down
3 changes: 3 additions & 0 deletions src/hazardous/kem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ mod ml_kem;
pub use ml_kem::mlkem1024;
pub use ml_kem::mlkem512;
pub use ml_kem::mlkem768;

/// X-Wing hybrid KEM as specified in [draft-connolly-cfrg-xwing-kem-06](https://www.ietf.org/archive/id/draft-connolly-cfrg-xwing-kem-06.html).
pub mod xwing;
Loading

0 comments on commit d138f8b

Please sign in to comment.