crypto: 842 - Add CRC and validation support
authorHaren Myneni <haren@linux.vnet.ibm.com>
Thu, 8 Oct 2015 20:45:51 +0000 (13:45 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Oct 2015 14:23:17 +0000 (22:23 +0800)
commitea0b3984c1cc8b28de27a3bec285102b4e366a4c
treeb0134466a5b790d4091dc16065257a00ea24bf00
parentf5128432b08c3e263e1a7ce709d686b1ded51131
crypto: 842 - Add CRC and validation support

This patch adds CRC generation and validation support for nx-842.
Add CRC flag so that nx842 coprocessor includes CRC during compression
and validates during decompression.

Also changes in 842 SW compression to append CRC value at the end
of template and checks during decompression.

Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-powernv.c
drivers/crypto/nx/nx-842-pseries.c
lib/842/842.h
lib/842/842_compress.c
lib/842/842_decompress.c