linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] CESA: Fixes for STD ahash requests
@ 2016-12-02 16:05 Romain Perier
  2016-12-02 16:05 ` [PATCH 1/2] crypto: marvell - Don't copy hash operation twice into the SRAM Romain Perier
  2016-12-02 16:05 ` [PATCH 2/2] crypto: marvell - Don't corrupt state of an STD req for re-stepped ahash Romain Perier
  0 siblings, 2 replies; 6+ messages in thread
From: Romain Perier @ 2016-12-02 16:05 UTC (permalink / raw)
  To: Boris Brezillon, Arnaud Ebalard
  Cc: linux-crypto, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Thomas Petazzoni, stable

This set of patches fixes two issues for STD ahash requests.
The first one is that the operation template is copied twice to the SRAM
from the step function, it is not needed. The second one is also
contained in the step function which  copies creq->state to the engine for
all type of requests , even if this one is re-launched. This might corrupt 
the context of the request in some cases.

Romain Perier (2):
  crypto: marvell - Don't copy hash operation twice into the SRAM
  crypto: marvell - Don't corrupt state of an STD req for re-stepped
    ahash

 drivers/crypto/marvell/hash.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-02 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 16:05 [PATCH 0/2] CESA: Fixes for STD ahash requests Romain Perier
2016-12-02 16:05 ` [PATCH 1/2] crypto: marvell - Don't copy hash operation twice into the SRAM Romain Perier
2016-12-02 16:21   ` Boris Brezillon
2016-12-02 16:30   ` Boris Brezillon
2016-12-02 16:05 ` [PATCH 2/2] crypto: marvell - Don't corrupt state of an STD req for re-stepped ahash Romain Perier
2016-12-02 16:21   ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).