Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.security.NoSuchAlgorithmException: AES/CBC/PKCS5PADDING #30

Open
crysxd opened this issue Nov 13, 2016 · 2 comments
Open

java.security.NoSuchAlgorithmException: AES/CBC/PKCS5PADDING #30

crysxd opened this issue Nov 13, 2016 · 2 comments

Comments

@crysxd
Copy link

crysxd commented Nov 13, 2016

Hi,
we are using spongycastle as provider in out Android app (we switched from bouncycastle). On some devices we encounter a NoSuchAlgorithmException when calling Cipher.getInstance() with "AES/CBC/PKCS5PADDING" as algorithm and "SC" as provider. The call fails on following devices:

  • ME302C
  • GT-I8200N
  • GT-I9305
  • YD206
  • GT-N7100
  • ...

As far as we now, the call never succeeds on those devices. We are using 1.54.0.0.

Thanks for your work!

@airbone42
Copy link

+1

@crysxd
Copy link
Author

crysxd commented Nov 15, 2016

Small update: The issue can be reproduced on a Nexus 5 AVD with Android 4.4.4.

Using "AES/CBC/PKCS7Padding" solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants