The output size is now passed by parameter to the finalize function instead of being stored in the context. that simplify quite a bit the passing of this parameter