Lines Matching refs:rmd160
14 @file rmd160.c
15 RMD160 hash function
28 "rmd160",
118 aa = aaa = md->rmd160.state[0];
119 bb = bbb = md->rmd160.state[1];
120 cc = ccc = md->rmd160.state[2];
121 dd = ddd = md->rmd160.state[3];
122 ee = eee = md->rmd160.state[4];
305 ddd += cc + md->rmd160.state[1]; /* final result for md->rmd160.state[0] */
306 md->rmd160.state[1] = md->rmd160.state[2] + dd + eee;
307 md->rmd160.state[2] = md->rmd160.state[3] + ee + aaa;
308 md->rmd160.state[3] = md->rmd160.state[4] + aa + bbb;
309 md->rmd160.state[4] = md->rmd160.state[0] + bb + ccc;
310 md->rmd160.state[0] = ddd;
333 md->rmd160.state[0] = 0x67452301UL;
334 md->rmd160.state[1] = 0xefcdab89UL;
335 md->rmd160.state[2] = 0x98badcfeUL;
336 md->rmd160.state[3] = 0x10325476UL;
337 md->rmd160.state[4] = 0xc3d2e1f0UL;
338 md->rmd160.curlen = 0;
339 md->rmd160.length = 0;
350 HASH_PROCESS(rmd160_process, rmd160_compress, rmd160, 64)
365 if (md->rmd160.curlen >= sizeof(md->rmd160.buf)) {
371 md->rmd160.length += md->rmd160.curlen * 8;
374 md->rmd160.buf[md->rmd160.curlen++] = (unsigned char)0x80;
380 if (md->rmd160.curlen > 56) {
381 while (md->rmd160.curlen < 64) {
382 md->rmd160.buf[md->rmd160.curlen++] = (unsigned char)0;
384 rmd160_compress(md, md->rmd160.buf);
385 md->rmd160.curlen = 0;
389 while (md->rmd160.curlen < 56) {
390 md->rmd160.buf[md->rmd160.curlen++] = (unsigned char)0;
394 STORE64L(md->rmd160.length, md->rmd160.buf+56);
395 rmd160_compress(md, md->rmd160.buf);
399 STORE32L(md->rmd160.state[i], out+(4*i));
467 /* $Source: /cvs/libtom/libtomcrypt/src/hashes/rmd160.c,v $ */