BLAKE3 icon indicating copy to clipboard operation
BLAKE3 copied to clipboard

Add `ConstantTimeEq` support for `Hash`

Open AaronFeickert opened this issue 6 months ago • 11 comments

This PR improves the handling of constant-time equality for hashes.

It adds an optional subtle feature that implements ConstantTimeEq for Hash. This trait uses subtle functionality under the hood for the trait implementation.

This also opens the door for other useful subtle traits elsewhere in the future.

AaronFeickert avatar Aug 21 '24 16:08 AaronFeickert