summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_meth.c
diff options
context:
space:
mode:
authorjsing <>2024-12-04 13:13:33 +0000
committerjsing <>2024-12-04 13:13:33 +0000
commit2de3ee8c5940ebad54feb4303f6fc816daca784b (patch)
tree6adf1634c082704fca00fea488f843d1345662b2 /src/lib/libcrypto/dsa/dsa_meth.c
parent703bddb95d0d05878d0df6fcb67913f30f9dfabe (diff)
downloadopenbsd-2de3ee8c5940ebad54feb4303f6fc816daca784b.tar.gz
openbsd-2de3ee8c5940ebad54feb4303f6fc816daca784b.tar.bz2
openbsd-2de3ee8c5940ebad54feb4303f6fc816daca784b.zip
Provide a replacement assembly implementation for SHA-1 on amd64.
As already done for SHA-256 and SHA-512, replace the perlasm generated SHA-1 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. On a modern CPU the performance is around 5% faster than the base implementation generated by sha1-x86_64.pl, however it is around 15% slower than the excessively complex SSSE2/AVX version that is also generated by the same script (a SHA-NI version will greatly outperform this and is much cleaner/simpler). ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_meth.c')
0 files changed, 0 insertions, 0 deletions