One round of SHA-512. */
| 23 | |
| 24 | /** One round of SHA-512. */ |
| 25 | void inline Round(uint64_t a, uint64_t b, uint64_t c, uint64_t& d, uint64_t e, uint64_t f, uint64_t g, uint64_t& h, uint64_t k, uint64_t w) |
| 26 | { |
| 27 | uint64_t t1 = h + Sigma1(e) + Ch(e, f, g) + k + w; |
| 28 | uint64_t t2 = Sigma0(a) + Maj(a, b, c); |
| 29 | d += t1; |
| 30 | h = t1 + t2; |
| 31 | } |
| 32 | |
| 33 | /** Initialize SHA-256 state. */ |
| 34 | void inline Initialize(uint64_t* s) |