mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 15:23:33 +02:00
8365e4bb7a
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@