Skip to content

Commit d00fa55

Browse files
avarttaylorr
authored andcommitted
Makefile: discuss SHAttered in *_SHA{1,256} discussion
Let's mention the SHAttered attack and more generally why we use the sha1collisiondetection backend by default, and note that for SHA-256 the user should feel free to pick any of the supported backends as far as hashing security is concerned. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent fb8d7ad commit d00fa55

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,17 @@ include shared.mak
481481
#
482482
# === SHA-1 backend ===
483483
#
484+
# ==== Security ====
485+
#
486+
# Due to the SHAttered (https://shattered.io) attack vector on SHA-1
487+
# it's strongly recommended to use the sha1collisiondetection
488+
# counter-cryptanalysis library for SHA-1 hashing.
489+
#
490+
# If you know that you can trust the repository contents, or where
491+
# potential SHA-1 attacks are otherwise mitigated the other backends
492+
# listed in "SHA-1 implementations" are faster than
493+
# sha1collisiondetection.
494+
#
484495
# ==== Default SHA-1 backend ====
485496
#
486497
# If no *_SHA1 backend is picked, the first supported one listed in
@@ -525,6 +536,11 @@ include shared.mak
525536
#
526537
# === SHA-256 backend ===
527538
#
539+
# ==== Security ====
540+
#
541+
# Unlike SHA-1 the SHA-256 algorithm does not suffer from any known
542+
# vulnerabilities, so any implementation will do.
543+
#
528544
# ==== SHA-256 implementations ====
529545
#
530546
# Define OPENSSL_SHA256 to use the SHA-256 routines in OpenSSL.

0 commit comments

Comments
 (0)