Repository navigation
Fix ML-KEM platform dispatch and sync AGENTS.md with the code - #31
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuCbukmnH9zJJPoxX3tGo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuCbukmnH9zJJPoxX3tGo
Codecov Report✅ All modified and coverable lines are covered by tests. |
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.
Changes
Select ML-KEM 32-bit arithmetic via
dart.library.js_interoplib/src/algorithms/mlkem/arith.dartchose the 32-bit twin using only the deprecateddart.library.jscondition. It now uses the same two-condition form as hashlib's dispatchers:Behavior note:
dart.library.js_interopis also true on dart2wasm, so wasm builds now use the 32-bit arithmetic. Before this change they used the 64-bit version. The output is identical: the FIPS 203 KATs intest/mlkem_test.dartpass on wasm. ML-KEM may be somewhat slower on wasm, but I haven't measured it.Update
AGENTS.mdto match the codecore/{blowfish,twofish,kem}.dart,stream_extensions.dart,blowfish_modes/,twofish_modes/, andmlkem/with its_32bit/_64bitarithmetic files. Also fixed the example count and listed all three table generators.dart test -P wasmand thestable-onlytag, and a note to run node tests when touching the ML-KEM arithmetic files....ModeCipherclass, and...CipherCoreexists only in GCM and CCM. The rule now covers all three block ciphers.Verification
dart format --set-exit-if-changed .makes no changesdart analyze --fatal-infosreports no issuesdart test -p vm: all 1810 tests passdart test -p node test/mlkem_test.dart test/compare_pqc_test.dartpassesdart test -P wasm test/mlkem_test.dartpassesNo CHANGELOG entry: the repo has no unreleased section, so the version heading is left to the maintainer.
Generated by Claude Code