]> git.openfabrics.org - ~emulex/infiniband.git/commit
crypto: padlock - Add SHA-1/256 module for VIA Nano
authorBrilly Wu <brillywu@viatech.com.cn>
Sun, 27 Mar 2011 02:45:00 +0000 (10:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 27 Mar 2011 02:45:18 +0000 (10:45 +0800)
commit0475add3c27a43a6599fe6338f8fffe919a13547
tree4744ac7bdf8135e89fe8b5a24ced20c292103eda
parent7dfc2179ec7339a180e822a5af7eb1294da245cf
crypto: padlock - Add SHA-1/256 module for VIA Nano

Add new SHA-1/256 module that never needs any fallback and just calls the
PadLock hardware instruction supported from VIA Nano processors to implement
the "update" and "final" function.

They are respectively named "sha1_alg_nano" and "sha256_alg_nano", and will
be used on any VIA Nano processor or the later ones. On VIA C7 CPU, the
"sha1_alg" and "sha256_alg" modules will still be used as before.

Signed-off-by: Brilly Wu <brillywu@viatech.com.cn>
Signed-off-by: Kary Jin <karyjin@viatech.com.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock-sha.c