Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120607
b: refs/heads/master
c: 31a61bf
h: refs/heads/master
i:
  120605: e3c9d79
  120603: 44c2108
  120599: 74f3503
  120591: a3e8b1c
  120575: 5667568
v: v3
  • Loading branch information
Julia Lawall authored and Herbert Xu committed Dec 25, 2008
1 parent f910829 commit 7e748d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0426c166424ea6d3d0412f47879c8ba268f874c4
refs/heads/master: 31a61bfc6e415fbd871317cbee7b8a4158d8ac5b
4 changes: 2 additions & 2 deletions trunk/crypto/md4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 7e748d3

Please sign in to comment.