]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7001b8bec0375a8e871447517fcf5b4c6740f74
treea9b3e7117c27d2dd7aaf7a744f0dc9821327c660
parent47911b109a2cc2eed94409cf358abed3ab61851f
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