fixed crypto lib