[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6299.1456498920@warthog.procyon.org.uk>
Date: Fri, 26 Feb 2016 15:02:00 +0000
From: David Howells <dhowells@...hat.com>
To: Tadeusz Struk <tadeusz.struk@...el.com>
Cc: dhowells@...hat.com, linux-kernel@...r.kernel.org,
balrogg@...glemail.com, linux-security-module@...r.kernel.org,
keyrings@...r.kernel.org, linux-crypto@...r.kernel.org,
zohar@...ux.vnet.ibm.com
Subject: Re: [PATCH 2/2] crypto: remove padding logic from rsa.c
Tadeusz Struk <tadeusz.struk@...el.com> wrote:
> + if (memcmp(sig->digest, output, sig->digest_size) ||
> + req->dst_len != sig->digest_size)
You must always do the size check first!
David
Powered by blists - more mailing lists