Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dsha3.c202 md->sha3.s[md->sha3.word_index] ^= (md->sha3.saved ^ (pad << (md->sha3.byte_index * 8))); in ss_done()
263 unsigned old_tail = (8 - md->sha3.byte_index) & 7; in sha3_process()
274 while (inlen--) md->sha3.saved |= (ulong64) (*(in++)) << ((md->sha3.byte_index++) * 8); in sha3_process()
280 while (old_tail--) md->sha3.saved |= (ulong64) (*(in++)) << ((md->sha3.byte_index++) * 8); in sha3_process()
283 md->sha3.byte_index = 0; in sha3_process()
307 md->sha3.saved |= (ulong64) (*(in++)) << ((md->sha3.byte_index++) * 8); in sha3_process()
339 …md->sha3.s[md->sha3.word_index] ^= (md->sha3.saved ^ (CONST64(0x1F) << (md->sha3.byte_index * 8))); in sha3_shake_done()
346 md->sha3.byte_index = 0; in sha3_shake_done()
351 if(md->sha3.byte_index >= (SHA3_KECCAK_SPONGE_WORDS - md->sha3.capacity_words) * 8) { in sha3_shake_done()
357 md->sha3.byte_index = 0; in sha3_shake_done()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_hash.h10 …unsigned short byte_index; /* 0..7--the next byte after the set one (starts from 0; 0--none a… member

Completed in 4 milliseconds