I have a problem when attempting to implement AES/RSA encryption on J2ME,
that problem being that bouncycastle (a library that supports java and specially J2ME) is too big for implementation on a mobile phone solution (about 860 classes in total without the test and example classes).

I've googled around and the only alternative I can really find is JCE... which in itself is also too big.

Does anyone here know a way to implement it in a very small solution? Or a "tiny" library that I can use? (like for instance for TEA: <http://www.winterwell.com/software/TEA.php>)