Home
last modified time | relevance | path

Searched refs:bufferRem (Results 1 – 1 of 1) sorted by relevance

/PHP-7.4/ext/hash/
H A Dhash_whirlpool.c278 int bufferRem = context->buffer.bits & 7; /* occupied bits on buffer[bufferPos]. */ in PHP_WHIRLPOOLUpdate() local
310 buffer[bufferPos++] |= (unsigned char)(b >> bufferRem); in PHP_WHIRLPOOLUpdate()
311 bufferBits += 8 - bufferRem; /* bufferBits = 8*bufferPos; */ in PHP_WHIRLPOOLUpdate()
322 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
323 bufferBits += bufferRem; in PHP_WHIRLPOOLUpdate()
338 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
342 if (bufferRem + sourceBits < 8) { in PHP_WHIRLPOOLUpdate()
353 bufferBits += 8 - bufferRem; /* bufferBits = 8*bufferPos; */ in PHP_WHIRLPOOLUpdate()
354 sourceBits -= 8 - bufferRem; in PHP_WHIRLPOOLUpdate()
368 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()

Completed in 5 milliseconds