The name of the generichash function was wrong, so it was not possible to find it when loading the NIF.