Move ghash functions to anon namespace