One round of SHA-1. */
| 16 | { |
| 17 | /** One round of SHA-1. */ |
| 18 | void inline Round(uint32_t a, uint32_t& b, uint32_t c, uint32_t d, uint32_t& e, uint32_t f, uint32_t k, uint32_t w) |
| 19 | { |
| 20 | e += ((a << 5) | (a >> 27)) + f + k + w; |
| 21 | b = (b << 30) | (b >> 2); |
| 22 | } |
| 23 | |
| 24 | uint32_t inline f1(uint32_t b, uint32_t c, uint32_t d) { return d ^ (b & (c ^ d)); } |
| 25 | uint32_t inline f2(uint32_t b, uint32_t c, uint32_t d) { return b ^ c ^ d; } |