diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-03 18:36:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-03 18:36:26 +0300 |
commit | fb2b5feb7a2cfff38168316135e05d7c338c34c8 (patch) | |
tree | 1eac4e307b35f174151e79889dbdcf2685c23339 /src/utils/sha256.cpp | |
parent | 3e49f45ae0d8971cb3870f388d55ea67ff127400 (diff) | |
download | mv-fb2b5feb7a2cfff38168316135e05d7c338c34c8.tar.gz mv-fb2b5feb7a2cfff38168316135e05d7c338c34c8.tar.bz2 mv-fb2b5feb7a2cfff38168316135e05d7c338c34c8.tar.xz mv-fb2b5feb7a2cfff38168316135e05d7c338c34c8.zip |
Fix code style in sha256.cpp
Diffstat (limited to 'src/utils/sha256.cpp')
-rw-r--r-- | src/utils/sha256.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index 6bad8c5e4..dab01a1ea 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -202,7 +202,8 @@ void SHA256Transform(SHA256Context *ctx, wv[j] = ctx->h[j]; for (j = 0; j < 64; j++) { - uint32_t t1 = wv[7] + SHA256_F2(wv[4]) + CH(wv[4], wv[5], wv[6]) + sha256_k[j] + w[j]; + uint32_t t1 = wv[7] + SHA256_F2(wv[4]) + CH(wv[4], + wv[5], wv[6]) + sha256_k[j] + w[j]; uint32_t t2 = SHA256_F1(wv[0]) + MAJ(wv[0], wv[1], wv[2]); wv[7] = wv[6]; wv[6] = wv[5]; @@ -260,7 +261,8 @@ void SHA256Update(SHA256Context *ctx, void SHA256Final(SHA256Context *ctx, unsigned char *digest) { - unsigned int block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) < (ctx->len % SHA256_BLOCK_SIZE))); + unsigned int block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) + < (ctx->len % SHA256_BLOCK_SIZE))); unsigned int len_b = (ctx->tot_len + ctx->len) << 3; unsigned int pm_len = block_nb << 6; memset(ctx->block + ctx->len, 0, pm_len - ctx->len); |