Lines Matching refs:bufferPos
285 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate() local
312 buffer[bufferPos++] |= (unsigned char)(b >> bufferRem); in PHP_WHIRLPOOLUpdate()
322 bufferBits = bufferPos = 0; in PHP_WHIRLPOOLUpdate()
324 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
340 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
354 bufferPos++; in PHP_WHIRLPOOLUpdate()
368 bufferBits = bufferPos = 0; in PHP_WHIRLPOOLUpdate()
370 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
374 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
383 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal() local
388 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); in PHP_WHIRLPOOLFinal()
389 bufferPos++; /* all remaining bits on the current unsigned char are set to zero. */ in PHP_WHIRLPOOLFinal()
393 if (bufferPos > WBLOCKBYTES - LENGTHBYTES) { in PHP_WHIRLPOOLFinal()
394 if (bufferPos < WBLOCKBYTES) { in PHP_WHIRLPOOLFinal()
395 memset(&buffer[bufferPos], 0, WBLOCKBYTES - bufferPos); in PHP_WHIRLPOOLFinal()
404 bufferPos = 0; in PHP_WHIRLPOOLFinal()
406 if (bufferPos < WBLOCKBYTES - LENGTHBYTES) { in PHP_WHIRLPOOLFinal()
407 memset(&buffer[bufferPos], 0, (WBLOCKBYTES - LENGTHBYTES) - bufferPos); in PHP_WHIRLPOOLFinal()
409 bufferPos = WBLOCKBYTES - LENGTHBYTES; in PHP_WHIRLPOOLFinal()