Skip to content

pss, oaep: remove DynDigest - #593

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
baloo:baloo/remove-dyndigest
Oct 14, 2025
Merged

tarcieri merged 1 commit into
RustCrypto:masterfrom
baloo:baloo/remove-dyndigest

Conversation

@baloo

@baloo baloo commented Oct 14, 2025

Copy link
Copy Markdown
Member

I'm not sure I see why usage of DynDigest was originally introduced. The need to make the Digest also Send is hard to use in downstream crates.
I don't believe this was necessary, this removes its use and makes the consumer specify the Digest types.

@baloo

baloo commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

cc @dignifiedquire

@baloo
baloo force-pushed the baloo/remove-dyndigest branch from 80eca79 to c69f0f5 Compare October 14, 2025 07:20
I'm not sure I see why usage of `DynDigest` was originally introduced.
The need to make the Digest also Send is hard to use in downstream
crates.
I don't believe this was necessary, this removes its use and makes the
consumer specify the Digest types.
@baloo
baloo force-pushed the baloo/remove-dyndigest branch from c69f0f5 to 36ba73e Compare October 14, 2025 07:24
@dignifiedquire

Copy link
Copy Markdown
Member

seems fine to me, I don't remember if there was a specific reason to use it

@tarcieri

Copy link
Copy Markdown
Member

I'm also fine with it, although my guess would be it was originally there to better support digests selected at runtime with less monomorphization bloat

@tarcieri
tarcieri merged commit d0405d2 into RustCrypto:master Oct 14, 2025
12 checks passed
@baloo
baloo deleted the baloo/remove-dyndigest branch October 14, 2025 17:52
takumi-earth pushed a commit to earthlings-dev/RSA that referenced this pull request Jan 27, 2026
I'm not sure I see why usage of `DynDigest` was originally introduced.
The need to make the Digest also Send is hard to use in downstream
crates.

I don't believe this was necessary, this removes its use and makes the
consumer specify the Digest types.
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.

3 participants