how to add bouncycastle algorithm to android
- by Vamsi
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