diff options
author | Mike Frysinger | 2006-03-28 02:35:56 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-03-28 02:35:56 +0000 |
commit | f8855139402a8752b9f9f5425cebe23e88e94c2a (patch) | |
tree | c772f878f5a0b613fe65d48cb8dda0225d250d5e /libbb/sha1.c | |
parent | 87848d91c7b3dba9379237ba0bad31239f16e07a (diff) | |
download | busybox-f8855139402a8752b9f9f5425cebe23e88e94c2a.zip busybox-f8855139402a8752b9f9f5425cebe23e88e94c2a.tar.gz |
just whitespace fixes
Diffstat (limited to 'libbb/sha1.c')
-rw-r--r-- | libbb/sha1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libbb/sha1.c b/libbb/sha1.c index f0d952f..128d4b9 100644 --- a/libbb/sha1.c +++ b/libbb/sha1.c @@ -147,13 +147,13 @@ void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) void *sha1_end(void *resbuf, sha1_ctx_t *ctx) { /* SHA1 Final padding and digest calculation */ - #if BB_BIG_ENDIAN - static uint32_t mask[4] = { 0x00000000, 0xff000000, 0xffff0000, 0xffffff00 }; - static uint32_t bits[4] = { 0x80000000, 0x00800000, 0x00008000, 0x00000080 }; - #else - static uint32_t mask[4] = { 0x00000000, 0x000000ff, 0x0000ffff, 0x00ffffff }; - static uint32_t bits[4] = { 0x00000080, 0x00008000, 0x00800000, 0x80000000 }; - #endif /* __BYTE_ORDER */ +#if BB_BIG_ENDIAN + static uint32_t mask[4] = { 0x00000000, 0xff000000, 0xffff0000, 0xffffff00 }; + static uint32_t bits[4] = { 0x80000000, 0x00800000, 0x00008000, 0x00000080 }; +#else + static uint32_t mask[4] = { 0x00000000, 0x000000ff, 0x0000ffff, 0x00ffffff }; + static uint32_t bits[4] = { 0x00000080, 0x00008000, 0x00800000, 0x80000000 }; +#endif /* __BYTE_ORDER */ uint8_t *hval = resbuf; uint32_t i, cnt = (uint32_t) (ctx->count[0] & SHA1_MASK); |