How do I implement BouncyCastle RSA encryption for a BlackBerry application?
相关问题
- How to make background of BrowserField transparent
- Eclipse Blackberry Preprocessor Not Working?
- Cannot register in sample BlackBerry push applicat
- Export webcrypto key to PEM format
- Unexpected JDWP Error 21
相关文章
- How to get the size of a RSA key in Java
- Sanity check SSH public key? [closed]
- Use RSA with Eclipse Remote Systems Explorer?
- To get the module names in blackberry
- How to close a global dialog and display another i
- Button Image Problem
- How to install a draft app on a blackberry sandbox
- input too large for RSA cipher with BouncyCastle
As @itsteju points out, you can get the same functionality using the BlackBerry methods, but that does require an agreement and a royalty payment to Certicom.
Bouncy Castle maintains a J2ME compatible release on their releases page. It's not their full API, but does support RSA encryption.
As they provide source, the easiest way to integrate their RSA code into your project is to add their .java source files to your project and build. As I remember (I don't have the source readily available) they provide some classes in the java.lang package (BigInteger for example) - or at least they used to. The BlackBerry won't let your application run with these, so you'll have to rename the package and all references to it in the source you download. Note that last time I did this was a few years ago so things may have changed.
There is standard set of methods available for RSA encryption. Check API docs for this. Those are licenced with Certicom. You need to get the keys purchased from Certicom before using RSA encryption.