Skip to content

fix: update aes128 bad-key test for PKCS#7 padding validation#22190

Merged
spypsy merged 1 commit into
merge-train/spartanfrom
claudebox/fix-aes128-ci-spartan
Apr 1, 2026
Merged

fix: update aes128 bad-key test for PKCS#7 padding validation#22190
spypsy merged 1 commit into
merge-train/spartanfrom
claudebox/fix-aes128-ci-spartan

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

PR #22179 added PKCS#7 padding validation to decryptBufferCBC, which causes the AES oracle to return None (instead of Some(garbage)) when decrypting with the wrong key. This broke the aes_encrypt_then_decrypt_with_bad_sym_key_is_caught test which expected Some.

Updated the test to assert None is returned, updated the doc comment on try_aes128_decrypt, and removed unused imports.

Details

ClaudeBox log: https://claudebox.work/s/75f04c49a604e884?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 31, 2026
@spypsy spypsy marked this pull request as ready for review April 1, 2026 13:52
@spypsy spypsy requested a review from nventuro as a code owner April 1, 2026 13:52
@spypsy spypsy enabled auto-merge (squash) April 1, 2026 13:53
@spypsy spypsy merged commit 66c4121 into merge-train/spartan Apr 1, 2026
36 of 44 checks passed
@spypsy spypsy deleted the claudebox/fix-aes128-ci-spartan branch April 1, 2026 13:53
github-merge-queue Bot pushed a commit that referenced this pull request Apr 1, 2026
BEGIN_COMMIT_OVERRIDE
chore: (A-771) remove dead code, verify keypair (#22167)
fix(aes128): validate PKCS#7 padding in decryptBufferCBC (#22179)
chore: (A-815) fix l1 tx utils fallback id logic (#22187)
fix(archiver): always advance L1-to-L2 messages syncpoint to current L1
block (#22154)
chore: (A-832) fix defaultFetch double consuming response on JSON parse
failure (#22194)
fix: indefinite retry for prover node and agent broker communication
(#22202)
fix: remove unused createDispatchFn with no method allowlist (#22219)
chore: fix wallet setup to use NO_FROM instead of ZERO address (#22222)
fix: update aes128 bad-key test for PKCS#7 padding validation (#22190)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants