| .. | .. |
|---|
| 11 | 11 | #include <asm/neon.h> |
|---|
| 12 | 12 | #include <asm/simd.h> |
|---|
| 13 | 13 | #include <crypto/internal/kpp.h> |
|---|
| 14 | +#include <crypto/internal/simd.h> |
|---|
| 14 | 15 | #include <linux/types.h> |
|---|
| 15 | 16 | #include <linux/module.h> |
|---|
| 16 | 17 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 28 | 29 | const u8 scalar[CURVE25519_KEY_SIZE], |
|---|
| 29 | 30 | const u8 point[CURVE25519_KEY_SIZE]) |
|---|
| 30 | 31 | { |
|---|
| 31 | | - if (static_branch_likely(&have_neon) && may_use_simd()) { |
|---|
| 32 | + if (static_branch_likely(&have_neon) && crypto_simd_usable()) { |
|---|
| 32 | 33 | kernel_neon_begin(); |
|---|
| 33 | 34 | curve25519_neon(out, scalar, point); |
|---|
| 34 | 35 | kernel_neon_end(); |
|---|