Lines Matching refs:buffer

48     unsigned char *buffer = context->buffer.data;  in WhirlpoolTransform()  local
53 for (i = 0; i < 8; i++, buffer += 8) { in WhirlpoolTransform()
55 (((php_hash_uint64)buffer[0] ) << 56) ^ in WhirlpoolTransform()
56 (((php_hash_uint64)buffer[1] & 0xffL) << 48) ^ in WhirlpoolTransform()
57 (((php_hash_uint64)buffer[2] & 0xffL) << 40) ^ in WhirlpoolTransform()
58 (((php_hash_uint64)buffer[3] & 0xffL) << 32) ^ in WhirlpoolTransform()
59 (((php_hash_uint64)buffer[4] & 0xffL) << 24) ^ in WhirlpoolTransform()
60 (((php_hash_uint64)buffer[5] & 0xffL) << 16) ^ in WhirlpoolTransform()
61 (((php_hash_uint64)buffer[6] & 0xffL) << 8) ^ in WhirlpoolTransform()
62 (((php_hash_uint64)buffer[7] & 0xffL) ); in WhirlpoolTransform()
280 int bufferRem = context->buffer.bits & 7; /* occupied bits on buffer[bufferPos]. */ in PHP_WHIRLPOOLUpdate()
282 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLUpdate() local
284 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLUpdate()
285 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate()
312 buffer[bufferPos++] |= (unsigned char)(b >> bufferRem); in PHP_WHIRLPOOLUpdate()
324 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
340 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
370 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
373 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
374 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
380 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLFinal() local
382 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLFinal()
383 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal()
388 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); in PHP_WHIRLPOOLFinal()
395 memset(&buffer[bufferPos], 0, WBLOCKBYTES - bufferPos); in PHP_WHIRLPOOLFinal()
407 memset(&buffer[bufferPos], 0, (WBLOCKBYTES - LENGTHBYTES) - bufferPos); in PHP_WHIRLPOOLFinal()
413 memcpy(&buffer[WBLOCKBYTES - LENGTHBYTES], bitLength, LENGTHBYTES); in PHP_WHIRLPOOLFinal()