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>pull/1354/merge
parent
065f040010
commit
c0d597e016
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue