]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hash - Add shash interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 31 Aug 2008 05:47:27 +0000 (15:47 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:26 +0000 (11:01 +1100)
commit34eb269c83262c336956e2d3e96e7d7ce0462f7f
tree41ba9e7051d1ecd47eb5cd371209229db3202ab6
parenta1a18613142ff325937d03fdf71b8eb5cefdd8a6
crypto: hash - Add shash interface

The shash interface replaces the current synchronous hash interface.
It improves over hash in two ways.  Firstly shash is reentrant,
meaning that the same tfm may be used by two threads simultaneously
as all hashing state is stored in a local descriptor.

The other enhancement is that shash no longer takes scatter list
entries.  This is because shash is specifically designed for
synchronous algorithms and as such scatter lists are unnecessary.

All existing hash users will be converted to shash once the
algorithms have been completely converted.

There is also a new finup function that combines update with final.
This will be extended to ahash once the algorithm conversion is
done.

This is also the first time that an algorithm type has their own
registration function.  Existing algorithm types will be converted
to this way in due course.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Makefile
crypto/shash.c [new file with mode: 0644]
include/crypto/hash.h
include/crypto/internal/hash.h
include/linux/crypto.h