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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:12 +0000 (00:32 +0100)
commit0539d75746f9a3f282b9c2f45da1e1cc0a804f54
treee3221bc9fc19c645ade2113f371f6d37b003899a
parentcf80348f6420632e175f78a4163e40aedace37e6
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: Ben Hutchings <ben@decadent.org.uk>
arch/s390/crypto/ghash_s390.c