RSA.GenerateKeys function not work in Android and IOS

RSA.GenerateKeys takes a lot of computing time and on Android and iOS, the application seems to be unresponsive, so the OS asks us to close it.