Home | History | Annotate | Download | only in whirl

Lines Matching full:whirlpool

14    WHIRLPOOL (using their new sbox) hash function by Tom St Denis 
19 #ifdef WHIRLPOOL
23 "whirlpool",
67 K[0][x] = md->whirlpool.state[x];
105 md->whirlpool.state[x] ^= T[0][x] ^ T[2][x];
131 zeromem(&md->whirlpool, sizeof(md->whirlpool));
142 HASH_PROCESS(whirlpool_process, whirlpool_compress, whirlpool, 64)
157 if (md->whirlpool.curlen >= sizeof(md->whirlpool.buf)) {
162 md->whirlpool.length += md->whirlpool.curlen * 8;
165 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0x80;
171 if (md->whirlpool.curlen > 32) {
172 while (md->whirlpool.curlen < 64) {
173 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0;
175 whirlpool_compress(md, md->whirlpool.buf);
176 md->whirlpool.curlen = 0;
180 while (md->whirlpool.curlen < 56) {
181 md->whirlpool.buf[md->whirlpool.curlen++] = (unsigned char)0;
185 STORE64H(md->whirlpool.length, md->whirlpool.buf+56);
186 whirlpool_compress(md, md->whirlpool.buf);
190 STORE64H(md->whirlpool.state[i], out+(8*i));