<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/arch/amd64/crypto_arch.h, branch OPENBSD_7_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-09-08T12:56:17+00:00</updated>
<entry>
<title>Allow generic AES implementation to be used as a fallback.</title>
<updated>2025-09-08T12:56:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-08T12:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=edb41402990165c33fbbe4972a505d2b907f57b5'/>
<id>urn:sha1:edb41402990165c33fbbe4972a505d2b907f57b5</id>
<content type='text'>
Rename the C based AES implementation to *_generic() and provide
*_internal() wrappers for these. This allows for architectures to provide
accelerated versions without having to also provide a fallback
implementation.

ok tb@
</content>
</entry>
<entry>
<title>Add CPU feature detection for ADX on amd64.</title>
<updated>2025-08-14T15:11:01+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-14T15:11:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d31d4089b9ae677123f49cc1b071b80207baf184'/>
<id>urn:sha1:d31d4089b9ae677123f49cc1b071b80207baf184</id>
<content type='text'>
Add detection of Multi-Precision Add-Carry Instruction Extensions on amd64.
s2n-bignum provides a number of fast multiplication routines that can
leverage these instructions.

ok tb@
</content>
</entry>
<entry>
<title>Remove crypto_cpu_caps_ia32()</title>
<updated>2025-07-22T09:18:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-22T09:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cbc4928ebdbd9c244a1c0e3c2e90497a0d246b38'/>
<id>urn:sha1:cbc4928ebdbd9c244a1c0e3c2e90497a0d246b38</id>
<content type='text'>
There are no more consumers of crypto_cpu_caps_ia32(), so remove it.

ok bcook@ joshua@ tb@
</content>
</entry>
<entry>
<title>Move AES-NI for ECB out of EVP.</title>
<updated>2025-07-22T09:13:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-22T09:13:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=da7a63b669ad2a502ae120afede3fd850082e8b6'/>
<id>urn:sha1:da7a63b669ad2a502ae120afede3fd850082e8b6</id>
<content type='text'>
Make aes_ecb_encrypt_internal() replaceable and provide machine dependent
versions for amd64 and i386, which dispatch to AES-NI if appropriate.
Remove the AES-NI specific EVP methods for ECB.

This removes the last of the machine dependent code from EVP AES.

ok bcook@ joshua@ tb@
</content>
</entry>
<entry>
<title>Move AES-NI from EVP to AES for CCM mode.</title>
<updated>2025-07-21T10:24:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-21T10:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b73facdeca098be7e538e556c1a293942db3110c'/>
<id>urn:sha1:b73facdeca098be7e538e556c1a293942db3110c</id>
<content type='text'>
The mode implementation for CCM has two variants - one takes the block
function, while the other takes a "ccm64" function. The latter is expected
to handle the lower 64 bits of the IV/counter but only for 16 byte blocks.
The AES-NI implementation for CCM currently uses the second variant.

Provide aes_ccm64_encrypt_internal() as a function that can be replaced on
a machine dependent basis, along with an aes_ccm64_encrypt_generic()
function that provides the default implementation and can be used as a
fallback. Wire up the AES-NI version for amd64 and i386, change EVP's
aes_ccm_cipher() to use CRYPTO_ctr128_{en,de}crypt_ccm64() with
aes_ccm64_encrypt_internal()) and remove the various AES-NI specific
EVP_CIPHER methods for CCM.

ok tb@
</content>
</entry>
<entry>
<title>Simplify AES-XTS implementation and remove AES-NI specific code from EVP.</title>
<updated>2025-07-13T06:01:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-13T06:01:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f0234f5a33ecf3b2784f3e73bdf1e937abe56599'/>
<id>urn:sha1:f0234f5a33ecf3b2784f3e73bdf1e937abe56599</id>
<content type='text'>
Provide aes_xts_encrypt_internal() and call that from aes_xts_cipher().
Have amd64 and i386 provide their own versions that dispatch to
aesni_xts_encrypt()/aesni_xts_decrypt() as appropriate. The
AESNI_CAPABLE code and methods can then be removed.

ok tb@
</content>
</entry>
<entry>
<title>Rework gcm128 implementation selection for amd64/i386.</title>
<updated>2025-06-28T12:39:10+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-06-28T12:39:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=48723f4db60f6f8a8ad8424ffe5e0262d30f397c'/>
<id>urn:sha1:48723f4db60f6f8a8ad8424ffe5e0262d30f397c</id>
<content type='text'>
Provide gcm128_amd64.c and gcm128_i386.c, which contain the appropriate
gcm128 initialisation and CPU feature tests for the respective platform.
This allows for all of the #define spagetti to be removed from gcm128.c
and removes one of the two remaining consumers of crypto_cpu_caps_ia32().

ok tb@
</content>
</entry>
<entry>
<title>Add CLMUL to machine dependent CPU capabilities for amd64.</title>
<updated>2025-06-28T12:20:39+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-06-28T12:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c534647b2ec7521ee4210dd398faaad0018287d0'/>
<id>urn:sha1:c534647b2ec7521ee4210dd398faaad0018287d0</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Move AES-NI from EVP to AES for CTR mode.</title>
<updated>2025-06-27T17:10:45+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-06-27T17:10:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=abb03e21a8d0fc7f97a871f5aee5a8084176540f'/>
<id>urn:sha1:abb03e21a8d0fc7f97a871f5aee5a8084176540f</id>
<content type='text'>
The mode implementation for CTR has two variants - one takes the block
function, while the other takes a "ctr32" function. The latter is expected
to handle the lower 32 bits of the IV/counter, but is not expected to
handle overflow. The AES-NI implementation for CTR currently uses the
second variant.

Provide aes_ctr32_encrypt_internal() as a function that can be replaced on
a machine dependent basis, along with an aes_ctr32_encrypt_generic()
function that provides the default implementation and can be used as a
fallback. Wire up the AES-NI version for amd64 and i386, change
AES_ctr128_encrypt() to use CRYPTO_ctr128_encrypt_ctr32() (which calls
aes_ctr32_encrypt_internal()) and remove the various AES-NI specific
EVP_CIPHER methods for CTR.

Callers of AES_ctr128_encrypt() will now use AES-NI, if available.

ok tb@
</content>
</entry>
<entry>
<title>Provide CRYPTO_CPU_CAPS_AMD64_AES in machine dependent CPU capabilities.</title>
<updated>2025-06-15T14:16:11+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-06-15T14:16:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=00556dbdb2a0ef259141c777042dfb7562f0b7c5'/>
<id>urn:sha1:00556dbdb2a0ef259141c777042dfb7562f0b7c5</id>
<content type='text'>
ok tb@
</content>
</entry>
</feed>
