Lines Matching refs:whirlpool
60 K[0][x] = md->whirlpool.state[x]; in ss_whirlpool_compress()
98 md->whirlpool.state[x] ^= T[0][x] ^ T[2][x]; in ss_whirlpool_compress()
124 zeromem(&md->whirlpool, sizeof(md->whirlpool)); in whirlpool_init()
135 HASH_PROCESS(whirlpool_process, s_whirlpool_compress, whirlpool, 64)
150 if (md->whirlpool.curlen >= sizeof(md->whirlpool.buf)) { in whirlpool_done()
155 md->whirlpool.length += md->whirlpool.curlen * 8; in whirlpool_done()
158 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0x80; in whirlpool_done()
164 if (md->whirlpool.curlen > 32) { in whirlpool_done()
165 while (md->whirlpool.curlen < 64) { in whirlpool_done()
166 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0; in whirlpool_done()
168 s_whirlpool_compress(md, md->whirlpool.buf); in whirlpool_done()
169 md->whirlpool.curlen = 0; in whirlpool_done()
173 while (md->whirlpool.curlen < 56) { in whirlpool_done()
174 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0; in whirlpool_done()
178 STORE64H(md->whirlpool.length, md->whirlpool.buf+56); in whirlpool_done()
179 s_whirlpool_compress(md, md->whirlpool.buf); in whirlpool_done()
183 STORE64H(md->whirlpool.state[i], out+(8*i)); in whirlpool_done()