<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/sha/sha1_amd64.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-12-06T11:57:18+00:00</updated>
<entry>
<title>Provide a SHA-1 assembly implementation for amd64 using SHA-NI.</title>
<updated>2024-12-06T11:57:18+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-12-06T11:57:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=52aaf400e5a619fcab8ae52524e5aaf96e0b0894'/>
<id>urn:sha1:52aaf400e5a619fcab8ae52524e5aaf96e0b0894</id>
<content type='text'>
This provides a SHA-1 assembly implementation for amd64, which uses
the Intel SHA Extensions (aka SHA New Instructions or SHA-NI). This
provides a 2-2.5x performance gain on some Intel CPUs and many AMD CPUs.

ok tb@
</content>
</entry>
<entry>
<title>Provide a replacement assembly implementation for SHA-1 on amd64.</title>
<updated>2024-12-04T13:13:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-12-04T13:13:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2de3ee8c5940ebad54feb4303f6fc816daca784b'/>
<id>urn:sha1:2de3ee8c5940ebad54feb4303f6fc816daca784b</id>
<content type='text'>
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@
</content>
</entry>
</feed>
