But you can do 3 on iOS, as Safari is a WebKit browser. But for when that's not enough, you can do 1.
Don't want to implement RSA in javascript? Create a 'hybrid' webOS app using a C lib, but 'native' HTML UI.
The 'native' Mojo or Enyo frameworks may not be as rich as UIKit, but the web UI ecosystem you can leverage to extend them is massive, and the source for both is all there for you to read and extend.