projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'mfd-next-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[linux-2.6-microblaze.git]
/
crypto
/
ecc.h
diff --git
a/crypto/ecc.h
b/crypto/ecc.h
index
a006132
..
1350e8e
100644
(file)
--- a/
crypto/ecc.h
+++ b/
crypto/ecc.h
@@
-27,6
+27,7
@@
#define _CRYPTO_ECC_H
#include <crypto/ecc_curve.h>
#define _CRYPTO_ECC_H
#include <crypto/ecc_curve.h>
+#include <asm/unaligned.h>
/* One digit is u64 qword. */
#define ECC_CURVE_NIST_P192_DIGITS 3
/* One digit is u64 qword. */
#define ECC_CURVE_NIST_P192_DIGITS 3
@@
-46,13
+47,13
@@
* @out: Output array
* @ndigits: Number of digits to copy
*/
* @out: Output array
* @ndigits: Number of digits to copy
*/
-static inline void ecc_swap_digits(const
u64
*in, u64 *out, unsigned int ndigits)
+static inline void ecc_swap_digits(const
void
*in, u64 *out, unsigned int ndigits)
{
const __be64 *src = (__force __be64 *)in;
int i;
for (i = 0; i < ndigits; i++)
{
const __be64 *src = (__force __be64 *)in;
int i;
for (i = 0; i < ndigits; i++)
- out[i] =
be64_to_cpu(
src[ndigits - 1 - i]);
+ out[i] =
get_unaligned_be64(&
src[ndigits - 1 - i]);
}
/**
}
/**