Skip to content

chore(deps): update aes requirement from =0.8.4 to =0.9.2 - #31

Open
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/cargo/aes-eq-0.9.2
Open

chore(deps): update aes requirement from =0.8.4 to =0.9.2#31
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/cargo/aes-eq-0.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 11, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on aes to permit the latest version.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 11, 2026
@dependabot
dependabot Bot requested review from oskarth and rymnc as code owners August 11, 2026 07:07
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 11, 2026
@rymnc

rymnc commented Aug 11, 2026

Copy link
Copy Markdown
Member

@copilot fix the breaking changes in the api?

Updates the requirements on [aes](https://github.com/RustCrypto/block-ciphers) to permit the latest version.
- [Commits](RustCrypto/block-ciphers@aes-v0.8.4...aes-v0.9.2)

---
updated-dependencies:
- dependency-name: aes
  dependency-version: 0.9.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/aes-eq-0.9.2 branch from d324e1c to 2bef33a Compare August 11, 2026 07:18
Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>

Copilot AI commented Aug 11, 2026

Copy link
Copy Markdown

@copilot fix the breaking changes in the api?

Fixed in commit 5bf4659. I updated the binius-mayo AES usage to the aes 0.9 API (new imports and key/block initialization), and verified with cargo test -p binius-mayo --tests.

Comment on lines 309 to 322
let mut block = [0u8; 16];
block[12..16].copy_from_slice(&(i as u32).to_be_bytes());
let mut blk = GenericArray::clone_from_slice(&block);
let mut blk = Block::<Aes128>::default();
blk.copy_from_slice(&block);
cipher.encrypt_block(&mut blk);
out[i * 16..(i + 1) * 16].copy_from_slice(blk.as_slice());
}
if tail > 0 {
let mut block = [0u8; 16];
block[12..16].copy_from_slice(&(n_full as u32).to_be_bytes());
let mut blk = GenericArray::clone_from_slice(&block);
let mut blk = Block::<Aes128>::default();
blk.copy_from_slice(&block);
cipher.encrypt_block(&mut blk);
out[n_full * 16..n_full * 16 + tail].copy_from_slice(&blk.as_slice()[..tail]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think block and blk both are required.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot fix this

Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants