Lines Matching refs:bufferPos
281 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate() local
308 buffer[bufferPos++] |= (unsigned char)(b >> bufferRem); in PHP_WHIRLPOOLUpdate()
318 bufferBits = bufferPos = 0; in PHP_WHIRLPOOLUpdate()
320 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
336 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
350 bufferPos++; in PHP_WHIRLPOOLUpdate()
364 bufferBits = bufferPos = 0; in PHP_WHIRLPOOLUpdate()
366 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
370 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
379 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal() local
384 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); in PHP_WHIRLPOOLFinal()
385 bufferPos++; /* all remaining bits on the current unsigned char are set to zero. */ in PHP_WHIRLPOOLFinal()
389 if (bufferPos > WBLOCKBYTES - LENGTHBYTES) { in PHP_WHIRLPOOLFinal()
390 if (bufferPos < WBLOCKBYTES) { in PHP_WHIRLPOOLFinal()
391 memset(&buffer[bufferPos], 0, WBLOCKBYTES - bufferPos); in PHP_WHIRLPOOLFinal()
400 bufferPos = 0; in PHP_WHIRLPOOLFinal()
402 if (bufferPos < WBLOCKBYTES - LENGTHBYTES) { in PHP_WHIRLPOOLFinal()
403 memset(&buffer[bufferPos], 0, (WBLOCKBYTES - LENGTHBYTES) - bufferPos); in PHP_WHIRLPOOLFinal()
405 bufferPos = WBLOCKBYTES - LENGTHBYTES; in PHP_WHIRLPOOLFinal()