summaryrefslogtreecommitdiffstats
path: root/drivers/staging/skein/skeinBlockNo3F.c
diff options
context:
space:
mode:
authorAnton Saraev <antonysaraev@gmail.com>2014-05-19 12:09:57 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-19 14:18:14 -0700
commit9435d3ace68afea0533954e69cf0f8569fb7dc42 (patch)
tree5bd4cda1610dadd697faee0e2539904d799ba8de /drivers/staging/skein/skeinBlockNo3F.c
parent3201b7f25e3b9843a4f475f7d61f0fbe8de3d208 (diff)
downloadop-kernel-dev-9435d3ace68afea0533954e69cf0f8569fb7dc42.zip
op-kernel-dev-9435d3ace68afea0533954e69cf0f8569fb7dc42.tar.gz
staging: crypto: skein: rename enums
Linux Kernel use capitalized names for enum. To prepare skein driver to mainline inclusion, we rename all enums to capitalized names. Signed-off-by: Anton Saraev <antonysaraev@gmail.com> Reviewed-by: Jake Edge <jake@lwn.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/skein/skeinBlockNo3F.c')
-rw-r--r--drivers/staging/skein/skeinBlockNo3F.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/skein/skeinBlockNo3F.c b/drivers/staging/skein/skeinBlockNo3F.c
index 55c6831..716b78e 100644
--- a/drivers/staging/skein/skeinBlockNo3F.c
+++ b/drivers/staging/skein/skeinBlockNo3F.c
@@ -34,7 +34,7 @@ void skein_256_process_block(struct skein_256_ctx *ctx, const u8 *blk_ptr,
tweak[0] |= (words[1] & 0xffffffffL) << 32;
tweak[1] |= words[2] & 0xffffffffL;
- threefish_set_key(&key, Threefish256, ctx->X, tweak);
+ threefish_set_key(&key, THREEFISH_256, ctx->X, tweak);
/* get input block in little-endian format */
Skein_Get64_LSB_First(w, blk_ptr, SKEIN_256_STATE_WORDS);
@@ -85,7 +85,7 @@ void skein_512_process_block(struct skein_512_ctx *ctx, const u8 *blk_ptr,
tweak[0] |= (words[1] & 0xffffffffL) << 32;
tweak[1] |= words[2] & 0xffffffffL;
- threefish_set_key(&key, Threefish512, ctx->X, tweak);
+ threefish_set_key(&key, THREEFISH_512, ctx->X, tweak);
/* get input block in little-endian format */
Skein_Get64_LSB_First(w, blk_ptr, SKEIN_512_STATE_WORDS);
@@ -140,7 +140,7 @@ void skein_1024_process_block(struct skein_1024_ctx *ctx, const u8 *blk_ptr,
tweak[0] |= (words[1] & 0xffffffffL) << 32;
tweak[1] |= words[2] & 0xffffffffL;
- threefish_set_key(&key, Threefish1024, ctx->X, tweak);
+ threefish_set_key(&key, THREEFISH_1024, ctx->X, tweak);
/* get input block in little-endian format */
Skein_Get64_LSB_First(w, blk_ptr, SKEIN1024_STATE_WORDS);
OpenPOWER on IntegriCloud