]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: api - Rebirth of crypto_alloc_tfm
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Sep 2008 21:52:53 +0000 (06:52 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:24 +0000 (11:01 +1100)
commita1a18613142ff325937d03fdf71b8eb5cefdd8a6
treee9163f47d583f88d35fb8e5c9ca86ed2581c6efd
parent4aedf86f26f84bd7d85417e625e1a414c4f0a544
crypto: api - Rebirth of crypto_alloc_tfm

This patch reintroduces a completely revamped crypto_alloc_tfm.
The biggest change is that we now take two crypto_type objects
when allocating a tfm, a frontend and a backend.  In fact this
simply formalises what we've been doing behind the API's back.

For example, as it stands crypto_alloc_ahash may use an
actual ahash algorithm or a crypto_hash algorithm.  Putting
this in the API allows us to do this much more cleanly.

The existing types will be converted across gradually.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
crypto/internal.h
include/crypto/algapi.h
include/linux/crypto.h