Skip to content

Stop depending on golang.org/x/crypto for sha3#2209

Merged
Hayden-IO merged 1 commit intosigstore:mainfrom
mtrmac:sha3
Nov 12, 2025
Merged

Stop depending on golang.org/x/crypto for sha3#2209
Hayden-IO merged 1 commit intosigstore:mainfrom
mtrmac:sha3

Conversation

@mtrmac
Copy link
Contributor

@mtrmac mtrmac commented Nov 12, 2025

Summary

As of Go 1.24, crypto/sha3 exists in the standard library, so we can depend on it directly to register an implementation.

And golang.org/x/crypto 0.44 replaces its implementation with one that forwards into crypto/sha3 and does not register its own - so the standard-library implementation will be used either way.

Nothing in this repository requires sha3 to be registered, so don’t, and drop the dependency on that subpackage.

Release Note

NONE

Documentation

NONE

@mtrmac mtrmac requested a review from a team as a code owner November 12, 2025 19:25
@Hayden-IO
Copy link
Contributor

I don't see any usage of sha3 in the code base. Can we remove this instead?

Nothing in this module refers to sha3 hashes, so there
seems to be no reason to trigger registering an implementation.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac
Copy link
Contributor Author

mtrmac commented Nov 12, 2025

Sure, done.

@Hayden-IO Hayden-IO merged commit 4507d1c into sigstore:main Nov 12, 2025
15 checks passed
@mtrmac mtrmac deleted the sha3 branch November 12, 2025 19:38
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.

2 participants