diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2025-11-12 10:03:18 +0100 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2025-11-12 09:57:52 -0800 |
| commit | c0d597e01626a28598119570b29186c93f3aced3 (patch) | |
| tree | a8ca4abf9efc189206c1fbd8d02573e06de750a4 /lib/crypto | |
| parent | 065f04001081fa48f24dd95f7095d06402756253 (diff) | |
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>
Diffstat (limited to 'lib/crypto')
| -rw-r--r-- | lib/crypto/arm/blake2b.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/crypto/arm/blake2b.h b/lib/crypto/arm/blake2b.h index 1b9154d119db..5c76498521e6 100644 --- a/lib/crypto/arm/blake2b.h +++ b/lib/crypto/arm/blake2b.h @@ -24,9 +24,8 @@ static void blake2b_compress(struct blake2b_ctx *ctx, const size_t blocks = min_t(size_t, nblocks, SZ_4K / BLAKE2B_BLOCK_SIZE); - kernel_neon_begin(); - blake2b_compress_neon(ctx, data, blocks, inc); - kernel_neon_end(); + scoped_ksimd() + blake2b_compress_neon(ctx, data, blocks, inc); data += blocks * BLAKE2B_BLOCK_SIZE; nblocks -= blocks; |