]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: atmel-aes - Change data type for "lastc" buffer
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 15 Nov 2019 13:49:09 +0000 (13:49 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:38 +0000 (18:48 +0800)
commita578242bac73aa0a81ef756e3775fc3e73586b90
tree336b8488d0f810f545e73ec5d6fcf58d816e65df
parentce71d72bf539409d602ef130ef717b36195a5842
crypto: atmel-aes - Change data type for "lastc" buffer

In case of in-place decryption, the "lastc" buffer is used to copy
the last ciphertext block before the decryption of the message. It
is later used to update the req->iv of the skcipher_request.

"lastc" variable is not used to interact with the hardware, there
is no restriction to be of type "u32". Change the type of "lastc"
to "u8".

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c