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