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 partialBlock = (unsigned int)(dataByteLen - i);
253 int SpongeSqueeze(SpongeInstance *instance, unsigned char *data, size_t dataByteLen)
265 while(i < dataByteLen) {
266 if ((instance->byteIOIndex == rateInBytes) && (dataByteLen >= (i + rateInBytes))) {
267 for(j=dataByteLen-i; j>=rateInBytes; j-=rateInBytes) {
275 i = dataByteLen - j;
283 partialBlock = (unsigned int)(dataByteLen - i);