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)
commit57d8154f15e89f53dfb412f4ed32ebe3c3d755a0
tree336b8488d0f810f545e73ec5d6fcf58d816e65df
parent61b0dd664fa1873501297efbb12e5684aff074d4
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