Lines Matching refs:buffer

44     unsigned char *buffer = context->buffer.data;  in WhirlpoolTransform()  local
49 for (i = 0; i < 8; i++, buffer += 8) { in WhirlpoolTransform()
51 (((uint64_t)buffer[0] ) << 56) ^ in WhirlpoolTransform()
52 (((uint64_t)buffer[1] & 0xffL) << 48) ^ in WhirlpoolTransform()
53 (((uint64_t)buffer[2] & 0xffL) << 40) ^ in WhirlpoolTransform()
54 (((uint64_t)buffer[3] & 0xffL) << 32) ^ in WhirlpoolTransform()
55 (((uint64_t)buffer[4] & 0xffL) << 24) ^ in WhirlpoolTransform()
56 (((uint64_t)buffer[5] & 0xffL) << 16) ^ in WhirlpoolTransform()
57 (((uint64_t)buffer[6] & 0xffL) << 8) ^ in WhirlpoolTransform()
58 (((uint64_t)buffer[7] & 0xffL) ); in WhirlpoolTransform()
276 int bufferRem = context->buffer.bits & 7; /* occupied bits on buffer[bufferPos]. */ in PHP_WHIRLPOOLUpdate()
278 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLUpdate() local
280 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLUpdate()
281 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate()
308 buffer[bufferPos++] |= (unsigned char)(b >> bufferRem); in PHP_WHIRLPOOLUpdate()
320 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
336 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
366 buffer[bufferPos] = (unsigned char) (b << (8 - bufferRem)); in PHP_WHIRLPOOLUpdate()
369 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
370 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
376 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLFinal() local
378 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLFinal()
379 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal()
384 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); in PHP_WHIRLPOOLFinal()
391 memset(&buffer[bufferPos], 0, WBLOCKBYTES - bufferPos); in PHP_WHIRLPOOLFinal()
403 memset(&buffer[bufferPos], 0, (WBLOCKBYTES - LENGTHBYTES) - bufferPos); in PHP_WHIRLPOOLFinal()
409 memcpy(&buffer[WBLOCKBYTES - LENGTHBYTES], bitLength, LENGTHBYTES); in PHP_WHIRLPOOLFinal()
438 && ctx->buffer.pos >= 0 in php_whirlpool_unserialize()
439 && ctx->buffer.pos < (int) sizeof(ctx->buffer.data) in php_whirlpool_unserialize()
440 && ctx->buffer.bits >= ctx->buffer.pos * 8 in php_whirlpool_unserialize()
441 && ctx->buffer.bits < ctx->buffer.pos * 8 + 8) { in php_whirlpool_unserialize()