how to add bouncycastle algorithm to android

Posted by Vamsi on Stack Overflow See other posts from Stack Overflow or by Vamsi
Published on 2010-04-06T11:27:48Z Indexed on 2010/04/06 11:33 UTC
Read the original article Hit count: 929

Filed under:
|
|

Hi friends,

I am trying to write a small application using bouncycastle algorithm, from the http://tinyurl.com/ylclavn (BouncyCastleProvider.java) it says we have to import and add the provider during runtime by the following code

import org.bouncycastle.jce.provider.BouncyCastleProvider; Security.addProvider(new BouncyCastleProvider());

error - The import org.bouncycastle cannot be resolved; during import error - BouncyCastleProvider cannot be resolved to a type; when calling addProvider

I though bouncycastle is not provided with the Android 1.6 SDK, so thought of installing separately. how should i do this? If Bouncycastle is shipped along with SDK, what should i do to avoid these errors? I am using Android 1.6, eclipse-V3.4.0 on winXP . Thanks in advance

© Stack Overflow or respective owner

Related posts about android

Related posts about bouncycastle