by dev_dull · 8y ago · 0 comments
> to support SHA-256, we would simply use the system's crypto libraries ... I think this is probably the single strongest argument for sha256. "It's just there".
Sounds reasonable and well... boring. Just the kind of technical decisions I like
edit: I found the email where they compared 256-bit hash functions [1]. It seems Apple Common Crypto, gcrypt and NSS don't implement SHA-512. A new twist to the performance story is that OpenSSL's SHA-256 is faster than SHA-512/256 in the AMD Ryzen tests, possibly due to the recent introduction of hardware support.
[1]: https://public-inbox.org/git/20180609224913.GC38834@genre.cr...
Only build something yourself if it serves as a key differentiator or has the potential to do so. Otherwise, use off-the-shelf tools.
Checks out. :)