summaryrefslogtreecommitdiffstats
path: root/drivers/staging/skein/skein_block.h
diff options
context:
space:
mode:
authorJake Edge <jake@lwn.net>2014-05-19 17:48:24 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-19 17:32:27 -0700
commit85dfd522f885ee4ec0b0b4efa1fdd9c650e243be (patch)
tree611657b5a850d7d2f29eb8ce133387a14743ec11 /drivers/staging/skein/skein_block.h
parent19440266b8876b5b6674162a43063192f12e3518 (diff)
downloadop-kernel-dev-85dfd522f885ee4ec0b0b4efa1fdd9c650e243be.zip
op-kernel-dev-85dfd522f885ee4ec0b0b4efa1fdd9c650e243be.tar.gz
staging/skein: rename files and clean up directory structure
Clean up file names and locations. Get rid of include/ directory and move those up to the top-level. Rename files to get rid of upper case. Remove skeinBlockNo3F.c as it was unused (temporary file or something?). Signed-off-by: Jake Edge <jake@lwn.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/skein/skein_block.h')
-rw-r--r--drivers/staging/skein/skein_block.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/staging/skein/skein_block.h b/drivers/staging/skein/skein_block.h
new file mode 100644
index 0000000..bd7bdc3
--- /dev/null
+++ b/drivers/staging/skein/skein_block.h
@@ -0,0 +1,22 @@
+/***********************************************************************
+**
+** Implementation of the Skein hash function.
+**
+** Source code author: Doug Whiting, 2008.
+**
+** This algorithm and source code is released to the public domain.
+**
+************************************************************************/
+#ifndef _SKEIN_BLOCK_H_
+#define _SKEIN_BLOCK_H_
+
+#include "skein.h" /* get the Skein API definitions */
+
+void skein_256_process_block(struct skein_256_ctx *ctx, const u8 *blk_ptr,
+ size_t blk_cnt, size_t byte_cnt_add);
+void skein_512_process_block(struct skein_512_ctx *ctx, const u8 *blk_ptr,
+ size_t blk_cnt, size_t byte_cnt_add);
+void skein_1024_process_block(struct skein_1024_ctx *ctx, const u8 *blk_ptr,
+ size_t blk_cnt, size_t byte_cnt_add);
+
+#endif
OpenPOWER on IntegriCloud