Reduce the number of SHA-512 C implementations from three to one.
authorjsing <jsing@openbsd.org>
Fri, 12 May 2023 10:10:55 +0000 (10:10 +0000)
committerjsing <jsing@openbsd.org>
Fri, 12 May 2023 10:10:55 +0000 (10:10 +0000)
commitd6fa391bdad5327ea8e75bf48caaf39b54f7ee7d
treec4eb76011dada383a9923ea127c5f685f14021bc
parent52bf25b24ea9b33ab2a5ee3eaa2cf90a5b03bd48
Reduce the number of SHA-512 C implementations from three to one.

We currently have three C implementations for SHA-512 - a version that is
optimised for CPUs with minimal registers (specifically i386), a regular
implementation and a semi-unrolled implementation. Testing on a ~15 year
old i386 CPU, the fastest version is actually the semi-unrolled version
(not to mention that we still currently have an i586 assembly
implementation that is used on i386 instead...).

More decent architectures do not seem to care between the regular and
semi-unrolled version, presumably since they are effectively doing the
same thing in hardware during execution.

Remove all except the semi-unrolled version.

ok tb@
lib/libcrypto/sha/sha512.c