Lines Matching refs:dataByteLen
150 int SpongeAbsorb(SpongeInstance *instance, const unsigned char *data, size_t dataByteLen)
162 while(i < dataByteLen) {
163 if ((instance->byteIOIndex == 0) && (dataByteLen-i >= rateInBytes)) {
168 … j = SnP_FastLoop_Absorb(instance->state, rateInBytes/(SnP_width/200), curData, dataByteLen - i);
174 for(j=dataByteLen-i; j>=rateInBytes; j-=rateInBytes) {
182 i = dataByteLen - j;
189 if (dataByteLen-i > rateInBytes-instance->byteIOIndex)
192 partialBlock = (unsigned int)(dataByteLen - i);
254 int SpongeSqueeze(SpongeInstance *instance, unsigned char *data, size_t dataByteLen)
266 while(i < dataByteLen) {
267 if ((instance->byteIOIndex == rateInBytes) && (dataByteLen-i >= rateInBytes)) {
268 for(j=dataByteLen-i; j>=rateInBytes; j-=rateInBytes) {
276 i = dataByteLen - j;
284 if (dataByteLen-i > rateInBytes-instance->byteIOIndex)
287 partialBlock = (unsigned int)(dataByteLen - i);