Lines Matching refs:rmd128
14 @param rmd128.c
15 RMD128 Hash function
28 "rmd128",
98 aa = aaa = md->rmd128.state[0];
99 bb = bbb = md->rmd128.state[1];
100 cc = ccc = md->rmd128.state[2];
101 dd = ddd = md->rmd128.state[3];
248 ddd += cc + md->rmd128.state[1]; /* final result for MDbuf[0] */
249 md->rmd128.state[1] = md->rmd128.state[2] + dd + aaa;
250 md->rmd128.state[2] = md->rmd128.state[3] + aa + bbb;
251 md->rmd128.state[3] = md->rmd128.state[0] + bb + ccc;
252 md->rmd128.state[0] = ddd;
275 md->rmd128.state[0] = 0x67452301UL;
276 md->rmd128.state[1] = 0xefcdab89UL;
277 md->rmd128.state[2] = 0x98badcfeUL;
278 md->rmd128.state[3] = 0x10325476UL;
279 md->rmd128.curlen = 0;
280 md->rmd128.length = 0;
291 HASH_PROCESS(rmd128_process, rmd128_compress, rmd128, 64)
306 if (md->rmd128.curlen >= sizeof(md->rmd128.buf)) {
312 md->rmd128.length += md->rmd128.curlen * 8;
315 md->rmd128.buf[md->rmd128.curlen++] = (unsigned char)0x80;
321 if (md->rmd128.curlen > 56) {
322 while (md->rmd128.curlen < 64) {
323 md->rmd128.buf[md->rmd128.curlen++] = (unsigned char)0;
325 rmd128_compress(md, md->rmd128.buf);
326 md->rmd128.curlen = 0;
330 while (md->rmd128.curlen < 56) {
331 md->rmd128.buf[md->rmd128.curlen++] = (unsigned char)0;
335 STORE64L(md->rmd128.length, md->rmd128.buf+56);
336 rmd128_compress(md, md->rmd128.buf);
340 STORE32L(md->rmd128.state[i], out+(4*i));
408 /* $Source: /cvs/libtom/libtomcrypt/src/hashes/rmd128.c,v $ */