logoalt Hacker News

wavemodetoday at 6:08 AM1 replyview on HN

I mean, you've linked to a function performing md5 hashing. That's pretty much exactly what I would expect such code to look like.

Case in point: https://github.com/postgres/postgres/blob/master/src/common/...


Replies

f311atoday at 6:12 AM

It's not idiomatic implementation in Rust, just translation from C. A few Rust macros simplify implementation and cut the code in half.