Add convenience functions and macros for asymmetric key generation