Repository navigation
Add URL encoding, Punycode, AES modes, keyed BLAKE2, HOTP and more hashes - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuCbv3a5X5mMTT8iAKym8
…shes - `convert` gains percent (URL) encoding in three flavours, and a new `punycode` op covers labels and whole domains. - New `aes` op: ECB, CBC, CTR, CFB, CFB8, OFB, CCM, PCBC, IGE and XTS with a padding choice. Encrypting without an IV picks a random one. - New `blake2mac` (keyed BLAKE2b/s) and `hotp` ops. - `hash` adds MD2, Keccak-224/384, BLAKE2b-160/384, BLAKE2s-128/160/224 and RIPEMD-128/256/320, and takes `shakeBits` for SHAKE at any length. Every addition has a known-answer test from its spec (NIST SP 800-38A, RFC 3610, IEEE 1619, RFC 4226, RFC 3492, RFC 1319, BLAKE2 KAT files) on the VM and in the compiled JavaScript. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuCbv3a5X5mMTT8iAKym8
…anon/toolbox into claude/project-thread-3fa77a
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.
Requested by Dipu · project thread
Engine side of the next three Toolbox tool sets. The site pages follow in a bitanon.github.io PR.
convertpercent,percent-component,percent-form(URL encoding, both directions)punycode(new)xn--)aes(new)blake2mac(new)hotp(new)hashshakeBitsfor SHAKE at any lengthKnown-answer tests
65 VM tests (was 41) and 31 compiled-JavaScript checks (was 18), all passing. New vectors, with their sources cited in the tests:
igetest.c(IGE). I also checked this one independently with pyca/cryptography.idnacodec (Punycode)urllib.parse.quote/quote_plusand Dart'sUri.encodeComponent(percent encoding)hashlib.PCBC has no published vector. It reuses cipherlib's independent reference (pyca's AES block with PCBC chaining written out by hand).
Merge note: the branch carries a no-change merge of its previous, already-merged head. "Squash and merge" gives one clean commit.
Generated by Claude Code