crypto: hash - Simplify the ahash_finup implementation