One round of SHA-256. */
| 74 | |
| 75 | /** One round of SHA-256. */ |
| 76 | void inline Round(uint32_t a, uint32_t b, uint32_t c, uint32_t& d, uint32_t e, uint32_t f, uint32_t g, uint32_t& h, uint32_t k) |
| 77 | { |
| 78 | uint32_t t1 = h + Sigma1(e) + Ch(e, f, g) + k; |
| 79 | uint32_t t2 = Sigma0(a) + Maj(a, b, c); |
| 80 | d += t1; |
| 81 | h = t1 + t2; |
| 82 | } |
| 83 | |
| 84 | /** Initialize SHA-256 state. */ |
| 85 | void inline Initialize(uint32_t* s) |