Re: [RFC PATCH v3] akcipher: Introduce verify_rsa/verify for public key algorithms

From: Herbert Xu
Date: Fri Jan 25 2019 - 08:46:27 EST


On Fri, Jan 25, 2019 at 02:18:09PM +0300, Vitaly Chikunov wrote:
>
> Well, if we allowed to reuse dst* fields why not just put digest over
> dst scatterlist? That would be much simpler.

Please see below.

> > The advantage of having it in one scatterlist is that for those
> > users that already have the two pieces together could simply provide
> > a single SG element (I don't know how likely that is in practice
> > though).
> >
> > For others you would simply tack on an extra SG element.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt