Lines Matching refs:pms

132 md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)  in md5_process()  argument
135 a = pms->abcd[0], b = pms->abcd[1], in md5_process()
136 c = pms->abcd[2], d = pms->abcd[3]; in md5_process()
306 pms->abcd[0] += a; in md5_process()
307 pms->abcd[1] += b; in md5_process()
308 pms->abcd[2] += c; in md5_process()
309 pms->abcd[3] += d; in md5_process()
313 md5_init(md5_state_t *pms) in md5_init() argument
315 pms->count[0] = pms->count[1] = 0; in md5_init()
316 pms->abcd[0] = 0x67452301; in md5_init()
317 pms->abcd[1] = /*0xefcdab89*/ T_MASK ^ 0x10325476; in md5_init()
318 pms->abcd[2] = /*0x98badcfe*/ T_MASK ^ 0x67452301; in md5_init()
319 pms->abcd[3] = 0x10325476; in md5_init()
323 md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes) in md5_append() argument
327 int offset = (pms->count[0] >> 3) & 63; in md5_append()
334 pms->count[1] += nbytes >> 29; in md5_append()
335 pms->count[0] += nbits; in md5_append()
336 if (pms->count[0] < nbits) in md5_append()
337 pms->count[1]++; in md5_append()
343 memcpy(pms->buf + offset, p, copy); in md5_append()
348 md5_process(pms, pms->buf); in md5_append()
353 md5_process(pms, p); in md5_append()
357 memcpy(pms->buf, p, left); in md5_append()
361 md5_finish(md5_state_t *pms, md5_byte_t digest[16]) in md5_finish() argument
374 data[i] = (md5_byte_t)(pms->count[i >> 2] >> ((i & 3) << 3)); in md5_finish()
376 md5_append(pms, pad, ((55 - (pms->count[0] >> 3)) & 63) + 1); in md5_finish()
378 md5_append(pms, data, 8); in md5_finish()
380 digest[i] = (md5_byte_t)(pms->abcd[i >> 2] >> ((i & 3) << 3)); in md5_finish()