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

Add various hybrid array sizes necessary for Kemeleon #84

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

jmwample
Copy link
Contributor

I am working on implementing an obfuscated encoding for ML-KEM encapsulation keys and ciphertexts and there are several non-standard array sizes that will make inter-operating between the custom library and ml-kem significantly easier. These would also be useful if the kemeleon encoding strategy is eventually added as a feature inside the ml-kem crate itself.

The encoding and decoding algorithms are described in section 2.4 of Obfuscated Key Exchange by Günther, Stebila, and Veitch. The output byte array sizes are described in Table 2 on page 8.

jmwample added a commit to jmwample/kemeleon that referenced this pull request Sep 1, 2024
@tarcieri tarcieri merged commit c8b1a2f into RustCrypto:master Sep 6, 2024
14 checks passed
@tarcieri
Copy link
Member

tarcieri commented Sep 6, 2024

Thanks!

tarcieri pushed a commit that referenced this pull request Sep 15, 2024
In a previous pull request #84 I added several sizes, but mistook the
direction of the binary representation of the added values. Along with
that one of the sizes was calculated incorrectly. (My apologies!)

This corrects both of those errors, successfully tested using the
downstream library. Also I checked (via script) all of the other binary
representations and and they all match the assigned values.

Co-authored-by: jmwample <[email protected]>
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