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)); }