Skip to content

Conversation

@jedisct1
Copy link
Contributor

@jedisct1 jedisct1 commented Nov 4, 2025

It was not obvious that the KT128/KT256 customization string can be used to set a key, or what it was designed to be used for at all.

Also properly use key_length and not digest_length for the BLAKE3 key length (no practical changes as they are both 32, but that was confusing).

Remove unneeded simd_degree copies by the way, and that doesn't need to be in the public interface.

It was not obvious that the KT128/KT256 customization string can be
used to set a key, or what it was designed to be used for at all.

Also properly use key_length and not digest_length for the BLAKE3
key length (no practical changes as they are both 32, but that was
confusing).

Remove unneeded simd_degree copies by the way, and that doesn't need
to be in the public interface.
@jedisct1 jedisct1 merged commit 4b593a6 into ziglang:master Nov 7, 2025
9 checks passed
@jedisct1 jedisct1 deleted the b2k12nits branch November 7, 2025 07:20
andrewrk added a commit that referenced this pull request Nov 22, 2025
I would like a chance to review this before it lands, please. Feel free
to submit the work again without changes and I will make review
comments.

In the meantime, these reverts avoid intermittent CI failures, and
remove bad patterns from occurring in the standard library that other
users might copy.

Revert "std.crypto: improve KT documentation, use key_length for B3 key length (#25807)"

This reverts commit 4b593a6.

Revert "crypto - threaded K12: separate context computation from thread spawning (#25793)"

This reverts commit ee4df4a.

Revert "crypto.kt128: when using incremental hashing, use SIMD when possible (#25783)"

This reverts commit bf90825.

Revert "Add std.crypto.hash.sha3.{KT128,KT256} - RFC 9861. (#25593)"

This reverts commit 95c76b1.
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.

1 participant