diff --git a/lib/digest/md5.c b/lib/digest/md5.c index f3bd580..533343c 100644 --- a/lib/digest/md5.c +++ b/lib/digest/md5.c @@ -117,10 +117,8 @@ md5_compute(md5_ctx *ctx, const uint8_t *block) int i; memcpy(w, block, 64); -#if WORDS_BIGENDIAN for (i = 0; i < 16; ++i) w[i] = le32toh(w[i]); -#endif a = ctx->h[0]; b = ctx->h[1]; c = ctx->h[2]; diff --git a/lib/digest/sha1.c b/lib/digest/sha1.c index 6654ed5..5eafd25 100644 --- a/lib/digest/sha1.c +++ b/lib/digest/sha1.c @@ -85,10 +85,8 @@ sha1_compute(sha1_ctx *ctx, const uint8_t *block) uint32_t w[80], a, b, c, d, e; memcpy(w, block, 64); -#if !WORDS_BIGENDIAN for (int i = 0; i < 16; ++i) w[i] = be32toh(w[i]); -#endif for (int i = 16; i < 80; ++i) { w[i] = w[i-3] ^ w[i-8] ^ w[i-14] ^ w[i-16]; w[i] = rol(w[i], 1);