Skip to content

chacha20: adopt the new Generator API from rand_core - #491

Merged
newpavlov merged 1 commit into
RustCrypto:masterfrom
baloo:baloo/push-sxqszypxlxnt
Dec 23, 2025
Merged

chacha20: adopt the new Generator API from rand_core#491
newpavlov merged 1 commit into
RustCrypto:masterfrom
baloo:baloo/push-sxqszypxlxnt

Conversation

@baloo

@baloobaloo commented Dec 9, 2025

Copy link
Copy Markdown
Member

The new API force the output to be a straight array, but there is a
custom drop implementation where we can put the Zeroize of the output.

This bumps the rand_core dependency to 0.10.0-rc-3

@baloo

baloo commented Dec 9, 2025

Copy link
Copy Markdown
MemberAuthor

upstream PR that introduces the generator API: rust-random/rand_core#26

I've tried to adjust the upstream API to see if I could bring back the support for Zeroize, but all I ended up with was essentially a straight revert of the API.

@dhardydhardy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment threadCargo.toml Outdated
@baloo
baloo marked this pull request as draft December 9, 2025 19:45
@baloo
balooforce-pushed the baloo/push-sxqszypxlxnt branch from f57179d to 01043e2CompareDecember 9, 2025 19:48
@baloo
baloo marked this pull request as ready for review December 11, 2025 03:24
@baloo
balooforce-pushed the baloo/push-sxqszypxlxnt branch 2 times, most recently from 8dd5dfd to 078bf89CompareDecember 11, 2025 03:26
@baloo
balooforce-pushed the baloo/push-sxqszypxlxnt branch from 078bf89 to 89a1551CompareDecember 17, 2025 19:01
@dhardy

dhardy commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

The new API force the output to be a straight array, but there is a
custom drop implementation where we can put the Zeroize of the output.
This bumps the `rand_core` dependency to `0.10.0-rc-3`
@newpavlov
newpavlov merged commit b1ce66e into RustCrypto:masterDec 23, 2025
55 checks passed
@baloo
baloo deleted the baloo/push-sxqszypxlxnt branch December 23, 2025 07:16
Sign up for freeto 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.

3 participants

@baloo@dhardy@newpavlov