Searched refs:byte_index (Results 1 – 3 of 3) sorted by relevance
135 if (md->sha3.byte_index) { in sha3_process()136 l = MIN(block_size - md->sha3.byte_index, inlen); in sha3_process()137 memcpy(md->sha3.sb + md->sha3.byte_index, in, l); in sha3_process()140 md->sha3.byte_index += l; in sha3_process()141 if (md->sha3.byte_index == block_size) { in sha3_process()144 md->sha3.byte_index = 0; in sha3_process()159 memcpy(md->sha3.sb + md->sha3.byte_index, in, inlen); in sha3_process()160 md->sha3.byte_index += inlen; in sha3_process()194 buf[md->sha3.byte_index++] = 0x06; in sha3_done()195 memset(buf + md->sha3.byte_index, 0, block_size - md->sha3.byte_index); in sha3_done()[all …]
202 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 …]
10 …unsigned short byte_index; /* 0..7--the next byte after the set one (starts from 0; 0--none a… member