[review] hash_final(): pick better error code

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>