CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2024/11/08 08:09:48
Modified files: lib/libcrypto/arch/amd64: Makefile.inc Added files: lib/libcrypto/sha: sha256_amd64.c sha256_amd64_generic.S Log message: Provide a replacement assembly implementation for SHA-256 on amd64. Replace the perlasm generated SHA-256 assembly implementation with one that is actually readable. Call the assembly implementation from a C wrapper that can, in the future, dispatch to alternate implementations. Performance is similar (or even better) on modern CPUs, while somewhat slower on older CPUs (this is in part due to the wrapper, the impact of which is more noticable with small block sizes). Thanks to gkoehler@ and tb@ for testing. ok tb@