-
Notifications
You must be signed in to change notification settings - Fork 542
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
base: master
Are you sure you want to change the base?
Conversation
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. |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
…kem to kyber hack
…em to kyber ciphertext binding
53547fb
to
4902b4f
Compare
add required sha3/keccak dependency to turn ml-kem into kyber we turn ml-kem into kyber for backwards compatibility with TutaCrypt
#tutadb1950