2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 11:44:01 +08:00
linux-next/include/crypto/internal
Herbert Xu 75ecb231ff crypto: hash - Add real ahash walk interface
Although the existing hash walk interface has already been used
by a number of ahash crypto drivers, it turns out that none of
them were really asynchronous.  They were all essentially polling
for completion.

That's why nobody has noticed until now that the walk interface
couldn't work with a real asynchronous driver since the memory
is mapped using kmap_atomic.

As we now have a use-case for a real ahash implementation on x86,
this patch creates a minimal ahash walk interface.  Basically it
just calls kmap instead of kmap_atomic and does away with the
crypto_yield call.  Real ahash crypto drivers don't need to yield
since by definition they won't be hogging the CPU.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-05-21 20:56:12 +08:00
..
aead.h crypto: user - Fix lookup of algorithms with IV generator 2012-03-29 19:52:47 +08:00
compress.h crypto: compress - Add pcomp interface 2009-03-04 15:05:33 +08:00
hash.h crypto: hash - Add real ahash walk interface 2014-05-21 20:56:12 +08:00
rng.h crypto: rng - RNG interface and implementation 2008-08-29 15:50:04 +10:00
skcipher.h crypto: user - Fix lookup of algorithms with IV generator 2012-03-29 19:52:47 +08:00