Add functionality to crypto lib