Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox.de>
To: Tadeusz Struk <tadeusz.struk@intel.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: pkcs1pad_verify_complete: decoding missing?
Date: Mon, 09 May 2016 21:02:15 +0200	[thread overview]
Message-ID: <10395258.qUa3tSVhS8@tauon.atsec.com> (raw)
In-Reply-To: <b8a6fad7-629b-bc62-3094-5d4cc564397b@intel.com>

Am Montag, 9. Mai 2016, 11:55:58 schrieb Tadeusz Struk:

Hi Tadeusz,

> On 05/09/2016 11:50 AM, Stephan Mueller wrote:
> > I think I see my error: pkcs1pad(rsa,HASH) -- I missed the hash part that
> > activates the decoding. Thank you for the pointer.
> > 
> > Once I completed my testing, I think I need to beef up the documentation a
> > bit.
> 
> Right, this can work in two modes. The pkcs1pad(rsa) only strips the
> padding. Thanks,

One followup: is the final memcmp() between the decrypted hash and the hash of 
the message implemented in the RSA verify code path? At least I do not see it 
right away.


Ciao
Stephan

  reply	other threads:[~2016-05-09 19:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09 10:24 pkcs1pad_verify_complete: decoding missing? Stephan Mueller
2016-05-09 18:15 ` Tadeusz Struk
2016-05-09 18:50   ` Stephan Mueller
2016-05-09 18:55     ` Tadeusz Struk
2016-05-09 19:02       ` Stephan Mueller [this message]
2016-05-09 19:17         ` Tadeusz Struk
2016-05-09 19:24           ` Stephan Mueller
2016-05-09 19:31             ` Tadeusz Struk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10395258.qUa3tSVhS8@tauon.atsec.com \
    --to=smueller@chronox.de \
    --cc=linux-crypto@vger.kernel.org \
    --cc=tadeusz.struk@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox