You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loved the writeup, but I felt like it was missing a comparison to existing alternatives - mainly, std::hash::Hash, and #[derive(Hash)]. I thought I'd suggest adding it!
Mainly, I was at first worried that maybe std::hash::Hash is vulnerable to moving around bytes like the naive implementation, found that it wasn't, but that (surprisingly to me) it is platform-dependent - impl Hash for [u8] encodes length as a usize, and thus so does Vec and String. I think that's a great selling point for udigest.
The text was updated successfully, but these errors were encountered:
Hi!
I came across this library from https://www.dfns.co/article/unambiguous-hashing.
Loved the writeup, but I felt like it was missing a comparison to existing alternatives - mainly,
std::hash::Hash
, and#[derive(Hash)]
. I thought I'd suggest adding it!Mainly, I was at first worried that maybe
std::hash::Hash
is vulnerable to moving around bytes like the naive implementation, found that it wasn't, but that (surprisingly to me) it is platform-dependent -impl Hash for [u8]
encodes length as ausize
, and thus so doesVec
andString
. I think that's a great selling point forudigest
.The text was updated successfully, but these errors were encountered: