Repository navigation
Conversation
Test Results309 tests +3 306 ✅ +3 6s ⏱️ ±0s Results for commit fbb5f53. ± Comparison against base commit 40465e6. This pull request skips 1 and un-skips 1 tests. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
6 similar comments
|
@mperor ⏰ This daily topic is still waiting for your review. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
|
@mperor ⏰ This daily topic is still waiting for your review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What you'll learn
KEMAPI, ending up with the same shared secret on both sidesML-DSAthrough the familiarSignatureAPIWhy it matters
ML-KEM and ML-DSA are the NIST-standardized, quantum-resistant replacements for Diffie-Hellman/RSA key exchange and digital signatures; from JDK 24 they're built into the JDK with no extra library, so knowing the JCA names (
"ML-KEM-768","ML-DSA-65") is enough to start using them today.Read more
Quiz
If you call
verifier.verify(signature)with the correct public key but feed it a message that differs from the one that was signed, what does it return?Answer
It returns `false` (it does not throw). ML-DSA verification recomputes a check over the exact bytes passed to `update`; any difference from the signed message makes the signature fail to match, so `verify` simply reports `false` instead of raising an exception.Note: tests were not run locally. The build requires a JDK 25 toolchain, which Gradle's foojay auto-provisioning tries to download from
api.foojay.io; that host is blocked by this environment's network policy, and no JDK 25 is otherwise installed here. The ML-KEM/ML-DSA algorithm names and API usage are verified against JEP 496/497 and theKEM/SignatureJCA docs. Opening as a draft so CI (which runs on JDK 25) can verify.Closes #111