aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx/nx-842-powernv.c
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.vnet.ibm.com>2015-10-08 13:45:51 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-14 22:23:17 +0800
commitea0b3984c1cc8b28de27a3bec285102b4e366a4c (patch)
treeb0134466a5b790d4091dc16065257a00ea24bf00 /drivers/crypto/nx/nx-842-powernv.c
parentcrypto: jitterentropy - remove unnecessary information from a comment (diff)
downloadlinux-dev-ea0b3984c1cc8b28de27a3bec285102b4e366a4c.tar.xz
linux-dev-ea0b3984c1cc8b28de27a3bec285102b4e366a4c.zip
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>
Diffstat (limited to 'drivers/crypto/nx/nx-842-powernv.c')
-rw-r--r--drivers/crypto/nx/nx-842-powernv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c
index 3750e13d8721..9ef51fafdbff 100644
--- a/drivers/crypto/nx/nx-842-powernv.c
+++ b/drivers/crypto/nx/nx-842-powernv.c
@@ -491,7 +491,7 @@ static int nx842_powernv_compress(const unsigned char *in, unsigned int inlen,
void *wmem)
{
return nx842_powernv_function(in, inlen, out, outlenp,
- wmem, CCW_FC_842_COMP_NOCRC);
+ wmem, CCW_FC_842_COMP_CRC);
}
/**
@@ -519,7 +519,7 @@ static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen,
void *wmem)
{
return nx842_powernv_function(in, inlen, out, outlenp,
- wmem, CCW_FC_842_DECOMP_NOCRC);
+ wmem, CCW_FC_842_DECOMP_CRC);
}
static int __init nx842_powernv_probe(struct device_node *dn)