1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 15:23:33 +02:00
Files
src/lib
jsing 8365e4bb7a 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@
2026-06-01 13:27:24 +00:00
..
2026-03-10 16:20:57 +00:00
2026-03-10 16:20:57 +00:00