OSDN Git Service

crypto: atmel-aes - Reset the controller before each use
authorRomain Izard <romain.izard.pro@gmail.com>
Tue, 31 Oct 2017 15:25:24 +0000 (16:25 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:26 +0000 (22:11 +0800)
commit7a373fd74a8d1c4882e0236cc38345cec1393505
treea9b3e7117c27d2dd7aaf7a744f0dc9821327c660
parent91308019ecb46047b81d3c769cf5bf6b129ddf02
crypto: atmel-aes - Reset the controller before each use

When using the rfc4543(gcm(aes))) mode, the registers of the hardware
engine are not empty after use. If the engine is not reset before its
next use, the following results will be invalid.

Always reset the hardware engine.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c