Crypto keys: implement key expiration, keys loading, parameter setting, initial key setup, and error reporting.