[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/5] keccak: Disable acceleration with SSE asm
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v3 5/5] keccak: Disable acceleration with SSE asm |
Date: |
Wed, 29 May 2024 17:02:45 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Same comments as for earlier patches...
Thank you for moving this to separate patch.
On Fri, May 24, 2024 at 08:30:06PM +0300, Vladimir Serbinenko wrote:
> ---
> .../lib/libgcrypt-patches/02_keccak_sse.diff | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 grub-core/lib/libgcrypt-patches/02_keccak_sse.diff
>
> diff --git a/grub-core/lib/libgcrypt-patches/02_keccak_sse.diff
> b/grub-core/lib/libgcrypt-patches/02_keccak_sse.diff
> new file mode 100644
> index 000000000..980ebb2b7
> --- /dev/null
> +++ b/grub-core/lib/libgcrypt-patches/02_keccak_sse.diff
> @@ -0,0 +1,19 @@
> +commit b0cf06271da5fe20360953a53a47c69da89669cd
> +Author: Vladimir Serbinenko <phcoder@gmail.com>
> +Date: Sun Apr 7 06:33:11 2024 +0300
> +
> + keccak: Disable acceleration with SSE asm
Could you explain in the commit message here and above why this change
is needed?
> +diff --git a/grub-core/lib/libgcrypt/cipher/keccak.c
> b/grub-core/lib/libgcrypt/cipher/keccak.c
> +index 11e64b3e7..8b570263b 100644
> +--- a/grub-core/lib/libgcrypt/cipher/keccak.c
> ++++ b/grub-core/lib/libgcrypt/cipher/keccak.c
> +@@ -251,7 +251,7 @@ keccak_absorb_lane32bi(u32 *lane, u32 x0, u32 x1)
> + /* Construct generic 64-bit implementation. */
> + #ifdef USE_64BIT
> +
> +-#if __GNUC__ >= 4 && defined(__x86_64__)
> ++#if __GNUC__ >= 4 && defined(__x86_64__) && 0
> +
> + static inline void absorb_lanes64_8(u64 *dst, const byte *in)
> + {
Daniel
- [PATCH v3 1/5] Import libgcrypt 1.10.3, Vladimir Serbinenko, 2024/05/24
- [PATCH v3 5/5] keccak: Disable acceleration with SSE asm, Vladimir Serbinenko, 2024/05/24
- [PATCH v3 2/5] Import b64dec from gpg-error, Vladimir Serbinenko, 2024/05/24
- [PATCH v3 3/5] Adjust import script, definitions and API users for libgcrypt 1.10, Vladimir Serbinenko, 2024/05/24
- [PATCH v3 4/5] Add DSA and RSA SEXP tests, Vladimir Serbinenko, 2024/05/24
- Re: [PATCH v3 1/5] Import libgcrypt 1.10.3, Daniel Kiper, 2024/05/29