.. | .. |
---|
9 | 9 | #include <asm/neon.h> |
---|
10 | 10 | #include <asm/simd.h> |
---|
11 | 11 | #include <crypto/internal/hash.h> |
---|
| 12 | +#include <crypto/internal/simd.h> |
---|
12 | 13 | #include <crypto/nhpoly1305.h> |
---|
13 | 14 | #include <linux/module.h> |
---|
14 | 15 | |
---|
.. | .. |
---|
25 | 26 | static int nhpoly1305_neon_update(struct shash_desc *desc, |
---|
26 | 27 | const u8 *src, unsigned int srclen) |
---|
27 | 28 | { |
---|
28 | | - if (srclen < 64 || !may_use_simd()) |
---|
| 29 | + if (srclen < 64 || !crypto_simd_usable()) |
---|
29 | 30 | return crypto_nhpoly1305_update(desc, src, srclen); |
---|
30 | 31 | |
---|
31 | 32 | do { |
---|
32 | | - unsigned int n = min_t(unsigned int, srclen, PAGE_SIZE); |
---|
| 33 | + unsigned int n = min_t(unsigned int, srclen, SZ_4K); |
---|
33 | 34 | |
---|
34 | 35 | kernel_neon_begin(); |
---|
35 | 36 | crypto_nhpoly1305_update_helper(desc, src, n, _nh_neon); |
---|