summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256_amd64.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Provide a SHA-256 assembly implementation for amd64 using SHA-NI.jsing2024-11-161-1/+9
| | | | | | | | This provides a SHA-256 assembly implementation for amd64, which uses the Intel SHA Extensions (aka SHA New Instructions or SHA-NI). This provides a 3-5x performance gain on some Intel CPUs and many AMD CPUs. ok tb@
* Provide a replacement assembly implementation for SHA-256 on amd64.jsing2024-11-081-0/+26
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@