20 e += ((
a << 5) | (
a >> 27)) +
f +
k +
w;
21 b = (b << 30) | (b >> 2);
48 uint32_t a = s[0], b = s[1],
c = s[2], d = s[3],
e = s[4];
49 uint32_t w0,
w1,
w2,
w3,
w4,
w5,
w6,
w7,
w8,
w9,
w10,
w11,
w12,
w13,
w14,
w15;
156 const unsigned char* end = data + len;
163 sha1::Transform(
s,
buf);
166 while (end - data >= 64) {
168 sha1::Transform(
s, data);
182 static const unsigned char pad[64] = {0x80};
CSHA1 & Write(const unsigned char *data, size_t len)
void Finalize(unsigned char hash[OUTPUT_SIZE])
void WriteBE32(B *ptr, uint32_t x)
void WriteBE64(B *ptr, uint64_t x)
uint32_t ReadBE32(const B *ptr)
#define Round(a, b, c, d, e, f, g, h, k, w)
Internal SHA-1 implementation.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.