waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Native method not found - for Cipher using AES #477

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Easy:
1. install crashlytics into app
2. witness crash on app launch

Programmatically:
String message = "message";
String ENCRYPTION_AES = "AES/ECB/PKCS7Padding";
Cipher cipher = Cipher.getInstance(ENCRYPTION_AES);
cipher.init(Cipher.ENCRYPT_MODE, SOME_SHA1_KEY);
cipher.doFinal(message.getBytes());

What is the expected output? What do you see instead?
No crash

What version of the product are you using? On what operating system?
XE16 - Kitkat

Please provide any additional information below.

java.lang.UnsatisfiedLinkError: Native method not found: 
com.android.org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.checkAesN
I:()I
            at com.android.org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.checkAesNI(Native Method)
            at com.android.org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.processBytes(PaddedBufferedBlockCipher.java:261)
            at com.android.org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.processBytes(BaseBlockCipher.java:882)
            at com.android.org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(BaseBlockCipher.java:726)
            at javax.crypto.Cipher.doFinal(Cipher.java:1204)

Original issue reported on code.google.com by TylerSmi...@gmail.com on 17 Apr 2014 at 11:15

GoogleCodeExporter commented 9 years ago
I'm encountering this problem as well.  Specifically this error happens when 
you call Crashlytics.start(context);  

Original comment by j...@socialradar.com on 30 Apr 2014 at 3:30

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the report! We've just released XE16.2 yesterday: could you try on 
this version and let us know if this is still an issue?

Best,
Alain

Original comment by ala...@google.com on 30 Apr 2014 at 4:00

GoogleCodeExporter commented 9 years ago
I can confirm this issue is resolved with the 16.2 update.  Thanks.

Original comment by j...@socialradar.com on 1 May 2014 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 1 May 2014 at 6:40