Lines Matching refs:length
137 context->passed += (uint64_t) context->length << 3; in TigerFinalize()
139 context->buffer[context->length++] = 0x1; in TigerFinalize()
140 if (context->length % 8) { in TigerFinalize()
141 memset(&context->buffer[context->length], 0, 8-context->length%8); in TigerFinalize()
142 context->length += 8-context->length%8; in TigerFinalize()
145 if (context->length > 56) { in TigerFinalize()
146 memset(&context->buffer[context->length], 0, 64 - context->length); in TigerFinalize()
150 memset(&context->buffer[context->length], 0, 56 - context->length); in TigerFinalize()
196 if (context->length + len < 64) { in PHP_TIGERUpdate()
197 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate()
198 context->length += len; in PHP_TIGERUpdate()
200 size_t i = 0, r = (context->length + len) % 64; in PHP_TIGERUpdate()
202 if (context->length) { in PHP_TIGERUpdate()
203 i = 64 - context->length; in PHP_TIGERUpdate()
204 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate()
217 context->length = r; in PHP_TIGERUpdate()
248 && ctx->length < sizeof(ctx->buffer)) { in php_tiger_unserialize()