Home
last modified time | relevance | path

Searched refs:whirlpool (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/hashes/whirl/
H A Dwhirl.c60 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()
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_hash.h150 struct whirlpool_state whirlpool; member