* ARMv8 Crypto Extensions instructions to implement the finite field operations.
*/
-#include <asm/neon.h>
+#include <asm/simd.h>
#include <crypto/internal/hash.h>
#include <crypto/polyval.h>
#include <crypto/utils.h>
static void internal_polyval_update(const struct polyval_tfm_ctx *keys,
const u8 *in, size_t nblocks, u8 *accumulator)
{
- kernel_neon_begin();
- pmull_polyval_update(keys, in, nblocks, accumulator);
- kernel_neon_end();
+ scoped_ksimd()
+ pmull_polyval_update(keys, in, nblocks, accumulator);
}
static void internal_polyval_mul(u8 *op1, const u8 *op2)
{
- kernel_neon_begin();
- pmull_polyval_mul(op1, op2);
- kernel_neon_end();
+ scoped_ksimd()
+ pmull_polyval_mul(op1, op2);
}
static int polyval_arm64_setkey(struct crypto_shash *tfm,