projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228d284
)
crypto: atmel-aes - convert to use be32_add_cpu()
author
Liu Shixin
<liushixin2@huawei.com>
Mon, 14 Sep 2020 04:17:46 +0000
(12:17 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:12 +0000
(17:48 +1000)
Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu().
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/atmel-aes.c
b/drivers/crypto/atmel-aes.c
index a6e14491e080ad5bcad75030c0e36f6be6563b3d..b1d2860042958bb2ca103e33bf2d4d60041a557e 100644
(file)
--- a/
drivers/crypto/atmel-aes.c
+++ b/
drivers/crypto/atmel-aes.c
@@
-1539,7
+1539,7
@@
static int atmel_aes_gcm_length(struct atmel_aes_dev *dd)
/* Write incr32(J0) into IV. */
j0_lsw = j0[3];
-
j0[3] = cpu_to_be32(be32_to_cpu(j0[3]) +
1);
+
be32_add_cpu(&j0[3],
1);
atmel_aes_write_block(dd, AES_IVR(0), j0);
j0[3] = j0_lsw;