2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-24 14:45:12 +08:00
linux-next/drivers/crypto/nx
Dan Streetman 7371c0a5c2 crypto: nx - don't err if compressed output > input
Return success instead of error if compression succeeds but the output is
larger than the input.

It's unlikely that the caller will use the compressed data since it's
larger than the original uncompressed data, but there was no error and
returning an error code is incorrect.  Further, for testing small input
buffers, the output is likely to be larger than the input and success
needs to be returned to verify the test.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-07-30 21:49:40 +08:00
..
Kconfig crypto: nx - merge nx-compress and nx-compress-crypto 2015-07-23 18:14:31 +08:00
Makefile crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx_csbcpb.h powerpc/crypto: nx driver code supporting nx encryption 2012-05-16 15:05:41 +10:00
nx_debugfs.c powerpc/crypto: debugfs routines and docs for the nx device driver 2012-05-16 15:05:45 +10:00
nx-842-powernv.c crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx-842-pseries.c crypto: nx - don't err if compressed output > input 2015-07-30 21:49:40 +08:00
nx-842.c crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx-842.h crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx-aes-cbc.c crypto: nx - Moving NX-AES-CBC to be processed logic 2014-11-06 23:15:00 +08:00
nx-aes-ccm.c crypto: nx - Convert ccm to new AEAD interface 2015-07-17 21:20:13 +08:00
nx-aes-ctr.c crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
nx-aes-ecb.c crypto: nx - Moving NX-AES-ECB to be processed logic 2014-11-06 23:15:01 +08:00
nx-aes-gcm.c crypto: nx - Use new IV convention 2015-07-14 14:56:47 +08:00
nx-aes-xcbc.c crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
nx-sha256.c crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
nx-sha512.c crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
nx.c crypto: nx - Convert ccm to new AEAD interface 2015-07-17 21:20:13 +08:00
nx.h crypto: nx - Convert ccm to new AEAD interface 2015-07-17 21:20:13 +08:00