Re: [PATCH 2/2] crypto: remove padding logic from rsa.c

From: David Howells
Date: Fri Feb 26 2016 - 10:02:11 EST


Tadeusz Struk <tadeusz.struk@xxxxxxxxx> wrote:

> + if (memcmp(sig->digest, output, sig->digest_size) ||
> + req->dst_len != sig->digest_size)

You must always do the size check first!

David