Usage of a new crypt library; outsourcing of functions