diff options
author | jbj <devnull@localhost> | 2000-11-16 22:55:10 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-11-16 22:55:10 +0000 |
commit | 339e76efe045148c013b1e2e5d4a09f892dcdcda (patch) | |
tree | 51605fe60530824441efd755798139c362c7ca7c /rpmio/digest.c | |
parent | 72887bda14d22d91807850aa8550a07953596129 (diff) | |
download | rpm-339e76efe045148c013b1e2e5d4a09f892dcdcda.tar.gz rpm-339e76efe045148c013b1e2e5d4a09f892dcdcda.tar.bz2 rpm-339e76efe045148c013b1e2e5d4a09f892dcdcda.zip |
- 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/digest.c')
-rw-r--r-- | rpmio/digest.c | 3 |
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; |