Naehrig, Niederhagen and Schwabe's pairings code, massaged into a shared library.