Skip to content

jets: avoid reallocation in aes-cbc#1024

Merged
pkova merged 2 commits into
developfrom
jb/no-realloc
Jul 10, 2026
Merged

jets: avoid reallocation in aes-cbc#1024
pkova merged 2 commits into
developfrom
jb/no-realloc

Conversation

@joemfb

@joemfb joemfb commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

This PR uses the unsafe aes-cbc interface from urbit/urcrypt#22 avoid reallocating buffers for padding (and further reducing allocations with the slab api). It also fixes a jet mismatch in the handling of empty messages (by setting the minimum bloq=7 length of the input to 1). The appropriate test cases are in urbit/urbit#7357

@joemfb joemfb marked this pull request as ready for review July 8, 2026 16:02
@joemfb joemfb requested a review from a team as a code owner July 8, 2026 16:02
Base automatically changed from jb/close-ssl to develop July 10, 2026 15:48
@pkova pkova merged commit 9f18745 into develop Jul 10, 2026
2 checks passed
@pkova pkova deleted the jb/no-realloc branch July 10, 2026 15:51
pkova added a commit that referenced this pull request Jul 10, 2026
This PR updates the u3 realloc functions to require explicit old sizes,
making it much easier to add alternative bump/arena allocator
implementations. It builds on #1024 and includes a merge of #1025 to
accomplish (these should be merged first). It also vendors and modifies
the pdjson library used in the `+de:json` jet.
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