Lines Matching defs:buf
32 uint32_t buf[4];
40 void byteReverse(uint8_t* buf, unsigned longs) {
43 static_cast<uint32_t>(static_cast<unsigned>(buf[3]) << 8 | buf[2])
45 (static_cast<unsigned>(buf[1]) << 8 | buf[0]);
46 *reinterpret_cast<uint32_t*>(buf) = temp;
47 buf += 4;
68 void MD5Transform(uint32_t buf[4], const uint32_t in[16]) {
71 a = buf[0];
72 b = buf[1];
73 c = buf[2];
74 d = buf[3];
144 buf[0] += a;
145 buf[1] += b;
146 buf[2] += c;
147 buf[3] += d;
160 ctx->buf[0] = 0x67452301;
161 ctx->buf[1] = 0xefcdab89;
162 ctx->buf[2] = 0x98badcfe;
163 ctx->buf[3] = 0x10325476;
174 const uint8_t* buf = reinterpret_cast<const uint8_t*>(data.data());
193 memcpy(p, buf, len);
196 memcpy(p, buf, t);
198 MD5Transform(ctx->buf, reinterpret_cast<uint32_t*>(ctx->in));
199 buf += t;
206 memcpy(ctx->in, buf, 64);
208 MD5Transform(ctx->buf, reinterpret_cast<uint32_t*>(ctx->in));
209 buf += 64;
215 memcpy(ctx->in, buf, len);
243 MD5Transform(ctx->buf, reinterpret_cast<uint32_t*>(ctx->in));
259 MD5Transform(ctx->buf, reinterpret_cast<uint32_t*>(ctx->in));
260 byteReverse(reinterpret_cast<uint8_t*>(ctx->buf), 4);
261 memcpy(digest->a, ctx->buf, 16);