From 7e748d3d4e212a1ef5b785f5273a6cbc11ca76ee Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Thu, 13 Nov 2008 21:19:04 +0800 Subject: [PATCH] --- yaml --- r: 120607 b: refs/heads/master c: 31a61bfc6e415fbd871317cbee7b8a4158d8ac5b h: refs/heads/master i: 120605: e3c9d79e340633228579ca9e0dae79fef2c759ae 120603: 44c2108632ac4812c546a0b589d77420eca3730d 120599: 74f350335ac06dbb5487029fa47fd8d445d05479 120591: a3e8b1ce233e23b444f25b4ecb5ec2ae9ed083ce 120575: 5667568d4378dab5bb1cede08a00267f09efa6a9 v: v3 --- [refs] | 2 +- trunk/crypto/md4.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7d4d764979d4..5434f57f1932 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0426c166424ea6d3d0412f47879c8ba268f874c4 +refs/heads/master: 31a61bfc6e415fbd871317cbee7b8a4158d8ac5b diff --git a/trunk/crypto/md4.c b/trunk/crypto/md4.c index 3c19aa0750fd..a143c4aaa398 100644 --- a/trunk/crypto/md4.c +++ b/trunk/crypto/md4.c @@ -148,7 +148,7 @@ static void md4_transform(u32 *hash, u32 const *in) static inline void md4_transform_helper(struct md4_ctx *ctx) { - le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(u32)); + le32_to_cpu_array(ctx->block, ARRAY_SIZE(ctx->block)); md4_transform(ctx->hash, ctx->block); } @@ -214,7 +214,7 @@ static void md4_final(struct crypto_tfm *tfm, u8 *out) le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - sizeof(u64)) / sizeof(u32)); md4_transform(mctx->hash, mctx->block); - cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(u32)); + cpu_to_le32_array(mctx->hash, ARRAY_SIZE(mctx->hash)); memcpy(out, mctx->hash, sizeof(mctx->hash)); memset(mctx, 0, sizeof(*mctx)); }