crypto: s390/ghash - Fix incorrect ghash icv buffer handling.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Thu, 21 May 2015 08:01:11 +0000 (10:01 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:12 +0000 (11:33 +0200)
commit0f5a0fcfc6d8ca5d6ad53bbfef32f8b69db60ce9
tree34facfffaeaac83ba45dacd6d33c79ce1ff45d4c
parent9175da111a96a52fa90f7396f3fc9e0e170d85bc
crypto: s390/ghash - Fix incorrect ghash icv buffer handling.

commit a1cae34e23b1293eccbcc8ee9b39298039c3952a upstream.

Multitheaded tests showed that the icv buffer in the current ghash
implementation is not handled correctly. A move of this working ghash
buffer value to the descriptor context fixed this. Code is tested and
verified with an multithreaded application via af_alg interface.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Gerald Schaefer <geraldsc@linux.vnet.ibm.com>
Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/s390/crypto/ghash_s390.c