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

replace pqcrypto-kyber with pqcrypto-mlkem and update dependencies #8424

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vaf-hub
Copy link
Contributor

@vaf-hub vaf-hub commented Jan 29, 2025

add required sha3/keccak dependency to turn ml-kem into kyber we turn ml-kem into kyber for backwards compatibility with TutaCrypt

#tutadb1950

add required sha3/keccak dependency to turn ml-kem into kyber
we turn ml-kem into kyber for backwards compatibility with TutaCrypt
#tutadb1950
fn from(value: PQCryptoKyber1024PublicKey) -> Self {
/// This is a redundant step to bind the derived shared secret to the ciphertext.
/// It was part of the original round 3 Kyber submission specification and the reference implementation.
/// It was removed from the NIST ML-KEM draft for efficiency because the re-encryption step in decapsulation prevents any attacks.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a word is missing in this sentence :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried making it clearer. not sure which word is missing. is it ok now?

unbound_shared_secret.as_bytes(),
hashed_ciphertext.as_slice(),
]
.concat();
Copy link
Contributor

Choose a reason for hiding this comment

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

we could avoid concating them if we provide both to the hasher one after another. Not sure if it's worth it though (we can make a macro :D)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pushed a commit to address this. what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better :)

@vaf-hub vaf-hub force-pushed the crypto/update-pqcrypto-library-1950 branch from 53547fb to 4902b4f Compare January 30, 2025 16:47
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