diff options
author | Rob Landley <rob@landley.net> | 2021-06-02 08:37:48 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-06-02 08:37:48 -0500 |
commit | 19e0cbabb4bd32343789febf3729cc91ed5aab4f (patch) | |
tree | 72e8a25709a5b6e22f1e84ca5d30730cc54de048 | |
parent | a0cb955df0978d3a91c560ee66d4c6109acbefed (diff) | |
download | toybox-19e0cbabb4bd32343789febf3729cc91ed5aab4f.tar.gz |
Fix big endian in new sha2 commands.
-rw-r--r-- | toys/lsb/md5sum.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/toys/lsb/md5sum.c b/toys/lsb/md5sum.c index 8f8f92ab..ab4957d5 100644 --- a/toys/lsb/md5sum.c +++ b/toys/lsb/md5sum.c @@ -332,11 +332,6 @@ static void hash_update(char *data, unsigned int len, void (*transform)(void), if (j+i != chunksize) break; // Process a frame - if (IS_BIG_ENDIAN) { // TODO: test on big endian architecture - if (TT.hashmethod>=SHA384) - for (j=0; j<16; j++) TT.buffer.i64[j] = SWAP_LE64(TT.buffer.i64[j]); - else for (j=0; j<16; j++) TT.buffer.i32[j] = SWAP_LE32(TT.buffer.i32[j]); - } transform(); j=0; data += i; |