]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Scope aes_cfb128_vaes_encdec_wrapper to x64
authorKai Pastor <dg0yt@darc.de>
Wed, 8 Oct 2025 16:50:33 +0000 (18:50 +0200)
committerPauli <paul.dale@oracle.com>
Mon, 20 Oct 2025 23:05:39 +0000 (10:05 +1100)
This function is only used on x64 and relies on other functions which
are only implemented for x64.
Fixes #28745.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28792)

providers/implementations/ciphers/cipher_aes_cfb_hw_aesni.inc

index d5577d00f132ead3b136a2cc50c5baf18130f3a3..eb8e0164ac9ed768d3d6749b4b62a611a5eec2cc 100644 (file)
@@ -30,6 +30,7 @@
 static int ossl_aes_cfb8_vaes_eligible(void) { return 0; }
 static int ossl_aes_cfb1_vaes_eligible(void) { return 0; }
 
+#if (defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64))
 /* active in 64-bit builds when AES-NI, AVX512F, and VAES are detected */
 static int aes_cfb128_vaes_encdec_wrapper(
     PROV_CIPHER_CTX* dat,
@@ -56,6 +57,7 @@ static int aes_cfb128_vaes_encdec_wrapper(
 
     return 1;
 }
+#endif
  
 /* generates AES round keys for AES-NI and VAES implementations */
 static int cipher_hw_aesni_initkey(PROV_CIPHER_CTX *dat,