use deprecated RSA generate API