Lines Matching refs:rmd256
14 @param rmd256.c
15 RMD256 Hash function
22 "rmd256",
92 aa = md->rmd256.state[0];
93 bb = md->rmd256.state[1];
94 cc = md->rmd256.state[2];
95 dd = md->rmd256.state[3];
96 aaa = md->rmd256.state[4];
97 bbb = md->rmd256.state[5];
98 ccc = md->rmd256.state[6];
99 ddd = md->rmd256.state[7];
254 md->rmd256.state[0] += aa;
255 md->rmd256.state[1] += bb;
256 md->rmd256.state[2] += cc;
257 md->rmd256.state[3] += dd;
258 md->rmd256.state[4] += aaa;
259 md->rmd256.state[5] += bbb;
260 md->rmd256.state[6] += ccc;
261 md->rmd256.state[7] += ddd;
284 md->rmd256.state[0] = 0x67452301UL;
285 md->rmd256.state[1] = 0xefcdab89UL;
286 md->rmd256.state[2] = 0x98badcfeUL;
287 md->rmd256.state[3] = 0x10325476UL;
288 md->rmd256.state[4] = 0x76543210UL;
289 md->rmd256.state[5] = 0xfedcba98UL;
290 md->rmd256.state[6] = 0x89abcdefUL;
291 md->rmd256.state[7] = 0x01234567UL;
292 md->rmd256.curlen = 0;
293 md->rmd256.length = 0;
304 HASH_PROCESS(rmd256_process, rmd256_compress, rmd256, 64)
319 if (md->rmd256.curlen >= sizeof(md->rmd256.buf)) {
325 md->rmd256.length += md->rmd256.curlen * 8;
328 md->rmd256.buf[md->rmd256.curlen++] = (unsigned char)0x80;
334 if (md->rmd256.curlen > 56) {
335 while (md->rmd256.curlen < 64) {
336 md->rmd256.buf[md->rmd256.curlen++] = (unsigned char)0;
338 rmd256_compress(md, md->rmd256.buf);
339 md->rmd256.curlen = 0;
343 while (md->rmd256.curlen < 56) {
344 md->rmd256.buf[md->rmd256.curlen++] = (unsigned char)0;
348 STORE64L(md->rmd256.length, md->rmd256.buf+56);
349 rmd256_compress(md, md->rmd256.buf);
353 STORE32L(md->rmd256.state[i], out+(4*i));