[PATCH 09/12] lib/crypto: blake2s: Always enable arch-optimized BLAKE2s code
Eric Biggers
ebiggers at kernel.org
Fri Aug 29 08:29:12 PDT 2025
On Fri, Aug 29, 2025 at 03:08:56PM +0200, Honza Fikar wrote:
> On Fri, Aug 29, 2025 at 2:54 PM Eric Biggers <ebiggers at kernel.org> wrote:
>
> > Currently, BLAKE2s support is always enabled ('obj-y'), since random.c
> > uses it. Therefore, the arch-optimized BLAKE2s code, which exists for
> > ARM and x86_64, should be always enabled too.
>
> Maybe a stupid question: what about ARM64? The current NEON
> implementation in kernel arch/arm/crypto/blake2s-core.S seems to be just
> for ARM.
>
> While the upstream BLAKE2s with NEON is both for ARM and Aarch64 (ARM64):
>
> https://github.com/BLAKE2/BLAKE2/blob/master/neon
There's no ARM64 optimized BLAKE2s code in the Linux kernel yet. If
it's useful, someone would need to contribute it.
- Eric
More information about the linux-arm-kernel
mailing list