Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/hashes/chc/
H A Dchc.c108 cipher_descriptor[cipher_idx]->ecb_encrypt(buf, md->chc.state, key); in chc_init()
111 md->chc.length = 0; in chc_init()
112 md->chc.curlen = 0; in chc_init()
113 zeromem(md->chc.buf, sizeof(md->chc.buf)); in chc_init()
133 …if ((err = cipher_descriptor[cipher_idx]->setup(md->chc.state, cipher_blocksize, 0, key)) != CRYPT… in s_chc_compress()
140 md->chc.state[x] ^= T[0][x] ^ T[1][x]; in s_chc_compress()
158 static HASH_PROCESS(ss_chc_process, s_chc_compress, chc, (unsigned long)cipher_blocksize)
206 if (md->chc.curlen >= sizeof(md->chc.buf)) { in chc_done()
211 md->chc.length += md->chc.curlen * 8; in chc_done()
214 md->chc.buf[md->chc.curlen++] = (unsigned char)0x80; in chc_done()
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_hash.h147 struct chc_state chc; member