aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-06-02 08:37:48 -0500
committerRob Landley <rob@landley.net>2021-06-02 08:37:48 -0500
commit19e0cbabb4bd32343789febf3729cc91ed5aab4f (patch)
tree72e8a25709a5b6e22f1e84ca5d30730cc54de048 /toys
parenta0cb955df0978d3a91c560ee66d4c6109acbefed (diff)
downloadtoybox-19e0cbabb4bd32343789febf3729cc91ed5aab4f.tar.gz
Fix big endian in new sha2 commands.
Diffstat (limited to 'toys')
-rw-r--r--toys/lsb/md5sum.c5
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;