Runnig RSA with Java functions