hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/crypto/nhpoly1305-neon-glue.c
....@@ -9,6 +9,7 @@
99 #include <asm/neon.h>
1010 #include <asm/simd.h>
1111 #include <crypto/internal/hash.h>
12
+#include <crypto/internal/simd.h>
1213 #include <crypto/nhpoly1305.h>
1314 #include <linux/module.h>
1415
....@@ -25,11 +26,11 @@
2526 static int nhpoly1305_neon_update(struct shash_desc *desc,
2627 const u8 *src, unsigned int srclen)
2728 {
28
- if (srclen < 64 || !may_use_simd())
29
+ if (srclen < 64 || !crypto_simd_usable())
2930 return crypto_nhpoly1305_update(desc, src, srclen);
3031
3132 do {
32
- unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE);
33
+ unsigned int n = min_t(unsigned int, srclen, SZ_4K);
3334
3435 kernel_neon_begin();
3536 crypto_nhpoly1305_update_helper(desc, src, n, _nh_neon);