Home | History | Annotate | Download | only in hashes

Lines Matching refs:MD4

14    @param md4.c
18 #ifdef MD4
22 "md4",
51 /* F, G and H are basic MD4 functions. */
85 a = md->md4.state[0];
86 b = md->md4.state[1];
87 c = md->md4.state[2];
88 d = md->md4.state[3];
151 md->md4.state[0] = md->md4.state[0] + a;
152 md->md4.state[1] = md->md4.state[1] + b;
153 md->md4.state[2] = md->md4.state[2] + c;
154 md->md4.state[3] = md->md4.state[3] + d;
177 md->md4.state[0] = 0x67452301UL;
178 md->md4.state[1] = 0xefcdab89UL;
179 md->md4.state[2] = 0x98badcfeUL;
180 md->md4.state[3] = 0x10325476UL;
181 md->md4.length = 0;
182 md->md4.curlen = 0;
193 HASH_PROCESS(md4_process, md4_compress, md4, 64)
208 if (md->md4.curlen >= sizeof(md->md4.buf)) {
213 md->md4.length += md->md4.curlen * 8;
216 md->md4.buf[md->md4.curlen++] = (unsigned char)0x80;
222 if (md->md4.curlen > 56) {
223 while (md->md4.curlen < 64) {
224 md->md4.buf[md->md4.curlen++] = (unsigned char)0;
226 md4_compress(md, md->md4.buf);
227 md->md4.curlen = 0;
231 while (md->md4.curlen < 56) {
232 md->md4.buf[md->md4.curlen++] = (unsigned char)0;
236 STORE64L(md->md4.length, md->md4.buf+56);
237 md4_compress(md, md->md4.buf);
241 STORE32L(md->md4.state[i], out+(4*i));
305 /* $Source: /cvs/libtom/libtomcrypt/src/hashes/md4.c,v $ */