Commit c0d597e0 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Eric Biggers
Browse files

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: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarEric Biggers <ebiggers@kernel.org>
parent 065f0400
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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();
		scoped_ksimd()
			blake2b_compress_neon(ctx, data, blocks, inc);
		kernel_neon_end();

		data += blocks * BLAKE2B_BLOCK_SIZE;
		nblocks -= blocks;