Skip to content
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

Initial implementation of x-wing #62

Merged
merged 7 commits into from
Sep 27, 2024

Conversation

Christiaan676
Copy link
Contributor

@Christiaan676 Christiaan676 commented Sep 17, 2024

Implementation of the X-WING KEM. Following the RFC version 04.

Todo:

  • Zerioize feature support
  • Replace some of the [u8] with Array / HybridArray
  • Implement the kem = "0.3.0-pre.0" traits
  • Resolve all the TODO's

x-wing/LICENSE-APACHE Outdated Show resolved Hide resolved
@Christiaan676 Christiaan676 force-pushed the x-wing-kem branch 6 times, most recently from 9fcea4d to 9e6b32c Compare September 17, 2024 18:03
x-wing/Cargo.toml Outdated Show resolved Hide resolved
x-wing/Cargo.toml Outdated Show resolved Hide resolved
x-wing/Cargo.toml Outdated Show resolved Hide resolved
@Christiaan676 Christiaan676 force-pushed the x-wing-kem branch 2 times, most recently from 8221976 to 49855da Compare September 20, 2024 20:52
Comment on lines +65 to +69
#[derive(Clone, PartialEq)]
pub struct EncapsulationKey {
pk_m: MlKem768EncapsulationKey,
pk_x: x25519_dalek::PublicKey,
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason kem::EncapsulationKey<MlKem768Params> does not implement Eq, as far as I can tell implementing Eq should not be a problem as all underling types are u8 arrays or integers.

Copy link
Member

Choose a reason for hiding this comment

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

You can add a derive for it

@Christiaan676
Copy link
Contributor Author

@tarcieri Everything should be done now. Please give it a good review, and let me know if you think I should change anything. Version wise I wonder if we should release it as 0.4 as it follows version 4 of the RFC draft?

@tarcieri
Copy link
Member

Will review soon

x-wing/src/lib.rs Outdated Show resolved Hide resolved
x-wing/src/lib.rs Outdated Show resolved Hide resolved
@tarcieri tarcieri merged commit c57e7ad into RustCrypto:master Sep 27, 2024
33 checks passed
@Christiaan676 Christiaan676 deleted the x-wing-kem branch September 28, 2024 17:54
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.

2 participants