Lines Matching refs:buf
46 byteSwap(isc_uint32_t *buf, unsigned words)
48 unsigned char *p = (unsigned char *)buf;
51 *buf++ = (isc_uint32_t)((unsigned)p[3] << 8 | p[2]) << 16 |
63 ctx->buf[0] = 0x67452301;
64 ctx->buf[1] = 0xefcdab89;
65 ctx->buf[2] = 0x98badcfe;
66 ctx->buf[3] = 0x10325476;
97 transform(isc_uint32_t buf[4], isc_uint32_t const in[16]) {
100 a = buf[0];
101 b = buf[1];
102 c = buf[2];
103 d = buf[3];
173 buf[0] += a;
174 buf[1] += b;
175 buf[2] += c;
176 buf[3] += d;
184 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) {
195 memmove((unsigned char *)ctx->in + 64 - t, buf, len);
199 memmove((unsigned char *)ctx->in + 64 - t, buf, t);
201 transform(ctx->buf, ctx->in);
202 buf += t;
207 memmove(ctx->in, buf, 64);
209 transform(ctx->buf, ctx->in);
210 buf += 64;
215 memmove(ctx->in, buf, len);
236 transform(ctx->buf, ctx->in);
246 transform(ctx->buf, ctx->in);
248 byteSwap(ctx->buf, 4);
249 memmove(digest, ctx->buf, 16);