The command-line tool for OpenSSL just makes use of the OpenSSL library. As it is written in C, you can use it natively in your iOS project. It isn't included with iOS, but you can download the source code from here and compile it yourself, as it is open source.
Using the library natively will be much faster, and much more reliable.