Re: [PATCH 3/3] crypto: talitos - add hash algorithms

2010-05-01 Thread Kim Phillips
On Wed, 28 Apr 2010 05:33:56 -0700 lee.nip...@gmail.com wrote: Add the following alorithms to talitos: md5, sha1, sha256, sha384, sha512. These are all type ahash. sha224 is left as an exercise for the reader, I see ;) It has been tested successfully on MPC8349E.

Re: [PATCH][RFC] crypto: talitos - add hmac algorithms

2010-05-01 Thread Kim Phillips
On Wed, 28 Apr 2010 05:33:57 -0700 lee.nip...@gmail.com wrote: Add the these hmac algorithms to talitos: hmac(md5), hmac(sha1), hmac(sha256), hmac(sha384), hmac(sha512). These are all type ahash. Signed-off-by: Lee Nipper lee.nip...@gmail.com --- Currently on an

Re: [PATCH 1/3] crypto: talitos - prepare for adding ahash algorithms

2010-05-01 Thread Kim Phillips
On Wed, 28 Apr 2010 05:33:52 -0700 lee.nip...@gmail.com wrote: No functional changes. Use a union in talitos_alg_template for the crypto_alg so that we can add a member later for ahash_alg. Signed-off-by: Lee Nipper lee.nip...@gmail.com --- Acked-By: Kim Phillips

Re: [PATCH 2/3] crypto: talitos - second prepare step for adding ahash algorithms

2010-05-01 Thread Kim Phillips
On Wed, 28 Apr 2010 05:33:54 -0700 lee.nip...@gmail.com wrote: Used talitos_alg_template in talitos_crypto_alg so that it will accommodate ahash algorithms. Added some preparation code for ahash allocation and removal. No actual algorithms yet. Signed-off-by: Lee Nipper

Re: [PATCH] crypto: talitos - add support for sha224

2010-05-01 Thread Lee Nipper
Kim Phillips wrote: SEC h/w versions 2.1 and above support sha224 via explicit instruction. Performing sha224 ahashes on earlier versions is still possible because they support sha256 (sha224 is sha256 with different initial constants and a different truncation length). We do this by