[PATCH] D113991: Support using sha256 as --build-id kind
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 17 13:23:13 PST 2021
serge-sans-paille added a comment.
In D113991#3135869 <https://reviews.llvm.org/D113991#3135869>, @joerg wrote:
> Exactly. This patch only provides a way to tick a checkbox on a stupid compliance list. SHA2 provides no security benefit here for the price of slower linking. If we want to use a more modern cryptographic hash function, the primary criterion should be performance, IMO.
I second that opinion :-) Then blake2 (see https://en.wikipedia.org/wiki/BLAKE_(hash_function)) would be a good match. The reference implementation is covered by the Apache Public License 2.0 so that would be fine license wise, and it claims to be "faster than MD5, SHA-1, SHA-2, and SHA-3, on 64-bit x86-64 and ARM architectures"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113991/new/
https://reviews.llvm.org/D113991
More information about the llvm-commits
mailing list