CVS: cvs.openbsd.org: src
Joel Sing <[email protected]>
| Newsgroups | gmane.os.openbsd.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVSROOT: /cvs Module name: src Changes by: [email protected] 2026/07/15 07:39:16 Modified files: lib/libc/hash : Makefile.inc lib/libc/hidden: sha2.h distrib/special/libstubs: Makefile Added files: lib/libc/hash : sha256.c sha512.c Removed files: lib/libc/hash : sha2.c Log message: Replace SHA-256 and SHA-512 implementations in libc. Replace the existing SHA-256 and SHA-512 implementations in libc with versions that leverage some of the recent code in libcrypto. The existing API is retained, along with reuse of the existing SHA2_CTX definitions. These versions use static inline functions instead of macros and spell out the full variable rotations to follow the specification, rather than trying to outsmart the compiler. This also gives us a basis to provide per-architecture accelerated implementations, based on those in libcrypto. ok naddy@ tb@