lkml.org 
[lkml]   [2016]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] crypto: remove padding logic from rsa.c
Date
Tadeusz Struk <tadeusz.struk@intel.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

\
 
 \ /
  Last update: 2016-02-26 16:41    [W:0.270 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site