Author :
jsing
Date :
2026-06-01 13:27:24
Hash :8365e4bb Message :Replace the existing SHA-1 implementation in libc.
This leverages some of the recent code in libcrypto while retaining the
existing API and reusing SHA1_CTX definitions. The implementation uses
static inline functions instead of macros and spells out the full variable
rotations to follow the specification, rather than trying to outsmart the
compiler. A performance gain is seen across most architectures.
This also gives us a basis to provide per-architecture accelerated assembly
implementations, based on those in libcrypto.
With input from naddy@
ok naddy@ tb@