Skip to content

Extend nss-rs with the Hybrid KEMs (XWING)#18

Open
beurdouche wants to merge 4 commits into
mainfrom
beurdouche-kem-hybrid
Open

Extend nss-rs with the Hybrid KEMs (XWING)#18
beurdouche wants to merge 4 commits into
mainfrom
beurdouche-kem-hybrid

Conversation

@beurdouche
Copy link
Copy Markdown
Member

WIP

@beurdouche beurdouche force-pushed the beurdouche-kem-hybrid branch from bfb600c to 48915a8 Compare February 1, 2026 10:20
@beurdouche beurdouche changed the base branch from main to beurdouche-sha3 February 1, 2026 10:20
@beurdouche beurdouche changed the base branch from beurdouche-sha3 to main February 1, 2026 10:21
@beurdouche
Copy link
Copy Markdown
Member Author

The SHA3 commit can be reviewed before the rest in #17

Copy link
Copy Markdown
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

I have a lot of questions about this code, but let's start with the big one: why is the combiner implemented in the binding wrapper, rather than in NSS proper?

Comment thread src/kem.rs
impl MlKemParameterSet {
/// Returns the PKCS#11 parameter set constant.
#[must_use]
pub const fn to_ck_param(self) -> u64 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't like the use of u32 or u64 for types that NSS defines as unsigned int or similar. I would prefer to use types generated by bindgen, even if that makes this code less pleasant to work with.

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