lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150730135210.GA17690@gondor.apana.org.au>
Date:	Thu, 30 Jul 2015 21:52:10 +0800
From:	Herbert Xu <herbert@...dor.apana.org.au>
To:	Dan Streetman <ddstreet@...e.org>
Cc:	linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: nx - don't err if compressed output > input

On Wed, Jul 29, 2015 at 07:42:09PM -0400, Dan Streetman wrote:
> 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@...e.org>

Applied.
-- 
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ