X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=crypto%2Fmd4.c;fp=crypto%2Fmd4.c;h=a143c4aaa3986385f7f50ea4df5f336f8c8eba57;hb=31a61bfc6e415fbd871317cbee7b8a4158d8ac5b;hp=3c19aa0750fdd2f19f135aec5f958a8b55c18d5a;hpb=0426c166424ea6d3d0412f47879c8ba268f874c4;p=safe%2Fjmp%2Flinux-2.6 diff --git a/crypto/md4.c b/crypto/md4.c index 3c19aa0..a143c4a 100644 --- a/crypto/md4.c +++ b/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)); }