PolyPassHash implementation in native C