Re: [RFC] crypto: sa2ul - sha1/sha256/sha512 support

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

 



On Wed, Jun 05, 2024 at 06:12:22PM +0530, Kamlesh Gurudasani wrote:
>
> The way I understand algif_hash calls the digest function[0] if entire
> file(file whose SHA needs to be calculated) is less than 16 *
> PAGE_SIZE(4 kb for us) 

If that is the concern we should explore increasing the limit,
or at least making it configurable.  The limit exists in order
to prevent user-space from exhausting kernel memory, so it is
meant to be admin-configurable.

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




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