In Gingerbread, I'm decoding some previously-encoded data with the
following:
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
Cipher cipher = Cipher.getInstance("AES");
cipher.init(Cipher.DECRYPT_MODE, skeySpec);
byte[] decrypted = cipher.doFinal(encrypted);
I now get this exception:
javax.crypto.BadPaddingException: pad block corrupted
at
org.bouncycastle.jce.provider.JCEBlockCipher.engineDoFinal(JCEBlockCipher.java:
715)
at javax.crypto.Cipher.doFinal(Cipher.java:1090)
I see that BouncyCastle was upgraded from 1.34 to 1.45; does anyone
know what might be causing this code to behave differently?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en