summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-11-16 22:55:10 +0000
committerjbj <devnull@localhost>2000-11-16 22:55:10 +0000
commit339e76efe045148c013b1e2e5d4a09f892dcdcda (patch)
tree51605fe60530824441efd755798139c362c7ca7c /rpmio
parent72887bda14d22d91807850aa8550a07953596129 (diff)
downloadrpm-339e76efe045148c013b1e2e5d4a09f892dcdcda.tar.gz
- md5 sums are little endian (no swap) so big endian needs the swap.
CVS patchset: 4285 CVS date: 2000/11/16 22:55:10
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/digest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/digest.c b/rpmio/digest.c
index f31987916..c3caece4a 100644
--- a/rpmio/digest.c
+++ b/rpmio/digest.c
@@ -407,7 +407,8 @@ rpmDigestInit(rpmDigestFlags flags)
ctx->digest[ 4 ] = 0xc3d2e1f0;
}
- ctx->doByteReverse = (IS_BIG_ENDIAN()) ? 0 : 1;
+ /* md5 sums are little endian (no swap) so big endian needs the swap. */
+ ctx->doByteReverse = (IS_BIG_ENDIAN()) ? 1 : 0;
if (flags & RPMDIGEST_NATIVE)
ctx->doByteReverse = 0;