diff options
author | lloyd <[email protected]> | 2011-03-21 12:10:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-03-21 12:10:05 +0000 |
commit | 7a9155c2882be47ece556071ce005daf5d64758c (patch) | |
tree | b50d9caa4471b016b9529b2771913dedb05e9548 /src/hash | |
parent | 70f820425d3b7aad5772e9bcb7ff1de15ef2793e (diff) |
Indent
Diffstat (limited to 'src/hash')
-rw-r--r-- | src/hash/sha2_64/sha2_64.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hash/sha2_64/sha2_64.cpp b/src/hash/sha2_64/sha2_64.cpp index 1cfcab4cc..b58e042d3 100644 --- a/src/hash/sha2_64/sha2_64.cpp +++ b/src/hash/sha2_64/sha2_64.cpp @@ -36,12 +36,12 @@ inline u64bit sigma(u64bit X, u32bit rot1, u32bit rot2, u32bit shift) * Use a macro as many compilers won't inline a function this big, * even though it is much faster if inlined. */ -#define SHA2_64_F(A, B, C, D, E, F, G, H, M1, M2, M3, M4, magic) \ - do { \ - H += magic + rho(E, 14, 18, 41) + ((E & F) ^ (~E & G)) + M1; \ - D += H; \ - H += rho(A, 28, 34, 39) + ((A & B) | ((A | B) & C)); \ - M1 += sigma(M2, 19, 61, 6) + M3 + sigma(M4, 1, 8, 7); \ +#define SHA2_64_F(A, B, C, D, E, F, G, H, M1, M2, M3, M4, magic) \ + do { \ + H += magic + rho(E, 14, 18, 41) + ((E & F) ^ (~E & G)) + M1; \ + D += H; \ + H += rho(A, 28, 34, 39) + ((A & B) | ((A | B) & C)); \ + M1 += sigma(M2, 19, 61, 6) + M3 + sigma(M4, 1, 8, 7); \ } while(0); /* |