Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/crypto: arm/blake2b: Move to scoped ksimd API

Even though ARM's versions of kernel_neon_begin()/_end() are not being
changed, update the newly migrated ARM blake2b to the scoped ksimd API
so that all ARM and arm64 in lib/crypto remains consistent in this
manner.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

authored by

Ard Biesheuvel and committed by
Eric Biggers
c0d597e0 065f0400

+2 -3
+2 -3
lib/crypto/arm/blake2b.h
··· 24 24 const size_t blocks = min_t(size_t, nblocks, 25 25 SZ_4K / BLAKE2B_BLOCK_SIZE); 26 26 27 - kernel_neon_begin(); 28 - blake2b_compress_neon(ctx, data, blocks, inc); 29 - kernel_neon_end(); 27 + scoped_ksimd() 28 + blake2b_compress_neon(ctx, data, blocks, inc); 30 29 31 30 data += blocks * BLAKE2B_BLOCK_SIZE; 32 31 nblocks -= blocks;