summaryrefslogtreecommitdiffstats
path: root/drivers/staging/skein/skein_base.h
diff options
context:
space:
mode:
authorEric Rost <eric.rost@mybabylon.net>2014-10-24 17:33:15 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 16:39:58 +0800
commitf96d8ced8ec6e37b8c128bd9c7c65919cc273711 (patch)
treee82e1b117e075cd8b7a529838b5aea599e057c5c /drivers/staging/skein/skein_base.h
parentc17cdeb41950a69d3e1f43b39a7e5e59ed59c8f9 (diff)
downloadop-kernel-dev-f96d8ced8ec6e37b8c128bd9c7c65919cc273711.zip
op-kernel-dev-f96d8ced8ec6e37b8c128bd9c7c65919cc273711.tar.gz
staging: skein: Adds CryptoAPI Support
Adds CryptoAPI support to the Skein Hashing Algorithm driver. Signed-off-by: Eric Rost <eric.rost@mybabylon.net> Reviewed-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/skein/skein_base.h')
-rw-r--r--drivers/staging/skein/skein_base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/skein/skein_base.h b/drivers/staging/skein/skein_base.h
index e6669f1..9f10af9 100644
--- a/drivers/staging/skein/skein_base.h
+++ b/drivers/staging/skein/skein_base.h
@@ -28,6 +28,11 @@
**
***************************************************************************/
+/*Skein digest sizes for crypto api*/
+#define SKEIN256_DIGEST_BIT_SIZE 256
+#define SKEIN512_DIGEST_BIT_SIZE 512
+#define SKEIN1024_DIGEST_BIT_SIZE 1024
+
#ifndef rotl_64
#define rotl_64(x, N) (((x) << (N)) | ((x) >> (64-(N))))
#endif
OpenPOWER on IntegriCloud