Re: [1/9] Convert padlock sha to shash

2009-07-11 Thread Herbert Xu
On Sat, Jul 11, 2009 at 06:19:58PM +0800, Herbert Xu wrote: > Hi: > > This series of patches converts the padlock-sha implementation to > shash. This is also the last legacy hash algorithm to be converted, > apart from hmac which I had to revert as it would break padlock-sha > unless the latter i

[PATCH 10/10] crypto: padlock - Switch sha to shash

2009-07-11 Thread Herbert Xu
crypto: padlock - Switch sha to shash This patch converts the padlock-sha implementation to shash. In doing so the existing mechanism of storing the data until final is no longer viable as we do not have a way of allocating data in crypto_shash_init and then reliably freeing it. This is just as w

[PATCH 9/10] crypto: padlock - Use shash fallback for sha

2009-07-11 Thread Herbert Xu
crypto: padlock - Use shash fallback for sha This patch changes padlock sha fallback to shash instead of hash. Signed-off-by: Herbert Xu --- drivers/crypto/padlock-sha.c | 82 +++ 1 file changed, 52 insertions(+), 30 deletions(-) diff --git a/drivers/

[PATCH 8/10] crypto: sha256-s390 - Add export/import support

2009-07-11 Thread Herbert Xu
crypto: sha256-s390 - Add export/import support This patch adds export/import support to sha256-s390. The exported type is defined by struct sha256_state, which is basically the entire descriptor state of sha256_generic. Signed-off-by: Herbert Xu --- arch/s390/crypto/sha256_s390.c | 26

[PATCH 7/10] crypto: sha1-s390 - Add export/import support

2009-07-11 Thread Herbert Xu
crypto: sha1-s390 - Add export/import support This patch adds export/import support to sha1-s390. The exported type is defined by struct sha1_state, which is basically the entire descriptor state of sha1_generic. Signed-off-by: Herbert Xu --- arch/s390/crypto/sha1_s390.c | 26 ++

[PATCH 6/10] crypto: sha256_generic - Add export/import support

2009-07-11 Thread Herbert Xu
crypto: sha256_generic - Add export/import support This patch adds export/import support to sha256_generic. The exported type is defined by struct sha256_state, which is basically the entire descriptor state of sha256_generic. Signed-off-by: Herbert Xu --- crypto/sha256_generic.c | 37 +

[PATCH 5/10] crypto: sha256_generic - Use 64-bit counter like sha1

2009-07-11 Thread Herbert Xu
crypto: sha256_generic - Use 64-bit counter like sha1 This patch replaces the two 32-bit counter code in sha256_generic with the simpler 64-bit counter code from sha1. Signed-off-by: Herbert Xu --- crypto/sha256_generic.c | 65 ++-- 1 file changed,

[PATCH 4/10] crypto: sha1_generic - Add export/import support

2009-07-11 Thread Herbert Xu
crypto: sha1_generic - Add export/import support This patch adds export/import support to sha1_generic. The exported type is defined by struct sha1_state, which is basically the entire descriptor state of sha1_generic. Signed-off-by: Herbert Xu --- crypto/sha1_generic.c | 41 +++

[PATCH 3/10] crypto: shash - Move finup/digest null checks to registration time

2009-07-11 Thread Herbert Xu
crypto: shash - Move finup/digest null checks to registration time This patch moves the run-time null finup/digest checks to the shash_prepare_alg function which is run at registration time. Signed-off-by: Herbert Xu --- crypto/shash.c | 10 ++ 1 file changed, 6 insertions(+), 4 dele

[PATCH 2/10] crypto: shash - Export/import hash state only

2009-07-11 Thread Herbert Xu
crypto: shash - Export/import hash state only This patch replaces the full descriptor export with an export of the partial hash state. This allows the use of a consistent export format across all implementations of a given algorithm. This is useful because a number of cases require the use of th

[1/9] Convert padlock sha to shash

2009-07-11 Thread Herbert Xu
Hi: This series of patches converts the padlock-sha implementation to shash. This is also the last legacy hash algorithm to be converted, apart from hmac which I had to revert as it would break padlock-sha unless the latter is converted. As I don't have the hardware supporting padlock-sha, could