Skip to content

Commit a4cb40f

Browse files
committed
crypto: arm64/gcm - Fix endianness warnings
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>
1 parent 0f4128d commit a4cb40f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm64/crypto/ghash-ce-glue.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static int gcm_encrypt(struct aead_request *req)
347347
u8 buf[AES_BLOCK_SIZE];
348348
u8 iv[AES_BLOCK_SIZE];
349349
u64 dg[2] = {};
350-
u128 lengths;
350+
be128 lengths;
351351
u8 *tag;
352352
int err;
353353

@@ -461,7 +461,7 @@ static int gcm_decrypt(struct aead_request *req)
461461
u8 buf[AES_BLOCK_SIZE];
462462
u8 iv[AES_BLOCK_SIZE];
463463
u64 dg[2] = {};
464-
u128 lengths;
464+
be128 lengths;
465465
u8 *tag;
466466
int err;
467467

0 commit comments

Comments
 (0)