Lines Matching refs:pms
112 _cups_md5_process(_cups_md5_state_t *pms, const unsigned char *data /*[64]*/)
115 a = pms->abcd[0], b = pms->abcd[1],
116 c = pms->abcd[2], d = pms->abcd[3];
264 pms->abcd[0] += a;
265 pms->abcd[1] += b;
266 pms->abcd[2] += c;
267 pms->abcd[3] += d;
271 _cupsMD5Init(_cups_md5_state_t *pms)
273 pms->count[0] = pms->count[1] = 0;
274 pms->abcd[0] = 0x67452301;
275 pms->abcd[1] = 0xefcdab89;
276 pms->abcd[2] = 0x98badcfe;
277 pms->abcd[3] = 0x10325476;
281 _cupsMD5Append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes)
285 int offset = (pms->count[0] >> 3) & 63;
292 pms->count[1] += (unsigned)nbytes >> 29;
293 pms->count[0] += nbits;
294 if (pms->count[0] < nbits)
295 pms->count[1]++;
301 memcpy(pms->buf + offset, p, (size_t)copy);
306 _cups_md5_process(pms, pms->buf);
311 _cups_md5_process(pms, p);
315 memcpy(pms->buf, p, (size_t)left);
319 _cupsMD5Finish(_cups_md5_state_t *pms, unsigned char digest[16])
332 data[i] = (unsigned char)(pms->count[i >> 2] >> ((i & 3) << 3));
334 _cupsMD5Append(pms, pad, (int)((55 - (pms->count[0] >> 3)) & 63) + 1);
336 _cupsMD5Append(pms, data, 8);
338 digest[i] = (unsigned char)(pms->abcd[i >> 2] >> ((i & 3) << 3));