Lines Matching refs:bitsInQueue
33 state->bitsInQueue = 0; in InitSponge()
77 state->bitsInQueue = 0; in AbsorbQueue()
86 if ((state->bitsInQueue % 8) != 0) in Absorb()
93 … if ((state->bitsInQueue == 0) && (databitlen >= state->rate) && (i <= (databitlen-state->rate))) { in Absorb()
174 if (partialBlock+state->bitsInQueue > state->rate) in Absorb()
175 partialBlock = state->rate-state->bitsInQueue; in Absorb()
178 memcpy(state->dataQueue+state->bitsInQueue/8, data+i/8, partialBlock/8); in Absorb()
179 state->bitsInQueue += partialBlock; in Absorb()
181 if (state->bitsInQueue == state->rate) in Absorb()
185 state->dataQueue[state->bitsInQueue/8] = data[i/8] & mask; in Absorb()
186 state->bitsInQueue += partialByte; in Absorb()
197 if (state->bitsInQueue + 1 == state->rate) { in PadAndSwitchToSqueezingPhase()
198 state->dataQueue[state->bitsInQueue/8 ] |= 1 << (state->bitsInQueue % 8); in PadAndSwitchToSqueezingPhase()
203 … memset(state->dataQueue + (state->bitsInQueue+7)/8, 0, state->rate/8 - (state->bitsInQueue+7)/8); in PadAndSwitchToSqueezingPhase()
204 state->dataQueue[state->bitsInQueue/8 ] |= 1 << (state->bitsInQueue % 8); in PadAndSwitchToSqueezingPhase()