OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f4128d
)
crypto: arm64/gcm - Fix endianness warnings
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 25 Aug 2020 01:38:01 +0000
(11:38 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 4 Sep 2020 07:57:15 +0000
(17:57 +1000)
This patch changes a couple u128's to be128 which is the correct
type to use and fixes a few sparse warnings.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/ghash-ce-glue.c
patch
|
blob
|
history
diff --git
a/arch/arm64/crypto/ghash-ce-glue.c
b/arch/arm64/crypto/ghash-ce-glue.c
index
da10348
..
8536008
100644
(file)
--- a/
arch/arm64/crypto/ghash-ce-glue.c
+++ b/
arch/arm64/crypto/ghash-ce-glue.c
@@
-347,7
+347,7
@@
static int gcm_encrypt(struct aead_request *req)
u8 buf[AES_BLOCK_SIZE];
u8 iv[AES_BLOCK_SIZE];
u64 dg[2] = {};
-
u
128 lengths;
+
be
128 lengths;
u8 *tag;
int err;
@@
-461,7
+461,7
@@
static int gcm_decrypt(struct aead_request *req)
u8 buf[AES_BLOCK_SIZE];
u8 iv[AES_BLOCK_SIZE];
u64 dg[2] = {};
-
u
128 lengths;
+
be
128 lengths;
u8 *tag;
int err;