Re: [v4 PATCH 00/11] crypto: Add partial block API and hmac to ahash

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

 



On Fri, May 16, 2025 at 09:43:26AM -0700, Eric Biggers wrote:
>
> So how come this hasn't been a problem until now?

It is the key to getting rid of the ban on memory allocation
for ahash drivers.  Small memory allocations fail very rarely,
yet we're banning the use of all drivers doing any memory allocations
because they may fail.

With a consistent export format, we could simply fallback to
software when the rare OOM strikes, thus getting rid of the
ban on memory allocations.

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