Re: [PATCH v4 0/3] crypto: akcipher - Changes to asymmetric key API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 01, 2015 at 09:09:54PM -0700, Tadeusz Struk wrote:
>
> This is used not only in rsa, but also in the new mpi sgl helpers.
> Should I drop all the params checking?

For a start the MPI helpers shouldn't be using sg_len as the length
that they are allowed to read or write.  The length should be
explicitly passed in by the caller because it may be smaller than
the length of the entire SG list.

So no I don't see why you need to use sg_len in the MPI helpers.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux