Part 3: AES CBC mode: BlockPermutation trait, bouncycastle-modes crate, CLI - #106
Open
dghgit wants to merge 3 commits into
Open
Part 3: AES CBC mode: BlockPermutation trait, bouncycastle-modes crate, CLI#106dghgit wants to merge 3 commits into
dghgit wants to merge 3 commits into
Conversation
hubot
force-pushed
the
feature/part3-block-cipher-cbc
branch
from
September 2, 2026 06:54
70706e7 to
7c59c1d
Compare
hubot
force-pushed
the
feature/part2-aes-lowmemory
branch
from
September 2, 2026 06:54
f119c2a to
12ecfae
Compare
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.
Part 3 of 3, stacked on Part 2. Content is identical to #101 as reviewed and merged (commits
ff9fa67..70706e7, by @officialfrancismendoza).core: newBlockPermutation<KEY_LEN, BLOCK_LEN>trait (CIPH_K/CIPH^-1_Kof SP 800-38A Sec 5.1) with providedencrypt_blocks2/decrypt_blocks2; implemented byAes128/192/256.crypto/modes(bouncycastle-modes):Cbc<P, Dir, KEY_LEN, BLOCK_LEN>over anyBlockPermutation, direction encoded in the type, IV generated (never accepted) per SP 800-38A Sec 5.3, pair-path decryption.core-test-framework:TestFrameworkBlockPermutation; fix to theTestFrameworkBlockCiphersecurity-strength loop.aes128-cbc/aes192-cbc/aes256-cbcencrypt|decrypt, IV carried as the first block of the stream; 16 subprocess tests.ACVP-AES-CBCcases; Appendix D error propagation tested exhaustively.Follow-ups already prepared on
feature/aes-tweaks(to be opened once this lands):AES_CBC_128/192/256aliases, flat-array one-shots and streaming methods, and a simpler CLI reader.