CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/06/01 07:27:24
Modified files:
lib/libc/hash : sha1.c
lib/libc/hidden: sha1.h
Log 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@