core: hash: Add visibility attributes